2,010 karma · joined Dec 27, 2015 (10y ago) · 785 submissions
comment 9y ago · link · parent
comment 9y ago · link · parent
Yes, MySQL's ordering of languages within unicode may be arbitrary, not necessarily very meaningful, and in some cases even "wrong" - but at least you can do it, and the results are consistent and usable. Postgres is outright unusable in this scenario.
comment 9y ago · link · parent
comment 9y ago · link · parent
The long and short of it: you're trying to win over another human being to be on your side. You don't demand that a company or "lowly employee" meet your expectations. Tact for the win!
comment 9y ago · link · parent
Related aside: to this day, we still cannot write <script src="/main.js"/>. We must use <script src="/main.js"></script>. All because of a multi-decade old description of a CDATA element. Sigh.
comment 9y ago · link · parent
comment 9y ago · link · parent
The explanation as to why Montreal is a fairly busy tech hub likely has to do with salaries here vs. the expectation for equivalent talent in the US. Most companies here are actually American companies, and the only reason their offices are located here is because even senior developers tend to earn < $85k/year CAD, with $60-70k being more common. That's $48k to $70k/year USD vs. the $100-200k+ USD they'd have to pay within the US. Government incentives (looking at you, SR&ED) reimburse these companies a significant portion of developers' salaries, making it even cheaper. Canada is, for many American businesses, essentially a step above outsourcing to India.
comment 9y ago · link · parent
Capturing the PDF at even the onload event (let alone the useless DOMContentLoaded event) is going to capture an incomplete picture in a huge number of situations. Frankly, a PDF capture at onload event is going to be utterly unusable. Is there a way to set a delay before capturing, ie: 10 seconds?
In an ideal world, a true "finished loading" event would trigger only after all DOMContentLoaded and onload handlers are executed, only once any AJAX requests launched by such handlers are completed (including requests fired off in their handlers, recursively). Of course, websockets and long polling ajax would still interfere with detecting a true "finished" event, but it'd be better than setting an artificially large delay of 10+ seconds.
comment 9y ago · link · parent
It goes to show how the average person thinks - everything has to be about the ability to make money, right? Why should anybody do ANYTHING if it's not aimed at directly producing income? So few people remotely understood that this has NOTHING to do with the final product and its (non-)place in the world. This is about learning a lot about every step, from concept and design to an extremely complex production process, of a single interesting idea. No, it's not about patenting. No, it's not about mass-producing in China to get-rich-quick. No, it's not about showing off "an amazing 23rd century Apple product", which it is clearly not.
Reading deep into the comments about his resulting product made me even more cynical about the average population. People just don't get it. The overall assumption is he's trying to invent the latest thing to sell people. The only reason to do anything in life must be backed by capitalist ambition! It is an idea, brought to fruition by one man's amazing ability to dedicate himself to learning - and performing - the entire process. IT HAS NOTHING TO DO WITH YOUR OWN SKEWED INTERPRETATION OF HIS SUPPOSED INTENTIONS.
tldr; People's obsession with capitalism seeps into everything they come across. You can't share the result of your labour without people only being able to see the possibilities from a capitalist point of view. Everything is viewed from a capitalist (if not, then political) standpoint; anything else is apparently unfathomable.
tldr #2; I am envious of this product's creator. I wish I had even 5% of the creator's vision, ingenuity, ambition, or skill - let alone all four of those attributes.
comment 9y ago · link · parent
The solution with Facebook is simple: if you don't want to have a deceased person showing up on your feed, unfriend them and add them to your block list. Assuming Facebook is well-designed, blocking someone should prevent them from ever showing up in your feed, even if others are tagging them in photos or posting to their wall. As for your being aware that "the profile is still there and other people are interacting with it", get over it. It's not your place to dictate how others should deal with the death. You have the choice to not look; so don't look if you don't want to. Lack of self-control to not check back every month to see what other people are doing is not a valid reason to nuke the profile from orbit.
Speaking to the internet at large: the only way to mandate how companies must respond to news of a death would require tying every single page load on the internet to an official government ID. Nobody wants to provide their government ID to ThePirateBay and PornHub just so that their entire online identity can uniformly vanish upon death.
How many people burn their photo albums when a loved one dies, in order to remove all traces of that person? Nobody. Why should the digital equivalent be any different? More simply, why should an online presence be terminated? Just... "why?". I suspect every attempted answer to that question is born of self-centred excuses that have no merit; ie: based on "I" or "me" - "I don't want to be reminded", "It pains me to see", etc.
tldr; The whole think stinks of "Won't somebody think of the children?!", but instead it's "Won't somebody think of me me me me me?!". The level of absurdity seems equivalent to me.
comment 9y ago · link · parent
Same goes for Amazon et al. The business strategy is to crush every small retailer by operating at slim to no margins, purely to make it impossible for anyone else to compete.
comment 9y ago · link · parent
If your projects typically do a lot of string parsing, get ready for a world of hell. Swift 4 didn't improve upon the very basic ability to extract a substring from the middle of a string. It takes 3-4 lines of code, with throwaway explicitly defined variables, to do the equivalent of a str.substr(start, end|length). It boggles the mind that you can't do a str.utf8.substr(3, 5) in Swift.
comment 9y ago · link · parent
I'd probably just shove the passwords into a database, limiting the index prefix to the first X characters to reduce index size.
comment 9y ago · link · parent
Personally, this is the part that really scares me. The majority of us Canadians do not have personal lawyers. If this happened to me, I'd be stuck trying to find a lawyer for the first time. I'm sure the thugs entering my home would seize my computers and phone immediately, and refuse to allow me to use them to look up and contact a lawyer. Due to the seizure, I'd be unable to find representation. What do you do at that point?
comment 9y ago · link · parent
Discord's specifics aside, it blows my mind that people use any off-site SAAS for internal communications, including Slack. The database set contains so much critical information, including infrastructure passwords, private SSL and SSH certs, etc. Employees will send anything and everything over the company's chat client. Even if you trust the company's employees and general security, the fact remains that your uploaded attachments typically have a public URL not requiring authentication to download.
comment 9y ago · link · parent
With Google specifically, the worst part is you really do have to look at the URL every single time you go to enter your password. And by that I mean that if you land on the login page, verify the URL, enter your password, submit, and get the error page saying you got the password wrong... you must check the URL again before re-entering your password.
Why? Because Google's login, by design - and repeatedly defended by them as being "acceptable" - allows redirecting off Google's properties after login. So hackers send you to the real Google login page, with a post-login redirect to a fake but perfect copy of the "wrong password, try again" page, where they then capture the passwords of people who mindlessly re-enter their password without double checking the URL a second time.
Most importantly, 2FA does not help you here. You'll enter a currently valid 2FA code on the hacker's site, and they will immediately use that code to actually log in to your account. Before you realize what is happening, you are already locked out of your account - new password, 2FA stripped or replaced, security questions changed, and all pre-existing sessions/devices wiped.
comment 9y ago · link · parent
This applies to things like date pickers and html5 charts as well. While these could be separated into a separate category based on the fact that their markets are oversaturated, the result is the same: why pay when there are perfectly usable options that are free, or can be done in-house on the cheap if necessary?
comment 9y ago · link · parent
comment 9y ago · link · parent
[1] https://slack.engineering/reducing-slacks-memory-footprint-4...
Quotes:
>> This memory footprint increases as the user signs into more teams, as each team runs in its own webview.
>> Each of these teams is running the full JavaScript web application and maintaining and updating the DOM tree as the state of the team changes.
>> Work is underway to fix the underlying factors affecting client memory consumption
>> Exploring running all teams in a shared context to eliminate the overhead of one webview per team.
comment 9y ago · link · parent
If such a company's database of hashed passwords is leaked, then an attacker doesn't even have to crack the hashes - the hash itself is a valid version of the password. Yet I've seen this behavior at multiple companies; only one of them pushed back against my request to remove that "feature", and I didn't stay with them much longer after that.
comment 9y ago · link · parent
If I wanted Ubuntu, I would have it on my MacBook (dual boot or replacement). I don't want Ubuntu. I want OS X. Apple hardware is great for development, but the real reason I am here is for the operating system and software. So no, Windows+Ubuntu does nothing to replace a MacBook or iMac with OS X.
comment 9y ago · link · parent
[1] http://xjubier.free.fr/en/site_pages/SolarEclipseCalc_Diagra...
comment 9y ago · link · parent
"Serverless" had no previous meaning - it's not like Amazon bastardized an existing term. The word will ultimately be defined once people expect it to mean something specific. Personally I like Amazon's use of the term here.
A recent similar example: the word "performant". The number of stubborn people who screamed "performant isn't a word!" was ridiculous. Everyone understands the intention behind the word "performant" without needing to have it explained to them. The introduction and wide adoption of a word is exactly how new words are folded into language. Language is fluid! Language has never been static and inflexible, and pouting because we have extended the dictionary over and over again for thousands of years is frivolous.