HNHacker News
TopNewBestAskShowJobs

jimmies

3,973 karma · joined March 8, 2014

basically a doctor
submissionscomments
jimmies··on A giant 360 LED clock
I noticed that the you made a config front-end using a web page and claimed that you're not up to date with web development. Indeed, I do find that it's unsatisfying to configure IoT devices over the web, although the web is one of the most compatible solutions. The drawbacks include the fact that if you want to configure it you always have to be on the same LAN and figure out its IP or port-forward, but if you port-forward, it will be not very secure due to the attack surface of the mini web server. Moreover, it's not very elegant for you or others to programmatically control it.

My interest recently has been on the mqtt protocol, it's like microservices for IoT. You will need to connect to a middleman mqtt server and hold that connection. When you want to change something you push the changes to the middleman mqtt server. It can be local or on the internet, but since the mqtt server is maintained and updated, it's much easier to secure the mqtt server. Or you can use someone else's mqtt server as a commodity. The app called "mqtt dashboard" acts as a client and allows you to draw a number of controls to the client if you answer a specific request. I think it's suitable for applications like this. Hackaday has a detailed article about it. I think mqtt is a great example of a great protocol for the purpose of controlling/configuring IoT devices.

https://hackaday.com/2016/05/27/minimal-mqtt-control-and-cli...

jimmies··on Seven Puzzles You Think You Must Not Have Heard Correctly (2006) [pdf]
I read quite a bit of books of that kind when I was young. I didn't read in English, but "One hundred thousand whys" - maths in Chinese was a great one, and this [1] in Vietnamese is a great one. They are all old books and some have solutions we can figure out by using a computer, but in general, they are really cool.

My personal favorite that has an English translation available, although it's not on Maths is "Physics for entertainment" by Perelman -- you can get it on Amazon right now. It was published 100+ years ago and problems are still relevant now. It discussed questions such as "When you jump out of a train, should you jump forward or backward?" "Who is wetter, a person standing in the rain or a person running in the rain?"

I guess basic maths and science hasn't changed that much, or maybe I was reading them when I was young, so I might not have known any better.

1: http://khoia0.com/PDF-Files/80-BAI-TOAN-THONG-MINH_handuc_v2...

jimmies··on Fake it till you make it: the wolves of Instagram
Sorry, I think I expressed what I meant the wrong way. Not that no one idolizes Tony. What I meant was not all the people who liked him and liked the movie idolize him. I liked the movie not because he was rich or someone to be idolized.

>but plenty of people look at that as the actions of outside actors and not the consequences of his behavior.

That's the recipe for a great story/a great movie: The great moment in storytelling is when the viewer/reader starts to see the world as the protagonist sees it. The viewer stopped caring about whether the protagonist was objectively right or wrong/moral or immoral, the viewer starts caring more about whether what they did given the situation make sense or not.

That is - given the situation, could/would you have done the same? The answer for me in the cases of Tony Montana, Scarlett O'Hara, Michael Corleone were a really convincing yes.

jimmies··on Fake it till you make it: the wolves of Instagram
>I mean Scarface looks pretty terrible by the end of the movie, and people idolize him.

You got the wrong idea. I don't think anyone idolizes Tony. It's a great movie and Tony is a great character and Scarface tells an interesting story, not because the protagonist made himself rich. Same as Godfather, I like it and I like them not because they are rich, but it was because they made interesting choices. Let's talk about Scarlett in Gone with the wind -- was she rich? Was she poor?

Recently, I listened to Shit Town and it gave me an everlasting impression on me. The main character in the story was a very poor man. I liked him -- not because he is poor either, but because he is interesting.

Who cares about whether the character is rich or poor, the character's background is merely a medium to tell the story. Being very rich or poor or desperate is just a convenient choice to get the story flowing because the characters in such extreme circumstances tend to have interesting experiences and choices.

jimmies··on What happened, Gmail?
I'm sure the Gmail team has done great research on this, and this might have worked for the majority of the users, but just not for some power users such as Hacker News readers. And I think, that's because we might have one false belief, that is User Experience/User Interface is one big, beautiful, monolithic top of the mountain everyone wants to reach. It is not: Power users and the normies might have different needs. A normie like your mom and mine don't know how to turn off annoying notification emails from Facebook, so they might need a tool to help them hide spammy emails. They need something easy to hit, hard to miss, because they use their fingers to point. But you and I use keyboard shortcut and know exactly not to give our serious email addresses away, we don't need that.

An UX that is great for your mom and mine might be bad for you and I.

I noticed that on one of my project that got on Hacker News and Hackaday, then got viral on reddit and media and such a week or so later. It has both a github and a couple of videos linked on the site. What I noticed from my rudimentary Cloudflare log and Youtube analytics was that the HN crowd read and looked at the github, but most didn't watch the video. The normies crowd watched the video, but most didn't read. To me, it was kinda funny.

I think that's part of the crisis that GNOME 3 suffered lately. I seriously tried GNOME 3 for a while and their macOS approach - simplify, trying to make good choices by default - genuinely sucks for me. I want to see my options, don't hide them away from me. I want to be able to make choices. The problem that the GNOME 3 team doesn't realize is that their users aren't made up of majority normies. They are the ones who are savvy enough to install a Linux distro on their desktop. They are the ones that will go great lengths to customize something to make it work exactly the way they wanted. And GNOME 3 fails to deliver that [1].

At first when I worked on my project, I wanted to create something very simple that "just works." As time went by, it turned out to me many of my users, the ones that stick and support my project aren't the ones that just install and forget. They read the docs, wiki and the source code to tease out what I was trying to do. So I realized having a great, updated wiki is a very valuable asset. It takes great pain to do it, but it is worth it.

The problem with project that are extremely popular like Gmail is that you tend to carter for the mass. But are they loyal? Are they the ones that actually use and love your product? Are they the ones that influence other people's choices? I think those are the questions worth asking and considering when designing products.

1: https://www.reddit.com/r/linux/comments/8etezq/_/

jimmies··on Turning a broken iPhone into a working USB flash drive [video]
I watched his video and legitimately had a smile on my face when he finally got it to work.

I feel that it tells the story of many makers, and I see myself in it. I can feel his face wearing out and I see it in my face when I couldn't get something to work so badly. I'm sure anyone who has ever worked on a hard project can also empathize. At least this project I can feel like it's just small hardware that is the obstacle, the flash chip probably has a datasheet somewhere to make the whole process possible.

Watching his other memory upgrade video, I couldn't imagine how much work that is to reverse engineer the flash memory contents of the iPhone chip to change its configuration. I wonder how much sweat, labor, and ingenuity went into that software. And we probably will never get to know who it is that is behind that software.

jimmies··on Selected Essays of Richard M. Stallman [pdf]
>Reasonable people who aren't like you...

I don't care about other people's distros, I didn't rename them. I didn't ask them to rename. I told you in the comment above it was my distro. I have all rights to name it whatever way I want, and the way I see fit is respecting his wish.

jimmies··on Selected Essays of Richard M. Stallman [pdf]
Everyone knows Stallman is very hard to work with. But not everyone knows he is also one of the nicest, most honest, down-to-earth people ever.

He actually spent time to read and answer every single email I sent to him despite me being a little no one. I know he couldn't possibly have hired a person who pretends to be him -- he corrected the lingo of the sender. Ah, such a Stallman thing :).

I don't have much to say to Stallman most of the times. So I just sent him notes thanking him for GNU on GNU anniversary and wishing him a happy birthday on his birthday. Last time I sent him a happy birthday note, he replied something like he will not live forever. We need more people who stand up and fight for software freedom. Are you ready to become one?

I wonder if he will actually be the last person who is a genius and willing to set aside personal financial interests and live humbly, or maybe he will be the last person that has the balls to actually do it.

BTW - Normally I don't care what people call anything. But Stallman wanted to call desktop distros GNU/Linux. So when I created a distro, I call my distro Crankshaft GNU slash Linux. I use his software everyday to get things done. It has never asked me to activate, never asked me to patreon him, never asked me to pay, never asked me to like and subscribe. It never betrays me and I know it never will, it just works. If he just asks me to call his software in a funny way, I am happy to call it GNU slash Linux out of respect for him.

jimmies··on GSMA puts eSIM work 'on hold' due to US collusion investigation
Being ethical was neither the main catalyst/competitive edge nor the implication of capitalism. You stay on top in a capitalistic market by being competitive, not by being ethical.

Whoever taught you that pro-capitalism ideals in high school was just as delusional as the person who taught me the pro-socialism ideals in high school -- if not more. At least I believe most people who recite all the pro-socialism ideals in socialist countries are well aware that they are bullshit but just doing it for the money and safety.

jimmies··on GSMA puts eSIM work 'on hold' due to US collusion investigation
>and they have to unlock after a year anyway.

Your point is that it's pointless to lock it if you have to unlock it without the customer asking. That makes sense if you have to do it automatically. The carriers in the US don't have to. They have to only if the paying customer asked first, and after the contract expires, and with a whole bunch of other conditions met.

>But the point is that they do not have fewer subscribers, they have the same amount of paying subscribers, they just have to provide fewer services to those subscribers.

You are seeing it in an extremely short term.

Let's say I pass on my 2-year contract phone originally on AT&T to my cousin who wishes to use it on Tmobile at the point of 1 year and 5 months. Your argument was that since I already had to pay for 2 years, AT&T will save the troubles of serving and supporting my cousin for 7 months if he actually brings it on on TMobile. Your genius plan of being AT&T and not serving my cousin for 7 months only works if you know for sure after that 7 months of free service ends, he will switch anyway. Any carrier will happily provide services if that means they have a legitimate chance of having a subscriber on board. Who cares about giving a potential 10-year subscriber a 7-month head start (especially when that cost is already accounted for)?

>That's a win/win for the phone company.

Nobody ever says having a customer to switch to another network is a win for them.

jimmies··on GSMA puts eSIM work 'on hold' due to US collusion investigation
You were asking why carriers lock phones, presumably, that question is for the market that does that, which is the US market. Then you said they don't do that in your country. Then that's good for you, but that has nothing to do with my answer. In a market that carriers don't do that, if someone pulls that bullshit, they will be boycotted. In a market that everyone does that like the US, you as a business are better off colluding with that practice. The reason they don't do that in your market is that they can't, not because it doesn't make business sense.

>If fewer people actually use that carrier, they need fewer support people.

Has any CEO of any carrier or company ever said: "Oh geez, I wish I had fewer subscribers so I can cut the cost of operating this company"?

Say I hire a person that is capable of supporting 1000 customers a month. I pay the person $4k per month. By cutting that person I save $4k per month. If I actually get 1000 customers more and each customer pays me $50 per month, I get $50k. $4k per month for that support person is peanuts to the amount of revenue I get. In most cases, cutting cost is the solution only when I know I can't possibly expand.

jimmies··on GSMA puts eSIM work 'on hold' due to US collusion investigation
>I don't understand why carriers feel the need to SIM-lock a phone that's on a contract anyway.

It doesn't make sense if they just want to lock just me, but it does make a lot of sense if they want to lock others.

Say I have a phone that I plan to replace with a fancier one when my """upgrade""" is due. I can pass the old phone on to my little brother or little cousin or sell it on eBay. If it's unlocked, the new owner of the old phone could pop their SIM in and use it with any carrier they like. If it's locked, then they have to also use the same network that the old phone was on, which means they also have to, in general, sign up for it. If I'm not there to help them unlocking it before I pass it on, then the new owner will have a very hard time, at least in my experience, to ask the carrier to unlock it.

If I decide that's too much hassle to deal with and don't want to call them to wait for days for them to push the unlock update for me, I can keep the phone in my drawer. In that case, there is one less used phone in the supply so that carrier can sell more new phones.

Either I pass on or I don't, locking the phone is a win for the carrier. Don't know how it is now (I haven't purchased a used phone for a while), but the carriers I dealt with often asked for the account numbers and waiting and shit to """verify""" the original owner and make it as hard, slow, and painful as possible to unlock a secondhand phone.

I know about the MVNOs compatibility and stuff, but let's be honest, most people will use a carrier-branded phone with that exact branded carrier.

> In fact, isn't it better for the operator if the customer uses their phone on another network, that way they get the monthly payments without even having to provide a service in return.

I suspect the huge chunk of the cost to the carrier is a fixed investment. The person they paid to answer the support line gets the payment regardless whether they sit there playing solitaire or helping you. It doesn't matter that much to them that you actually use their tower or not. The service they provide to you monthly doesn't cost them nothing more.

The fact isn't that they are saving cost if they can get away with not providing service to a phone that is paid off. The fact is that if they can get my teenage cousin on their network, it is a huge huge win for them because he/she will likely pump them with $50/month payment for the next 10 years. Just because one day, I decided that it was nice of me to """give""" my used phone to them.

jimmies··on Ask HN: If you could go back to study any CS-related field, what would it be?
>For the sake of registering a counterpoint: I disagree entirely that things like kernel development or assembly (and let’s throw in architecture, computability theory, and all that jazz for good measure) are even remotely useful in software engineering. You’ll forget most of it and personally I don’t think it will even meaningfully alter your performance over the long term.

I said I want to take them because I want to (i.e. they are fun to me personally), not because I said they are useful. I think that's the same reason many people went deep into a field, they found it fun to work on problems in that field. Sure, we're not the hot shit, it might not teach us many useful skills. But somehow the idea of satisfaction in the field of study and work goes a long way to me. It makes me stay late at night working on things that matter instead of smoking weed every night and wonder about our life choices and thinking about dropping out. I've been there, done that, I know how it feels to be in a noble place but dead inside. I'd choose to be creative and inspired to work any day of the year.

>Some of us software engineers get to thinking we’re hot shit. We're not. For one simple reason: what we do is almost always deterministic. Someone has done it before and written it down so that you can do it too. At worst, you have to tweak something a bit to make it work for your situation.

>In the real world, nondeterminism drives novel value. In other words, everything wrapped around the lines of code you write is what's important. That means you're going to be hard-pressed to make a dent in anything if all you can do is write code.

I totally agree. Personally, I think of myself closer to being a creative person than a procedural person. I think creativity is very very important perhaps, as much as competency. That's why inspiration is great, and that's why studying something that I find fun is important.

jimmies··on When There’s an Audience, People’s Performance Improves
Here is the project: getcrankshaft.com

It makes a Pi an Android Auto head unit. Google expects the head unit to have a microphone to support voice input. Although technically the phone can use its microphones, but we can't expect Google to help us lifting that (artificial) limitation. It's a RE'd protocol and app. What will we say to them? We made this Frankenstein totally-unauthorized reverse-engineered distro that sorts of encouraging people to DIY their car hardware so they can use Android Auto and it totally won't cause you troubles if anything happens to the users. Please help us by allowing the phone to take microphone input for OK Google on Android Auto?

So, in short, we need a microphone for the head unit. The Pi doesn't have built-in support for microphones. So I wanted to support the Adafruit MEMS mic which is a very simple and cheap mic that works on the I2S bus. Otherwise, we would have to buy a USB microphone/an expensive DAC and waste another USB port to achieve the "OK Google" functionality.

Using the USB mic/dac means we can't realistically use a Raspberry A+ and Zero either, because we have to use the only available port for the phone connection, not the mic. That I2S mic is $6, the BOm is perhaps $2 and thus can be easily integrated into other boards.

The problem: Low volume. It needs something called the ALSA softvol which boosts the volume level for it to work. But I couldn't figure out how to implement a volume boost for the mic. I have documented the behavior here: https://github.com/htruong/snd-i2s_rpi. Adafruit's solution to boost the volume for ALSA programs: https://learn.adafruit.com/adafruit-i2s-mems-microphone-brea.... Too bad it doesn't work with applications that expect the microphone to work out of the box, and anything that uses pulseaudio doesn't work either. Without a configuration that works out of the box for Pulse, we can't say we support that configuration. We can't design a cheap hardware that will have the mic integrated.

I have tried to look at the kernel module code and see what I could do. I have looked at a number of other sound cards to see how they implemented it to fix it from the source -- and still got stuck. Along the way, I made the module DKMS-compatible, planning to push the code upstream to the RPi kernel. I have bought additional DACs to see if I could learn anything from them, and see if is there any way I could come up with a simpler/cheaper DAC hardware. I have asked for help. I have emailed people to see if anyone knows the answer.

I tried fixing ALSA.conf for like 10 hours to make it take the "boosted microphone" as the default mic. It sort-of worked for ALSA programs, but it broke Pulse. Which means I got back to square 0.

Turns out I can neither easily fix the hardware nor the kernel driver nor ALSA.conf. It's just Pulseaudio that needs two lines of code for it to use the mic with boosted volume.

2-lines solution: https://github.com/htruong/crankshaft/blob/master/hardware_s...

Looking back, fixing Pulse seems like the obvious solution to take, but somehow it didn't seem that way to me when I faced it. For me, to discover every single paragraph I wrote above, it took me at least 5-10 hours each. The hindsight is 20/20, and you can say someone who knows Pulse would know that's the obvious answer. But I didn't know Pulse - I needed to learn linux driver, i2s, rpi, alsa, kernel, pulse all at the same time to come up with that answer.

If I ever get to 1000 people on this planet to adopt my software, then I think that'd be somewhat worthy. I'd argue that I will save each of them at least $4 compared to buying a USB DAC+mic, so that's $4000 saved. Which gets me to $40/hour rate... :)

jimmies··on When There’s an Audience, People’s Performance Improves
I have an open source project that got quite popular lately, and I can tell you that I just spent 100+ hours to add 2 lines of "code." No, they were not code, they are two lines of configuration to make a piece of hardware work. 100+ hours. Two episodes of headaches. Two new pieces of hardware purchased out of pocket. Two weeks of waiting. From kernel driver code, dkms to ALSA. Pages and pages of manuals. Asked for help on tons of places from forums, reddit, github, emailed, only a few suggested what I already knew. No one knows the answer. Two lines made it work, and I had to figure it out on my own.

That's the level of optimization that I have been doing with a project that has only hundreds of users but are building momentum for something I believe in. I know people will need it, use it, and enjoy it, and it teaches me things.

I certainly wouldn't have done so if I knew it only affects one or two users.

jimmies··on Parents in poorer countries devote more time to their kids' homework
Guess I'm late to the comments game but I agree with you the title is a hasty and poor conclusion. As you have pointed out, the first problem was that the results are not normalized. Second, they have not studied what it is that the parents helped the kids. Maybe homework in some countries are more demanding (do those countries use a nationwide set of textbooks?). Who knows.

The third, I suspect that the time spent on helping children with homework has more to do with how education is viewed culturally than income. I can imagine if you ask the question of the percentage of income the parents spend on their children's education, the ranking is going to be very similar as well. Asian people and countries seem to devote a lot of time, and money, and they tend to steer to their kids more than other groups. That is even a stereotype now. I bet in America, rich Asian parents also spend more time to help their kids with homework. It just happens to be that Asian countries tend to be poorer so they float on top.

You can actually already see it in Singapore, which is not a poor country, being well above the average in terms of time parents spent helping kids.

jimmies··on Ask HN: If you could go back to study any CS-related field, what would it be?
>despite being able to successfully complete contracts and make money from what I was doing.

I think making money is like cashing out the investments (knowledge/experiences). Nothing wrong with cashing our the investments when we enjoy the cash and continuously reinvest using some of the money we cashed out. I think it is dangerous when we have a little investment and no plan what to do when that investment runs out - when our knowledge becomes completely obsolete.

Which is basically "stop learning and just work now to make money" does.

>Those experiences helped me re-evaluate my approach and get out of the "I'm already awesome, why would I need to do more" mindset. Had I not realized that, I might have stubbornly stalled out thinking I didn't need anyone else while the world passed me by.

Happened to me as well. At one point recently, I figured out that being able to make money is not always the result of being able to enrich life. I could gather a lot of money while stalling. And a person who is growing immensely might be very poor. I feel as we get older, we tend to cling to a few metrics that we do good on to judge others, and money is a popular metric.

jimmies··on Ask HN: If you could go back to study any CS-related field, what would it be?
>You have something called the Internet now

The Internet hasn't changed fundamentally the way we think and study many subjects. There are no internet forums or MOOCs that are able to deliver many aspects of what you'll be able to learn in an art class or in a lab. Going to college by learning from MOOCs on the Internet is the new learning to paint from Bob Ross.

>And it's boring as fuck.

Of course, college courses are boring. Bob Ross painting sessions are more fun than taking a painting course in college.

>You have courses from top tier colleges free. You can learn anything.

I don't dispute the fact that we have very good courses online. But then, if they actually solve the knowledge and skill gap, then you have to ask yourself why the pay gaps between people in many industries get bigger, not smaller?

Please don't get me wrong, I think MOOCs are a very good thing. I was among the first people to have received a course completion certificate from one of the first MOOCs (if not the first MOOC ever) back in 2012 called MITx 6002x. As a person who took MOOCs and advocated for them, I would say the idea that the average person can learn just as well from MOOCs/Youtube/Hacker News/"The Internet" and skip college shows a shallow understanding of the matter.

jimmies··on Ask HN: If you could go back to study any CS-related field, what would it be?
>Of course, it is possible that you will learn from the professor, but that you would learn _more_ by doing other things with four years of your life. University has no monopoly on knowledge.

Lao-tzu said that you don't know what you don't know. I think staying in college is among the best ways to fill the holes that I am not aware that I have. I wouldn't have learned compilers, music, arts, game theory, automata, microecon, macroecon, accounting, matrix, physics, biology if I never had to take them/have them offered to me. I think everyone could absolutely learn everything on their own faster and more effectively. I think I would much less likely to be aware of them, and even less likely to endure the pain to go through them, that's for sure. But that's my pro-liberal arts view.

In the case of OP, they said they wanted to learn "brainwave sensors, VR, and that jawbone thing from MIT that was posted a few weeks back..." Maybe a few weeks more he/she will jump ship to another thing that MIT got on the news and the brainwave VR jawbone thing doesn't get on the news anymore. That's the tragedy of many "independent researchers," myself included sometimes. Having the patience to study something really well is really, really hard. Colleges are good at making you do that. At the very least, they guarantee whoever got out of it can spend at least one semester studying various subjects well, and many semeseters studying one subject they have the degree on very well. Whom do you trust more when you read their resume given you know nothing more about them: A person who claims to know AI/ML on their resume, or a person who has a degree in AI/ML?

>Also it's disturbing what starting life with a gigantic, crushing pile of debt can do. (It doesn't have to be this way, but I've seen plenty of even quite intelligent individuals go this route and regret it).

>If you can, take advantage of things like junior colleges. They're amazing.

Agreed. I attended a cheap college too. It was amazing.

>I owe my career not to my degree (pointless, though people at least tend to say "well you can't be an idiot" when they see a physics degree), but rather to what I learned taking a few night classes at Santa Monica College (including assembly, which was good fun) while working a day job and doing some projects for fun.

I totally agree with you. I didn't think that I owe what I became today to exactly what I learned in college. But I still think that I am capable of what I do today thanks to years being in college. Lao-tzu said colleges may not give you the fish directly but it teaches you how to fish for yourself.

jimmies··on Ask HN: If you could go back to study any CS-related field, what would it be?
Compilers is definitely my #1 favorite course. Data structures and algorithms is my #2. I kinda have a love-hate relationship with data structures later on because I never feel I am good enough to say I love it. With compilers, I found only love (perhaps because I don't know enough about it to fear it). Compilers was taught by a very competent professor in my college. It was an undergrad 1-semester course in a liberal arts school, so I think it wasn't as hard as courses offered at other schools. Nevertheless, I enjoyed it immensely, it made sense of everything that I learned in those boring theoretical courses like automata and formal languages. It showed that little machines with very little memory and power can do amazing things. It showed why the ancient calculators with practically no memory can parse a very complicated math function correctly. I really found my fascinations being unleashed in compilers. I still remember at the very end of the course, with the people who survived the last assignment, our professor handed out to us the paper "Reflections on Trusting Trust" by Ken Thompson.

I don't think it needed to be mandatory because I can see why some people don't like it. I believe people who get out of school to be web devs, for example, will not be needing it to be competent. But I really think the ideas in the courses are useful in real life in many cases. Later on, I even used what I learned in that course to make a poor man's HTML parser to translate rudimentary HTML to the instructions to write to the Adafruit thermal printer. So basically it makes the thermal printer a wireless one with an easy-to-use API that you can interface with from a phone app [1]. The code is for the Raspberry Pi, but was intended to run on an extremely limited uC that is embedded in the printer itself. I never had time to make the actual hardware but it works well enough for a Raspberry Pi right now. Without the stuff I learned in Compilers, that would have been impossible.

1: https://github.com/htruong/html-bt-printer

jimmies··on Ask HN: If you could go back to study any CS-related field, what would it be?
As a former-dropout myself [1]: You might some of the courses utterly stupid now, and you might have many doubts about the usefulness of a degree, but I think ultimately a degree is very very much worth it, both intellectually and for logistics reasons. A degree will open doors to you, for example, most jobs will throw your resume right away if you don't have a degree. Some countries won't allow you to immigrate if you don't have a degree. There are many dreams that require a degree.

The only reason that you can justify dropping out is that either (1) you think you can't possibly learn anything useful from the professors that are teaching you and you'll rebuild/repay what you didn't learn one day (and you better have to have a good answer when you'll do that right now), or (2) when you have a grand startup like Bill Gates or Mark Zuckerberg. But I don't think that's why you're wanting to drop out now. So don't drop out. Keep pushing.

For me, I wish I learned assembly, kernel development, stats and machine learning. First two because I love to, the latter two because they are useful.

I am now almost finished with grad school, and I feel like I know nil. But in a very Lao-tzu way, I think the biggest enemy of mine is myself (the willing to sit my ass down and learn), not that these can't be learned by myself. Lately, I think I somehow I overcame that problem and was able to read, learn and make a lot of stuff on my own. I think the same thing can be said about anyone who had the patience to get a degree as well: It means they are willing to deal with things they don't totally enjoy to get what they want. As Lao-tzu said, patience is a good virtue by itself...

1: If you need to verify, read the entry called crankshaft #2 on my blog on my profile.

jimmies··on A look at VDO, the new Linux compression layer
If you plan to use it for your personal traditional storage HDD, you have to keep in mind that it will render most (if not all) data recovery tools naught. Tools such as PhotoRec rely on the file headers to determine the file type to recover the data.

I have a long-term storage HDD that I thought I would never need data recovery on it until I fucked it up good by a wrong partitioning command. Normally those types of mistakes can be recovered by TestDisk but not that time. I realized my only hope was to use PhotoRec to recover what I can from the garbage that I overwrote on the disk. Thanks to PhotoRec I could recover most of them with messed up names. I was so thankful I didn't use any fancy compression algorithm.

Tools such as LVM, SSD backing storage, btrfs, compression and stuff are all nice when you understand their limitations. For now, I don't use all of my storage so I just create ext3, ext4, and exFAT partitions to store my data for the maximal chance of recovery, whether it is due to hardware or software.

jimmies··on Ask HN: Can I be “put on a list” for contacting foreign researchers?
I think the problem here is that you want to have your cake and eat it, too. The short answer is: You can't have both. Either you do what you need to do, or you fear for various bad consequences that might or might not happen in life and don't get things done.

You can't expect bad things to happen to you when you do nothing, but you can't expect good things happen to you when you do nothing, either. If you fear it, then don't do it.

E(x) = P(x) * Return(x)

When you do nothing E(do_nothing) = 100% * 0 = 0, When you do something, try to evaluate E(do_something) = E(bad) + E(good), and see if E(do_something) > 0 or E(do_something) < 0.

jimmies··on Linux 4.17-rc1: “We removed more lines than we added”
Seems like so. From Phoronix: "I began the weekend work with trying out a Lenovo ThinkPad X1 Carbon with an Intel Core i7 5600U processor... It's a mature Broadwell platform that has been working well under Linux for years. But not exactly a system I would expect years later to have a significant power boost from."
jimmies··on Linux 4.17-rc1: “We removed more lines than we added”
Do you know what is the other thing that 4.17 also does? Optimizing idle loops so your laptop can run cooler for longer.

Phoronix's initial testing seems to suggest a 10-20% less power usage while idle which is a fantastic news for those who own a Linux laptop.

Since 4.0 or so Linux has become rock solid for me so I no longer anticipate new kernel releases but this is one of those times I run the cutting edge kernel because it is so cool. If you run a relatively recent version of Ubuntu, you can also test by googling Kernel PPA. It's just three clicks away at most.

Ref: https://www.phoronix.com/scan.php?page=article&item=linux-41...

jimmies··on Show HN: Phi-editor, a text editor implemented in Go and SDL
I bet every relatively complex program that ever tried to display Vietnamese chacters had to do something wonky at some point. There might have been more amazing engineering stories. They just don't get told very often because of the sanction and lack of communication in the olden days. Part of what I want to do in life is to document as many of those amazing stories as possible before they got lost.

Remember the BKAV splash screen with the running green man in DOS? I have never wondered why a TUI program like BKAV would bother going around just to make a graphical screen just to display a useless running man. Now as I thought about it, it perhaps was because the author faced the same issue, so it's just another graphical program pretending to be a textmode one. The running man is perhaps just because he could do it while he was at it.

jimmies··on Show HN: Phi-editor, a text editor implemented in Go and SDL
Was it? Smooth scrolling like what in Commander Keen was hard. Janky scrolling by one line at a time like a text editor probably wasn't that bad if I recall correctly.

I guess I really just meant tedious when I mentioned that kind of work. It's not the kind of usual engineering solution when one first thought about the issue at hand. It breaks most usual assumption about how you solve the problem. It's like when someone writes the whole website in javascript and canvas just to display text because they can't do certain things in HTML.

jimmies··on Show HN: Phi-editor, a text editor implemented in Go and SDL
A text editor that renders text the hard way... Cool!

Talking about editors that do crazy stuff, I have a story about the de-facto text editor in Vietnam in the 80s-90s called BKED. That editor runs on MS-DOS and looks just like edit.com [1], except for it displays and allows the user to input text in Vietnamese. Nothing really quite special at the first glance.

The Vietnamese alphabet is Latin-extended, and it needs about 100 or so extra characters (caps included) besides the standard Latin alphabet. Thankfully, the extended ASCII character set (code 128-255) was just barely enough to hold the extended Vietnamese alphabet.

Consequently, the obvious way to solve the problem of displaying Vietnamese on DOS was to override and redraw the character set in the VGA-compatible text mode [2]. Its rivaling editor, called VietRES, did just that. With some other TSR hooks [3], VietRES made it possible for any text or TUI program on DOS to display and accept Vietnamese. You might have guessed it, RES stands for RESident. However, it has a drawback that is it messed up the TUI of many programs because it had to override almost all of the extended ASCII characters, most notably table-drawing characters. It was an inevitable problem if you ever want to display Vietnamese characters with just ASCII. The problem carried on to even Windows 3.1 and Windows 95. Our Windows-based Vietnamese support program at that time overwrote the MS Sans Serif and turned every '®' in every software install package to an 'â'. Many other character sets had this problem, for example, in Japanese, the '\' was turned into the Yen symbol.

Two years ago I thought about BKED and realized that BKED had no problems drawing tables. It could even display bold and italic characters at the same time alongside with regular characters. When I tried to run it on DOSBox, it was clear that BKED did something really clever to get around that. First I thought it might have used the secondary table or something. So I updated my status on Facebook praising whatever the author did. The author of the software -- now an old man -- somehow is a friend of a friend of mine, saw that and chimed in. He said his editor doesn't run in textmode. My mind was blown! It is a full-blown graphical program in Hercules/CGA/EGA/VGA graphics and just pretends to be a text-mode program. It draws every single character in its UI. It had to do it very quickly and economically -- computers in Vietnam at the time were all old secondhand ones imported from the US recycle centers and such. Now as I looked at it more, it was no surprise to me it could also do quite sophisticated mathematical formulas [4]. Thanks to its flexibility, the editor was used to typeset the whole suite of national textbooks on every subject in the 90s. The author also wrote another textbook about Turbo Pascal for college students. Indeed that book was the first I read on programming and Pascal was the first language I learned when I was 12. His work and contribution were well paid off -- he is now a very high-ranking official in the National Ministry of Education.

The editor was never open-sourced. I just got his email a month ago. If nothing else, I will ask him to release this gem to our future generations to enjoy.

1: https://i.imgur.com/RZN50oS.jpg

2: https://en.wikipedia.org/wiki/VGA-compatible_text_mode

3: https://en.wikipedia.org/wiki/Terminate_and_stay_resident_pr...

4: https://i.imgur.com/ofhE0TG.jpg

jimmies··on Ask HN: What is your favourite tech talk?
"Bufferbloat from the plumber's point of view." I haven't found a better explanation of the problem. Because of the way it is explained, the idea to solve it becomes obvious.

https://www.youtube.com/watch?v=y5KPryOHwk8

jimmies··on Ask HN: What free-to-use software inspires you?
Yep. Here: http://www.tnhh.net/posts/wireguard-router-firewalled-comput...
← PreviousPage 5 of 17Next →