Better HN
topnewbestaskshowjobs
Log inSign up

developer2

2,010 karma · joined Dec 27, 2015 (10y ago) · 785 submissions

Submissions

comment 10y ago · link · parent

>> sometimes it doesn't record tool tips or contextual menus

Welcome to the abysmal implementation of interactive controls. For some awful historical and technical reason, most standard UI controls - such as dropdown menus - are laid out on top of your application's window by the operating system. That UI control is not part of your application; it is implemented as a separate window by the operating system which positions it on top of your application window in the requested x/y location.

The screen capturing is designed to capture a single window, and so only captures your application without these separate windows that display elements like a dropdown menu. It really is a disgusting hack. In any reasonable implementation, these controls would be inlined within your application, not outsourced to the operating system.

This is the same reason why it took so long for browsers to support styling of form elements, such as changing the background color of a dropdown. The operating system simply provided no way to allow for this. I'm not sure if the modern browser implementation with styled form elements still works with the operating system, or if they are required to bundle their own controls in order to have full control over their rendering.

My Google-fu is failing me. Does anyone know why standard operating system controls are laid out by the operating system, rather than by the application using a standard library that keeps them inline to the app itself?

comment 10y ago · link · parent

That makes little sense. Far more likely they just didn't take into account the fact that not every domain is a long-term "google.com" owned by a single entity for its lifetime.

comment 10y ago · link · parent

It comes down to how much Basic Income one can expect to collect. I don't consider myself extraordinarily lazy, and thus do my part working to earn a comfortable living. Really though I'm the type who hasn't found my "dream job", so working 9-5, 40 hour weeks, is something I don't particularly enjoy, and it sucks the life out of me.

Existing social assistance where I am doesn't even cover the cheapest rent in the city, requiring you to live with at least two others who are also on welfare in a studio apartment that deserves to be condemned as being unsuitable for human habitation. So long as "basic income" means bottom-of-the-barrel minimum income that requires you to rent in the slums with roommates, while barely having enough money to eat... I will remain employed. If "basic income" ever provides more than that, I could see myself being tempted into joining the ranks. Particularly if you are allowed to keep income from a part-time minimum wage job without any clawbacks to the basic income.

comment 10y ago · link · parent

The HSTS preload list (referring primarily to Chrome's, which is also included by other vendors) in particular is something I find really strange. The current domain owner adds the domain to the HSTS preload list. That domain then expires or is released by that owner, without them requesting its removal from the preload list. Then someone else buys the domain without having planned to use SSL/TLS.

The result? Weeks, even months, of not being able to use the domain without encryption, all because someone else previously had the domain added to the HSTS preload list. Removal from the preload list is by request only; there is no automation in place to detect the lack of an HSTS header to mean that the domain is no longer to be considered a participant. Even worse, the request to be removed can take an indeterminate amount of time to be disseminated to end users of the browser. The preload list is not pushed to clients via something like a daily digest; the list is hardcoded into releases of the browser. This means it can take an absurd length of time to see a domain removed from the list, as it depends on every individual user updating the browser to the latest version, and only once the vendor even gets around to updating the hardcoded list in a given release to include your domain's removal.

How such a mechanism was ever acceptable is beyond me. Domain ownership is technically fluid, and yet the implementation was designed in such a way as to assume that domain ownership never changes.

comment 10y ago · link · parent

If one doesn't understand exactly how TLS works, this is the usual question regarding MITM. If there is "end-to-end encryption", just how exactly is it even possible to do MITM? In an ideal world, it just wouldn't be possible.

With the existing system, certificate "errors" that are really just "warnings" should not be allowed to be bypassed. The fact that certificate errors can be ignored is something that should never have been allowed to take place. Unfortunately with the historical fact that legit certificates were inexcusably expensive to obtain for internal/test projects meant that self-signed certificates became commonplace.

We're waiting for a genius to come up with a new strategy for encryption that doesn't rely on trust being determined by a third party entity (ie: certificate authorities). Letsencrypt is nice and all, but it's still just a free workaround for a system nobody really wants. "It's not possible to do it any other way" is just pseudo-speak for "nobody has invented a better way yet".

Why the strategy for encryption has relied on public/private keys for so long with no real alternative strikes me as odd. After 30+ years, nobody has thought of something else?

comment 10y ago · link · parent

1. Regarding commands with credentials or sensitive info, bash allows you to prefix the command with a space character to omit saving the command to the history. This requires remembering this fact, and of course you get nothing in your history to refer to later.

2. I remember a HN submission for a piece of software (or collection of softwares?) that provided a centralized log of your command history across multiple machines. In this way, if you are working on multiple machines in a cluster, you can later search back through your histories from those machines in a single location. My Google Fu is failing me now though.

comment 10y ago · link · parent

You reject all packets from "bad IPs" for a period of time. 5 minutes, 30 minutes, whatever. If you're in a position to spoof IPs and you manage to spoof one I need to connect from (or I make a mistake and get myself blacklisted), it's a temporary inconvenience.

That, and having out-of-band access to the server always helps. ;)

comment 10y ago · link · parent

If you do not have the ability to eavesdrop on the network between my client and my server, then port knocking is essentially unhackable. Port knocking only fails when the malicious party can monitor the network traffic. This is a valid concern, and I would never say that port knocking by itself is all the security one needs. It does however completely block all regular "outsiders" from ever being able to even open a connection to sshd.

If I require 5 ports to be hit in sequence, and blacklist IPs that hit unknown ports, it is extremely unlikely you will ever connect. Now if someone on my local network, at my ISP, or at my hosting provider sniffs my traffic to determine a static knocking sequence... good for them. They're the one unauthorized person who can connect to sshd, without a valid ssh key to authenticate with.

It's a reality that most businesses are not going to invest in setting up a network that cannot be accessed from the internet at large. For such setups, a little bit of obscurity via something like port knocking to prevent every single port scanner in existence from discovering your sshd server must be better than nothing at all.

comment 10y ago · link · parent

a) It's not explicitly said that the ssh password is the last digits from the code. That's the intuition I got as well, but that would be pure craziness. I assume only the port is affected, and you're using your normal authentication scheme (key or password) to login.

b) Straight from the GitHub's README, which was not edited after submission to HN:

>> Beware, currently I would not really recommend running this software, it was only written as a joke.

comment 10y ago · link · parent

I suppose Tails should at least update its support page regarding fingerprinting[1].

[1] https://tails.boum.org/support/known_issues/index.en.html#fi...

comment 10y ago · link · parent

>> would like to see it on a more industrial scale so that it can go into existing large cities

This will not happen in our lifetimes. Large cities with millions of people will never be self-sustainable. "Industrial scale" and "sustainable" are mutually exclusive concepts.

comment 10y ago · link · parent

I could have been more specific about the scenario I was referring to. Many people commit to git very frequently in such a way that their local git history is more like an IDE's undo log. You can commit 10+ times in the span of an hour, using the log as nothing more than a savepoint system. This is really common from people who for some unfathomable reason perform a commit before testing, which results in a lot of those one-liner commits that really do not deserve their own commit (this specific task can be done via amend, but you don't see it from most devs).

Git commits are so fantastically cheap, and especially easy if it's a one second task via keyboard shortcut in your IDE rather than terminal commands. You wind up with a lot of commits throughout the day all related to accomplishing a simple task, and then rebase them down into a smaller number of meaningful chunks of work.

I agree that this should not be the workflow for larger units of work. If you're working on a week-long task, you would use this flow to refactor each day's 50 commits down to what you would have normally committed (maybe 1-5 commits for the day). This allows your feature branch's log to contain meaningful information. At the end of the week, when your feature branch is complete, you then have the additional choice as to whether the branch's already-more-compact history is meaningful; if not, you can further squash the merge commit.

tldr:

>> When you first commit the changes, you have all the necessary context

Rebasing your local changes before sharing is for the case where you're spamming loads of meaningless commits that don't have - or deserve - their own context.

comment 10y ago · link · parent

The nice thing about git is that your commits can be garbage. Until you push (or, much less commonly on most teams, let someone pull from you), your local commits can be an utter disaster, and it just does not matter. From a purely technical standpoint, there is no excuse for messy logs. Any mess is the result of the user, not the software.

The problem is that using rebase to clean up your local commit log before sharing with others isn't the easiest thing to learn. Even once you supposedly "know what you are doing", it is still possible to make a mistake. Git has a lot of amazing functionality, but the majority of commands are not intuitive to use out of the box. Even GUI frontends to git don't manage to simplify the more complex commands all that much. I'd like to believe I'm an "intermediate" git user, but I run into issues often enough that I'm sure I overestimate my knowledge.

Most teams I've seen using git wind up using only the core commands (clone, commit, fetch/pull, merge, push), essentially using git as a drop-in replacement for svn without taking advantage of the additional possibilities git offers. Again, this is because becoming a git guru is a steep learning curve. It doesn't matter if 19 people on a project know everything about git; it only takes a single 20th person to make a tangled mess out of a centrally shared repository. I've spent many an afternoon working to rectify botched rebases and similar issues.

One example is forcing a push for a specific branch, knowing that the resulting destruction of history is desired and not harmful to others; only to forget to specify the branch name on command line, which results in force pushing all branches. Whoops!

comment 10y ago · link · parent

The lack of a first name or a single pronoun in your comment has more meaning than anything you actually wrote.

comment 10y ago · link · parent

>> when under autopilot

I care a lot about what happens when autopilot disengages.

I truly and honestly believe it is a biological, psychological fact, that autopilot will result in less attentive occupants in the vehicle. We're going to blame "drivers" - who are really now just passengers, expected to sometimes take the wheel - for accidents caused by autopilots disengaging, because the driver "should have been in control". Except that most people are going to be mentally unable to maintain the kind of focus needed to be able to take over a failed autopilot.

Let me put it this way: I believe that today, if my mother were to cause an accident, she would have done something tangible to be deserving of being "at fault". In a future where my mother can be considered at fault for killing someone because she failed to take over an autopilot in under a second... that is not a future I want to experience.

I'm afraid of the moment we begin blaming people for loss of life caused by technology expecting us to interfere when it is innately difficult to do so.

comment 10y ago · link · parent

This is exactly why I wish these cars would be banned from being on the road at all in their current state. Some people are assuming it means you don't have to pay as much attention. In the hands of your average consumer, these cars are not safe. As an above average user of technology, I would not trust myself to remain in constant control of such a vehicle. I certainly don't trust the average or below average consumer to handle it!

Most who claim they would remain attentive are not aware that they are making false claims, and this likely includes a lot of HN visitors. The better the cars get at remaining on autopilot, the more complacent drivers will become. A really good autopilot is training its users into trusting it to handle everything. If your average commute results in autopilot practically never kicking in, your brain will naturally - regardless of your intent - find something else to occupy your attention. Reading a book in your lap, checking the weather, grooming yourself in the mirror, or even just spacing out and daydreaming.

Frankly I'm of the opinion that self-driving cars are something that will happen in 50+ years. When cities are built with "roads" that are actually tracks; tracks that are designed to handle only these cars and nothing else. I imagine we will not own such cars; they'll be more like subway/metro public transit systems, but with individual pods that hold a small number of people and with hundreds/thousands of small stations to embark/disembark from.

These vehicles should not be allowed until there is no manual takeover. If the vehicle cannot operate at all times on autopilot, it should not be on the road.

comment 10y ago · link · parent

The cynical view is adopted by some after having been employed by multiple companies, and discovering that they're mostly interchangeable. The majority of employers are not unique, are not offering anything special compared to other businesses, and should not be pretending otherwise by making candidates grovel like peasants trying to get a job working for the royal family. Most positions do not require a "match made in heaven", but many interviews are conducted in such a way that candidates have to jump through hoops to prove just how compatible they are.

I have yet to participate in an interview that focused on the quality of the employer-employee match, where I have not spewed nonsense in order to "pass the test". I remember an article that laid out how this can be viewed as a positive process; that it tests whether the candidate is capable of handling awkward situations diplomatically (or something to that effect). That we as a society consider being completely fake to be a good thing blows my mind.

---

Question: Where do you see yourself in 5 years?

Given Answer: I'd like to work up from my existing position as a senior developer to a team lead position, and possibly another step up or two from there.

Real Answer: I love the work I do as a developer, and do not wish to climb the corporate ladder. I figure this might change as I get older, but for now I am happy with what I do.

---

Question: Why would you be a better fit compared to another candidate?

Given Answer: The job listing mentioned X, and I have a lot of experience with X. The listing also mentioned Y, and I am very interested in gaining more experience with Y. I like element Z of your culture.

Real Answer: I match most or all of the requirements you mentioned in your listing. Every candidate you interviewed probably does. Just hire someone and see whether it works out for you.

---

Question: Why did you leave your last job?

Given Answer: No opportunity to advance, or accomplished the tasks the employer had primarily hired me for.

Real Answer: Boss was incompetent, HR introduced unacceptable policies, or management put a stop to salary increases / bonuses that have been around for years.

comment 10y ago · link · parent

The legitimate credit card machine is provided by the taxi company. At least for Co-Op Taxi in Montreal, the company takes a 7% cut of the fare for all credit card transactions made on such machines. So some drivers buy a Square reader and set up a personal account to fraudulently take payments directly from customers into their pocket to avoid the 7% cut.

The driver is not only stealing from their company, but is also opening up customers to suspicious transactions. Do I trust a random criminal - they are criminals, no doubt about it - to swipe my credit card into his cell phone? No.

comment 10y ago · link · parent

I know, my position isn't quite decided. I just think there's a certain onus on the people who choose to be drivers, who accept the way things are. Why the hell are they agreeing to work for Uber if they're not making any money? Go find a job that pays then. By taking up a job with Uber and dealing with their bull, they're directly supporting and sustaining that system.

I can understand why it would be terrible if every business tried to pull this shit. Nobody gets paid to work? How would society function? But if you work for an outlying company like Uber where there is no money, that is your problem. Go find a paying job. It's not like Uber has a monopoly on the job market and everyone is required to work for them, for nothing. It's a choice. So don't choose to work for nothing? All I'm hearing is "I signed up to be a driver for Uber. I know they pay nothing, but I intentionally choose to work here, knowing it pays nothing!".

If this were a real problem, Uber would not have any drivers, and they would be out of business. If it were an even more serious problem, we'd have tons of companies paying nothing, and our first world economies would collapse overnight.

comment 10y ago · link · parent

>> The common complaint against Uber is that drivers barely make any money when you factor in minimum wage.

The question is whether drivers are making less than minimum wage. This is admittedly more difficult to calculate in an unbiased manner due to a lack of consensus as to whether gas, insurance, vehicle maintenance, etc. should be counted towards a driver's costs of operation.

My intuition says that it shouldn't matter. If a driver is willing to work for a very small margin of profit or even at a financial loss, it's their fault for taking a job that doesn't provide. If Uber doesn't pay, then don't work for Uber, it's as simple as that! Let the market decide; if people were to refuse working for pennies, then Uber would be forced to offer decent income or go out of business due to lack of drivers. And yet after having this initial opinion, the thought occurs... what if this was the norm for employment? Clearly we cannot operate as a society if every job paid like that. At some point, does regulation need to kick in to prevent such abuses from being the norm?

I don't know. It just makes no sense to me that anyone would be an Uber driver if it doesn't pay whatsoever. I can't decide who's more at fault - Uber, or the people offering themselves up as bait to a broken system.

comment 10y ago · link · parent

I've had two different taxi drivers in Montreal offer up their cell phone with their personal Square card reader and account instead of the official machine. The first one pulled out the real machine when I called him out on it. I paid and filed a complaint against him. The second refused and acted like nothing was wrong, even though I clearly knew what was up. I refused payment, filed a complaint, and have continued to receive service from the same company without issue.

The taxi industry is corrupt as hell. Credit card fraud, drivers who take clueless tourists on an hour trip when it is a 15 minute drive, theft of forgotten items in cars, unlicensed drivers driving others' cars when the legal driver is off-hours, etc. Some of these people belong in jail, but the worst they ever face is a slap on the wrist or possibly losing their job. Any competition to them - legal or not, I don't give a shit anymore - is welcome. Their monopoly is abused by the owners as well as many individual drivers. Their business deserves to fall apart.

comment 10y ago · link · parent

>> just use the class twice in your css. More of the same class means more important

This is even crazier than using an "!important" once in a while. You're creating obfuscated CSS that technically respects the concept of cascades and specificity. Yet your reason for doing this is essentially just to avoid "!important", while not actually fixing your cascading/specificity problem. I'd rather see the rare "!important" as a visible warning sign that something was lazily patched, rather than a poor workaround that is invisible.

This kind of solution sounds a lot like I get in trouble for using "!important", so I'll use an alternative dirty hack that is hidden well enough that I probably won't get caught.

comment 10y ago · link · parent

The term "normal person" is referring to your average person, and the average person has not been through such an experience.

Also, the whole "once it happens to someone, they care" applies to pretty much anything. Find someone who invests a lot of their time speaking in public for any cause you can imagine. Someone who talks to audiences about the perils of alcohol, drugs, any cancer or disease - basically anything that is harmful/dangerous/deadly. How many of them do you think ever gave a second thought to their cause, before it affected their lives personally (themselves, a family member, or close friend)? Practically none of them. People generally don't care about the consequences of anything until they've been slapped in the face by it.

comment 10y ago · link · parent

>> the core features are basically identical

Apple's UI for the Music app is practically unusable compared to Spotify's. They make it so bloody hard to find anything. One screen contains 4 different actions, with a tiny half-height panel being swipeable to get at critical functionality that should be on a dedicated screen. It's not a professional interface.

>> Apple is great because of Beats 1

... if I wanted radio I would subscribe to Sirius. I'm not going to pay $10+/month for a single radio station.

comment 10y ago · link · parent

Please let me pay $40, or $100, for something that will last a lifetime. That 70s-80s board my mother has is still in near pristine condition, and it has been used a hell of lot over 30 years. My friend owns one that is a couple of years old, rarely gets used, and yet some of the letters are nearly illegible; more than a few of the point values have rubbed away. The board is cheap, the tiles are junk, and the racks move every time you touch them (rather than sitting firmly on the table from the weight of real wood).

Throwing quality out the window for the sake of racing to rock bottom pricing? No thanks.

comment 10y ago · link · parent

>> some devices aren't available in a quality we used to have available in mainstream

This unfortunate reality extends to pretty much all products. Manufacturing is nothing like it was 20 years ago; quality is down across the board. Products used to be well made, but are now mass produced using the cheapest materials possible.

Go buy a Scrabble board. The unfolded board won't lay perfectly flat on the table because the two halves are not heavy enough to fully bend down the crease in the middle. The tiles are made of flimsy particle board instead of real wood. The letters wear off too because they are printed on rather than etched. Compare it to a board made in the 70s or 80s. The difference between them isn't just large, it's disgustingly atrocious. Same for a Cribbage board (cheap wood, plastic sliding door that falls out instead of metal that grinds into the board), a Battleship set (the one I bought for my nephew, the panels that hold the pegs don't snap in properly and fall off). Things used to be quality made; now they're done at the lowest possible quality because people will buy it regardless.

comment 10y ago · link · parent

>> Society might need death, but I still want to live forever.

I've never understood people who say they'd like to live forever. It just doesn't make any sense to me. The oddest thing is to listen to someone who talks about how it is - not probably or hopefully - going to happen in their lifetime. I once had an acquaintance who spoke of it so seriously that it was religious; he honestly believed (possibly still does) that he will not die.

You have the ones who are so absolutely terrified of death that they desperately grip onto the concept of immortality; a science fiction replacement for an afterlife or reincarnation they do not believe in. (Tangent: Why do so many people reject the idea of open casket funerals. Death is just too horrible to even observe, let alone having to reconcile that it will one day happen to them? "Think of the children" is a common argument, which is bullshit; perhaps such a large number of adults are so fearful exactly because they were never exposed to it.)

You have people who use the idea as a fantasy that someday they will do all the things they want to do, but don't have the time, money, or motivation to do today. This category is depressing, because I don't understand how someone can believe that an extended future would magically fix whatever is holding them back right now.

Then there are those who treat our species like a special little snowflake in the universe. That somehow being sentient with a consciousness is intrinsically deserving of cheating death - self-righteousness at the species level. That science can solve any problem, and not only will it be possible, but that it unequivocally should be done. "I think, therefore I am, and should forever be".

tldr; Death is, at least presently, inevitable. Get over it.

comment 10y ago · link · parent

You start by searching for an image that has been released in the public domain or made available under a permissive license. If you can't find one, you can create your own. In this case, the orbit information itself isn't going to be copywritten, so of course you can scribble one out on your own. It's another thing entirely to just google for an existing image and use it without consent.

comment 10y ago · link · parent

>> they be expecting 1-based indexing, they might not even know that that's a thing they have to think about

The truth of the matter is that this is not a point that anyone should ever mention as either a pro or con of any language. It's simply a fact that you're going to see one or the other, and it's useless to complain about which one is present in any given language. It's a one-time discovery as to which you're working with. People try to make it out to be a debilitating factor, when in reality it's a non-issue.

comment 10y ago · link · parent

The pessimist in me wonders just how altruistic the intention behind the wages in the Ford example was. If that were a modern example, I fear the rationale from management would not be about putting the vehicles within reach as an _optional_ bonus, but rather that it would be an unwritten rule that employees are expected to purchase one. Not buying the company's product? Enjoy your status as an employee who doesn't "fit the company culture".

Realization: I have become extremely cynical in my middle years with all the crap I've seen from employers. :/

1
212223
27