Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SA
Saigonauticon @voltage.vn
Posts 16
Comments 521
Are you using passphrases? Is it worth it?
  • Yeah, I hate that. Forcing me to input special characters makes my password slightly less secure. Of course I'll include them by default, but now an attacker can eliminate all passwords without special characters. Most people just put the number 1 or a period at the end of their existing, frequently re-used password anyway. Or capitalize the first or last letter. So it doesn't make it really harder to crack dumb passwords.

    It's like we've optimized passwords to be hard for humans to remember, but easy for humans to guess!

  • Jobs that I can study while doing?
  • Well, you can create your own job, if you like. It's not for everyone, but it is flexible -- there's no employer looking to squeeze every ounce of productivity out of your hours. I can describe a little bit what that would look like in case it's helpful.

    I think most businesses at their core have one of a limited set of problems. For the people I encounter, it's either content, marketing, sales, or customer service. Even though I operate a tech company, the problem is almost never technology (probably there's a lesson somewhere in that). Sales and customer service often don't leave you much downtime if it's a busy company, so let's ignore them.

    Marketing: A lot of businesses just need someone reliable to set up Google Adwords and stuff. You won't make a fortune, but it's easy to learn how to do, and once it's set up there is very little maintenance. We're not talking Coca Cola here -- small businesses that need some help getting local search traffic by paying for search ads. One of my clients just hired someone to do exactly that, who walked into their business and just outright suggested it -- although they've been pretty awful at it to be honest. Anyway, the bar is pretty low and Google wants you to do this so there's tons of learning material out there.

    You can identify customers by walking down the street and searching for every small business, and seeing which ones are hard to find.

    Content: Businesses that sell online often need a bunch of product photography and website updates that they don't have time to do. Often this is non-technical work -- there's a UI you add the photo and description to, then press 'update'. Often their business profile isn't set up right on google maps and stuff and they need help fixing it.

    Content can also be copy writing, video reviews, social content... but honestly I find all of these harder sells than just "your website is out of date, want to pay me a small fee to fix it, then keep it current?".

    Put together a list of services and print it out so you look organized. Don't worry about looking like a fool -- it's OK to look like a fool sometimes, as long as you also sometimes succeed.

    Try to avoid charging minimum wage. Start with a more moderate cost and work downward if you need to. The customers that pay the least, typically demand the most. I'd structure it as a setup fee and then a fixed amount per month, paid quarterly in advance, for maintenance. Send them a report of what you did every month (google adwords makes this easy).

    I've got a couple of people I do this for and I bill 250$ a month, paid quarterly in advance, for 10 hours a month. You might earn less than this at the start and that's OK -- I'm just volunteering a data point. It's not rocket surgery, it's boring stuff, but it keeps my bills paid while I harass bigger clients to pay theirs.

  • Are you using passphrases? Is it worth it?
  • Sure. You can either increase the dictionary of possible words, or increase the number of words or both. Eventually it will become unwieldy. I don't bother with passphrases though.

    I generate passwords of sufficient entropy (random ASCII), store them securely (encrypted, key memorized, on dedicated hardware), and never re-use them. I don't trust password managers unless open-source. I don't need convenience -- to some extent, it's my job to manage other people's secrets. Since I'm being paid, no need for shortcuts.

  • Lemmy, what's your internet speed in mbps?
  • Neat! Despite immigrating here 12 years ago, I've only been to Ha Noi once! Everyone here in HCMC made a big fuss about warning me about scams, but everyone I met was fine, and no such thing occurred. Perhaps ironically, my inlaws hometown is near Ha Noi :P

    That was also the first time I had egg coffee, which I really enjoy these days. Sword lake was pretty nice too. I'd go back one day for sure!

  • Is there an app that could send me a notification every 30 minutes?
  • OK, fair enough! I did not know that the size varied so much. I'll probably still keep using it though -- the Python-esque syntax means I don't have to learn a bunch of stuff I don't have the time to right now, and I'm very bad at UI, so it's a good solution for me :)

    Incidentally, a lot of my best apps are very small as well. Under 1k usually (AVR Assembly).

  • Lemmy, what's your internet speed in mbps?
  • Well, usually competition creates more efficient prices. So I guess somehow your telecoms companies are using strategies to avoid competing somehow.

    On our end, we still have quite some parts of the economy that are planned. For example, I applied for my business license according to a particular 5-year plan, and there are only certain areas of the economy I'm allowed to participate in. I can't just one day pick up and decide that I'm going to start a butter factory or something.

    The best Internet provider is literally the Army, but they weren't granted a monopoly. The post office and three or four other major providers exist in every city. So there's actually quite a healthy competition for customers, it seems this too was planned for. Things don't always work out this well, but at least for Internet it worked out pretty great.

    As an aside, back when there wasn't enough money to fund State organs, they would sometimes be granted profitable businesses to stay afloat. Some bits of this are left -- you can stay at a beach hotel run by the police department in at least one city. It always seemed to me a smart way to get the country out of a bad situation. This is why the Army or the Post Office are licensed to to a bunch of profitable consumer services.

  • Lemmy, what's your internet speed in mbps?
  • North America is insane with their internet costs.

    Here in VN, I can get unlimited 4G for 40$ a year, and 100mbps symmetrical fiber for about 50$ a year. The biggest provider is the Army. Their customer service is actually pretty fast and good too!

  • Is there an app that could send me a notification every 30 minutes?
  • I never actually noticed. It's always been like 25MB for stuff I do. Is that a lot?

    Takes a huge amount of storage on my production machine to store the various libraries to produce that file, to be fair. That is a minor pain.

  • Is it a good idea to let a 16 yrs old use an AI assistant .i.e. chatgpt?
  • I think it would be a bad idea to do otherwise. Children need to learn about useful tools, and the shortcomings of those tools.

    16 year old me would have had a great time getting an AI to teach me things that my teachers in school did not have expertise in. Sure, it would be wrong some of the time, but so were my teachers at that age. It would have given me such a head start on university!

  • Is there an app that could send me a notification every 30 minutes?
  • For this kind of thing, I use Godot and write a quick and ugly one-off app. That way it works exactly how I imagine and I just send myself the APK over messenger and install it :P

    Although it would be a joy to implement in hardware.

  • Insomnia
  • I never did work it out myself. Sometimes I was fine. Other times I didn't sleep for 3 days. Was "sort of" independent of stress and so on, although higher average stress levels made it a little worse. Or maybe stress just feels worse combined with sleep deprivation. I tried various changes to my habits over the next few years, none of which made any difference -- although some were good for other reasons (e.g. getting into better shape, eating better, and so on).

    Went to go see a doctor. They brushed it off, so I went to go see another doctor. They prescribed a low dose of a sleeping pill.

    Problem solved forever with no noticeable side effects. I think I'm on 1/2 the pediatric dose or something. Amazing how so little of something can make such a big difference in my life. Wish I had gone to see 2 doctors earlier.

  • *Permanently Deleted*
  • Nah, I saw the heating coil was the right resistance. Then, the shiny metal coating on the inside of the tube was not oxidized, so the vacuum was likely good. Nothing rattled, so a short was unlikely. It was designed for 6.3V.

    So at 5V the worst that could happen was that the heater coil fizzled and died with some sad noises. Well, maybe no noises, because of the vacuum and all. Some form of sadness though, surely.

    The more alarming things I've built over the years aren't so much "duck and cover". They're more of the "spend a all day doing data analysis, then know something I probably shouldn't" variety.

  • Sanity check for LiFePO4 Charger Design

    So, there are these great 32700 LiFePO4 batteries that showed up in my local industrial market. For like USD 2$!

    However, there are no LiFePO4 chargers available. The vendors assure me I can "totally use" a 4.2V Li-ion charger, but I don't believe them (although the cells test as being in good shape).

    I whipped up a 5V system with a buck converter managed by an MCU. It turns off the buck converter that charges the battery, measures the battery voltage, and if it's under 3.6V it enables the buck converter. Repeats every few 100s of milliseconds.

    Did I overengineer this? Could I have just used a linear voltage regulator that outputs 3.6V (or a Zener), and a current-limited 5v power supply?

    Charge speed is not really important in my application. Anything under 4 hours is great. Frankly, I'm just trying to phase out the less safe kinds of lithium cell in my lab.

    17

    What do you think the difference is between living, and dying?

    I've always considered the nature of living to be to grow, to become more -- and the nature of dying to be reduced, to become less. Sort of like taking the derivative of what you are, the rate of change..

    This has the unusual consequence that when people tell me to 'live a little' e.g. with idle pastimes, it feels to me like they are asking me to 'die a little'.

    What do you consider the difference?

    9

    Considering positioning strategies for autonomous mechanum-wheeled robots

    Disclaimer: this is not specifically for a commercial product, but various things I design sometimes get commercialized. I mention this so that you may decide whether you want to weigh in. If it's commercialized, I will probably make very little money but a bunch of university students may get a neat STEM program in the countryside :D

    That out of the way, I've designed some boards for a Wi-Fi controlled robot with mechanum wheels. So 4 independent motor drivers, one for each wheel, allow omnidirectional motion. It's built around a Pi Pico W, 4 SOIC-8 9110S motor drivers, and some buck/boost converters to give the system a 5V and 12V line. It's very basic, mostly made to be cheap. Here's a photo:

    !

    Right now it just receives UDP communications (a little app written in Godot) and activates the motors in different combinations -- very "hello world". I'm planning to add some autonomy to move around pre-generated maps, solve mazes, and so on.

    I have foolishly used 2-pin JST connectors for the motors, so using motors with rotary encoders would be a pain without ordering new boards. I'll probably fix that in a later board revision or just hack it in. Also the routing is sloppy and there's no ground plane. It works well enough for development and testing though :D

    What I'm thinking about right now, is how to let the robot position itself in a room effectively and cheaply. I was thinking of adding either a full LiDAR or building a limited LiDAR out of a servo motor and two cheap laser ToF sensors -- e.g. one pointed forward, the other back, and I can sweep it 90 degrees. Since the LiDAR does not need to be fast or continuously sweep, I am leaning toward the latter approach.

    Then the processing is handled remotely -- a server requests that the robot do a LiDAR sweep, the robot sends a minimal point cloud back to the server, which estimates the robot's current location and sends back some instructions to move in a direction for some distance -- probably this is where the lack of rotary encoders is going to hurt, but for now I'm planning on just pointing the forward laser ToF sensor towards a target and give the instruction "turn or move forward at static speed X until the sensor reads Y", which should be pretty easy for the MCU To handle.

    I'm planning to control multiple robots from the same server. The robots don't need to be super fast.

    What I'm currently wondering is whether my approach really needs rotary encoders in practice -- I've heard that mechanum wheels have high enough mechanical slippage that they end up inaccurate, and designers often add another set of unpowered wheels for position tracking anyway. I don't want to add more wheels in this way though.

    On the other hand, it would probably be easier to tell the MCU to "move forward X rotary encoder pulses at a velocity defined by Y pulses per second, and then check position and correct at a lower speed" than to use a pure LiDAR approach (e.g. even if rotary encoders don't give me accurate position, on small time scales, they give me good feedback to control speed). I could possibly even send a fairly complex series of instructions in one go, making the communications efficient enough to eliminate a local server and control a ton of robots from a cloud VPS or whatever.

    Anyone have some experience with encoders + mechanum wheels that can offer a few tips my way? At this stage the project doesn't have clear engineering goals and this is mostly an academic exercise. I've read that using a rigid chassis and minimizing the need for lateral motion can reduce slippage, reading through a few papers didn't get me any numerical indication of what to expect.

    10

    A Lemmy bot for software consulting

    You those software projects that have no defined scope, budget, or timeline? Yet somehow land on your desk?

    For those times, I built a Lemmy bot that does an I Ching divination (https://en.wikibooks.org/wiki/I_Ching) using a hardware random number generator.

    It doesn't help, but it makes me feel better.

    If it would make you feel better too, you can use it too by sending a DM to @[email protected].

    The message can't be length zero. You should not consider the messaging secure :D

    It also may break, bug out, catch on fire, get unplugged, or get overloaded with requests. If none of those things happen, you'll get a response in a couple of minutes.

    It's also literally build from scrap, and is sitting precariously on the edge of my desk in Vietnam. Still, it's the state-of-the-art in software consulting!

    3

    A nightlight with orientation control

    So I wanted to design a children's toy, where the electronics could last 100 years (ignoring mechanical abuse). I figured some people here might be interested.

    I settled on a CR2032-powered night light, using an attiny10 microcontroller, where the flash is rated for 100 years unless you're writing to it (which I am not). I did some pretty heavy power optimization. The firmware is hand-optimized assembly.

    When you turn it upside-down, a tilt switch toggles an LED @ 3mA via a pretty intense debouncing routine.

    A watchdog timer has it auto power off in 30 minutes.

    When off, it consumes less than 1 uA. So it has about 25 years of standby time, although the battery is only rated for 10 years (it is replaceable though).

    If a child uses it every day, then the battery should last about 4.5 months.

    I made custom boards for it -- I kept is simple with few components as possible (resistor is for scale):

    !

    I kept assembly simple. A better design would snap right in to the pins of the CR2032 holder, but that's an addition I'll make another day. I also should have added one more ground pad to solder to, but forgot. Still, an OK result I think.

    !

    I used some spay-on lacquer to protect the traces a bit after assembly.

    0

    Transistor particle detector not functioning as expected

    What I've done is take a large 2n3055 BJT NPN power transistor, and decap it (it is a large metal-can type). Then I carefully removed any coating from the exposed silicon (it typically has a dab of silicone potting compound on it).

    Then, I had a weak alpha source at ~5MeV lying around the lab from previous work. This was inserted into the can with the beam facing downward towards the exposed silicon, and the can reattached and made lightproof.

    Then I threw together the circuit shown here using the modified transistor (the base is left floating). What I expected to happen was that at TP1 (relative to GND), with my scope AC-coupled, I should see small voltage spikes followed by a decay. This is caused by alpha particles impacting the silicon and knocking loose enough electrons to permit some current flow.

    However, I just see... more or less nothing, maybe some electrical noise from fluorescent lamps in the room next door. Certainly not the spike+decay curve I've seen with other detectors.

    Did I make a wrong assumption somewhere? It's been a while since I worked with discrete transistors much, and I feel like I am missing something silly.

    Or is this more or less right, and I should maybe question whether my alpha source is still good? Or whether the signal strength is in a voltage domain I can even clearly see without amplification? Or maybe I should suspect that a thin passivating glass layer is added to big BJTs these days, enough to block the alpha?

    The source is past expiry, but not by that much. I'm mostly interested in characterizing and documenting the detector as an academic exercise.

    15

    Since bone is piezoelectric, can I make a working oscillator from it?

    I've wondered this occasionally over the years, but never got it working.

    I tried just putting a dried piece of chicken bone pressed between two plates (mild compressive stress perpendicular to the bone), and using an inverter just like I would use a crystal. It did not work. Maybe I need a really thin segment?

    I have no practical application in mind. I might make a CPU from it for Halloween I guess?

    I'm not sure if I would classify it as electronics or necromancy, but I thought it was an interesting question to ask here :)

    8

    Turning something ugly into something beautiful

    This is a story about something that was entirely unlikely to turn our wholesome, but somehow did.

    I was digging around the yard a few years ago, when I found some old artillery shells (not usually the start of a good day). One interesting local term for this in Vietnam is 'fruits of democracy', like it's literally a tree that drops fruit! Although these are from WWII, not the American War -- so these were supplied by the US and date to the 1940s from the serial.

    My concern about unexploded ordnance faded as I realized they had already been completely disarmed, hollowed out, and carefully hammered into flower vases. They were just the brass outside of the shell with nothing inside (the shell of the shell?).

    Then they had been forgotten for decades and were completely corroded. So I did the only logical thing -- I bought a few liters of hydrochloric acid, donned some goggles and gloves, and cleaned them up!

    So we have something designed to kill people, being instead transformed into something to hold flowers, and then being forgotten and buried during more conflict. Decades later, it is found, restored, and again holds flowers -- an artillery shell became an unlikely allegory for the enduring idea of peace.

    0

    I can guess what happened here

    I'm sure someone was complying maliciously here, but I'm not sure who.

    Everything in the store was on 'sale'. What they do is mark up the price, then discount it back to the normal price. For every single item in the store. So there are hundreds of these little printed standee signs everywhere next to each little thing.

    Looks like management forgot to define a markup+discount to an item, and a programmer and/or sales staff just abided by the ridiculous 'everything must be on (fake) sale' directive.

    2

    Pregnancy test with inconsistent instructions

    This is sometimes my example for 'why paying attention to documentation is important'. I didn't take the photo myself, a colleague sent it to me years back.

    11

    Neat scorpion I saw in the park

    It's a whip scorpion -- harmlessly sprays acid at you when annoyed.

    Ok, admittedly that sounds way more alarming than it actually is. The acid is sort of like strong vinegar. They're sometimes called 'vinegaroons', and don't have a poisonous sting.

    0

    Dispose of financial records? You got it, boss.

    So I once made the mistake permitting a client to store some (say a dozen) boxes of financial records in my home for a couple of weeks. By 'permit', I mean they just dumped them there, and I didn't physically restrain them from leaving. This is in Vietnam, where you are required by law to keep your corporate records for 35 years. The government already had a copy of these records, this was the company's copy. It's things like tax invoices, contracts, audits, expenses, and so on -- you hold on to them to protect yourself from incorrect claims.

    Two weeks turned into over a year, they had accumulated quite a collection of unpaid invoices, and I had halted all work for them long ago. Needless to say, I was not pleased with the boxes all over my house and the lack of responses about it. As you may know, in Vietnam our houses are not so big -- I think mine is under 25 square meters. So this was beyond absurd.

    Eventually, I was gloriously told "to just do whatever", in writing. So rather than go to the dumpster, I sold the boxes of paper to a scrap dealer for VND 10,000 (about USD 0.50 at the time). Not because I'm petty or anything -- it's important to recycle and save the planet, right?

    Fast forward a couple of years, I see their company license has been revoked -- they failed to pay some tax or other. Probably because they didn't keep any records to work out what taxes to pay...

    If the director ever steps foot in the country again, newer laws permit the authorities to withhold their passport until taxes are paid -- and the authorities can quote any amount they want, since they have the only copy of the financials :)

    I see no need to volunteer that particular piece of information. Time makes fools of us all, but some people faster than others.

    9

    HCMC Subway Construction ~1.5 years ago

    Ok, it's taking longer than we'd like... but at least it's not like in the photo anymore! !

    0
    vintech @voltage.vn Saigonauticon @voltage.vn

    Building tech in Vietnam

    I run software company, but my own background is more about hardware, especially embedded systems.

    I know the industrial markets in HCMC quite well. The parts you may use here as a student, hobbyist, or when developing a commercial prototype are a little different than say, North America.

    I also have gone through the process of importing electronic components from overseas.

    So if you're a student or hobbyist in VN and trying to learn something, traveling here and want to buy some parts, or just curious where machines are born, ask away.

    0
    vinquiries @voltage.vn Saigonauticon @voltage.vn

    I check in here and answer questions

    Don't be worried that there aren't many posts yet. I check in here and will answer -- maybe others will too, eventually.

    I immigrated to Vietnam in ~2012, started a software company in HCMC, got married here, etc.

    So mostly I know this city very well, and also a few things about paperwork, laws, and taxes. Also where to eat, things to avoid, and how to do all the things that tourists do. I can also answer questions about daily life, culture, what the workplace is like, and so on.

    I read and speak Vietnamese poorly. I get by, but don't expect me to translate anything super well.

    I also know my way around Da Nang, Phan Thiet, Vung Tau, and Hoi An somewhat.

    6