News for hackers. Stuff that matters.

raving-richard

Re:Introduction to Flat-File CMS on Friday April 24, 2020 @08:59AM (#22967456)
Check out Server Side Includes. They used to be all the rage. <!--#include virtual="../quote.txt" -->

You don't need to reinvent anything. Just use what used to exist.

(Also, you start doing SSI, and then you want a bit more power, so you switch to PHP, then before you know it, you go all out with PHP and MySQL. Finally, you say, "MySQL sucks, SQLite is much better and easier" (see also the other comment about SQLite).

In the end you realize that nothing matters. We all die alone in the end.

Re:A Common Blood Test Can Cost $11 or Almost $1k on Tuesday April 30, 2019 @09:44PM (#19793815)
Small claims court if it's less than the relevant small claims amount. Otherwise, a strongly worded letter from a cheap lawyer.

The legal system is often abused. But it sounds like you've got an actual legit issue, which is what the legal system is there for. Why not use it?

If you don't want to pay for a lawyer, you can write your own strongly worded letter. Just be sure to stick to facts, and keep very good records. In your letter, explain the issue briefly but clearly. Explain how you've attempted to resolve the issue. Explain how if the issue is not resolved, you will be forced to take action.

Address it to the hospital CEO, or whoever is in charge. Post it using registered mail.

Your local library may have a subscription to LexisNexis or a similar legal database. This will have form letters and chunks of legal text that you can copy and paste.

HN user patio11 wrote a thing about writing letters on this website that I can't just find. But find it, and read it. It also has helpful advice.

Re:Paul Graham on the Transition to Meat Substitutes on Sunday February 24, 2019 @08:27PM (#19241995)
Of these, I've eaten horse, whale, shark and eel. Actually, probably I've also eaten bugs.

The shark that I've eaten is perfectly good, and better than many other fish types (taste wise). Eel was good, but has to be prepared appropriately. Try it Japanese style.

The other two, not worth it. But again, probably something to do with preparation. Perhaps the way the French prepare horse is better than the way the Japanese do?

I don't think I've ever had the opportunity to eat human flesh. I'm surprised you've listed it.

Other animals that taste good include crocodile and kangaroo.

My point being, that taste is very subjective. You'll find people who want to eat those flavors, but don't want to eat the real thing.

Great to see Toybox getting some attention. While I'm still not convinced that BSD-0 is the best license, it certainly encourages innovation in the space.

Wait, you're not Robert Landley!

Naming stuff: one of the hard problems of computer science.

Re:Open Cola on Wednesday September 21, 2016 @08:03AM (#12547375)
Ecigarettes are actually better for you than real ones, and not only that, they basically make it easier to quit using nicotine altogether (according to reports I've seen).
Please note: "Happy Birthday" is well out of copyright in a number of countries that aren't the USA. Including Australia, and any other country that applied the rule that copyright expired 50 years after the death of the author. According to Wikipedia, the copyright expires in the EU at the end of next year (70 years after the death of the last author).

The fact that copyright extends for so long is a travesty and is something that we all should be fighting against (along with all the myriad of other injustices around...).

Re:Markdeep on Saturday October 17, 2015 @07:31AM (#10404086)
I too thought it was satire at first. I was all like "hmm, that's slightly amusing". And then I realised it was serious and I was all like "wtf is the point?", then "and if it's so amazing, why isn't the main website built using it?".

I'm over Markdown and related formats for the web. We have a great ASCII format for marking up the web, and it's called HTML.

Re:Free Lossless Image Format on Friday October 02, 2015 @08:54AM (#10318130)
Because it is GPL3, it won't be supported by Google on Android, by Apple probably anywhere, or by Microsoft anywhere.

In other words, it's a lovely idea, but due to a poor choice of license, it won't get any adoption. C.f. Ogg Vorbis, where the license for the specification is public domain, and the license for the libraries are BSD-like.

To quote FSF:

    Some libraries implement free standards that are competing against restricted standards, such as Ogg Vorbis (which competes against MP3 audio) and WebM (which competes against MPEG-4 video). For these projects, widespread use of the code is vital for advancing the cause of free software, and does more good than a copyleft on the project's code would do.[1]
I would suggest that this is a case where widespread use is more important than copyleft.

[1] https://www.gnu.org/licenses/license-recommendations.html

I don't think I've seen an Australian university library that wasn't open to anyone to walk in and browse the shelves. When I was in the UK I found it incredibly odd that most of the university libraries required ID, and made it quite difficult to visit.
Re:Ken Thompson: Reflections on Trusting Trust (1984) on Wednesday March 11, 2015 @06:28AM (#9183403)
(This comment originally posted: https://news.ycombinator.com/item?id=8023247 )

Please have a look at David A. Wheeler’s page on Trusting trust [1], including his 2009 PhD dissertation [2], where he clearly demonstrates that it is possible to have trusted (not in the MS sense...) computers (I think).

You may also be interested in 'Countering "Trusting Trust"' on Schneier's website [3], which discusses a 2006 paper, also by Wheeler.

[1] http://www.dwheeler.com/trusting-trust/

[2] http://www.dwheeler.com/trusting-trust/dissertation/html/whe....

[3] https://www.schneier.com/blog/archives/2006/01/countering_tr....

Re:The Way We Hire Is All Wrong on Wednesday January 28, 2015 @08:02AM (#8959519)
Of course, for that initial period, paying extra would be the way to go. The difference between what I suggest, and an ordinary probation period is thus: with an ordinary probation period, still only one person is hired, but not only do the others not get paid, the one person is still not guaranteed a job at the end of the process. My way's more upfront.
Re:The Way We Hire Is All Wrong on Wednesday January 28, 2015 @05:33AM (#8959055)
If I were ever in charge of hiring for many types of position (whether programming, or writing, or such), I think I would do something similar. The advertisement will say "looking for full time X (must complete initial contract period of Y weeks)" or similar. The best way to see if you like someone's work, is to see it. So, hire them for up to three months (telling them that this is what is happening, and why, and being completely upfront about it), and if it works out, hire them full time. Then, why not hire multiple people? If you have a program that needs work done, then hire six people to work on those parts for a couple of weeks. See who's work you like, then hire them full time.

This requires a change in both thinking, and how programming is done. You want to have nice chunks of work that can be completed by new people in a short period of time. But, I'm sure it's possible.

(Where I'm from, the way to get a full time job in many fields is: get casual work, get short term contracts, get longer term contracts, someone else dies or retires, you get offered a full time job. This is partly due to too many people looking for too few jobs. This is not an ideal situation, but does mean that by the time people are hired for the full time job, the people hiring them know them already, and the quality of their work.)

Re:£1500 If you find me a job I actually want to do on Wednesday December 03, 2014 @08:17AM (#8693556)
Sorry, but I'm not going to hire anyone for a technical position if they don't even have their own domain name. Seriously, talk about turn off. You're willing to spend £1500 on getting a job, but you aren't willing to spend less than £100 getting a domain and hosting for a year? (And I know that you can get domains for like $2 a year, and good hosting for less than $25, so £100 is far more than you need.)

Any professional tech person shouldn't having their email @ gmail (or any domain that isn't their own), or their website at something.wordpress.com or blogspot.com.

You can still use Gmail and Wordress.com, that's easy. If you're exceptionally lazy and can't be bothered using the incredibly easy ways of installing WordPress on your own hosting system (and using IMAP for email).

Also, for your education, I suggest recording it, to put the important stuff first: 2000-­‐2004: Bachelor of Computer Science (or whatever it was in), Babes-­‐Bolyai University, Cluj-­‐Napoca, Romania.

And if you speak Romanian, put that as well in your language section. If you only speak English, take out the entire section (looks stupid with only one language).

A smart cookie could vote in such a manner as that when the information is entered into the system, it crashes it? Maybe that's what they mean by manipulation...

Or, is it available online without any authentication other than knowing where it is? So if you know where it is, you could enter votes and then manipulate the election with those fake votes...

Re:SQLite: Small, Fast, Reliable – Choose any three on Tuesday July 15, 2014 @04:21AM (#8035335)
As per the AGPL, you don't actually have to distribute stuff that is linked to an AGPLed library or other software, if you are only using it internally (and/or via a network). Because you can claim it as GPL3, which doesn't have the network distribution clause...

From clause 13 of the AGPL: Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.

[1] http://www.gnu.org/licenses/agpl.html

[2] https://en.wikipedia.org/wiki/Affero_General_Public_License#...

If you trust your compiler, then you can read the source code and then trust the compiled executable. If you are worried, then you can build the rest of your tool chain from source...
Re:Image Protection on the Web on Friday July 11, 2014 @10:56PM (#8023560)
Without JS, it's all bad :(. But, with JS, and without CSS, I can just right-click¸ view-image. This gives me the base64 in the address bar (Firefox).

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA+VemSAAAgAElEQVR4nLS96ZMUV5rm6x/Czd2P7+7h4REeHntkZETkvkAmCYh

A simple save page later, and I get your image. Bang.

Re:Image Protection on the Web on Friday July 11, 2014 @08:46PM (#8023283)
These are all interesting, but defeated by me with one easy keyboard command (for the rest of you, it's View->Page Style->No Style). Without CSS, the main image is displayed just fine.

Some people really are trisky.

Even if you hate Bitcoin for other reasons, this is one reason to appreciate it. Gitian, the software used by Tor for deterministic builds (of their build of Firefox especially), was originally written by Bitcoin developers. Which makes sense, you want to make sure your money is secure.

Good things come out of things you might hate.

Please have a look at David A. Wheeler’s page on Trusting trust [1], including his 2009 PhD dissertation [2], where he clearly demonstrates that it is possible to have trusted (not in the MS sense...) computers (I think).

You may also be interested in 'Countering "Trusting Trust"' on Schneier's website [3], which discusses a 2006 paper, also by Wheeler.

[1] http://www.dwheeler.com/trusting-trust/ [2] http://www.dwheeler.com/trusting-trust/dissertation/html/whe... [3] https://www.schneier.com/blog/archives/2006/01/countering_tr...

Re:Ask HN: Why would you disable JavaScript? on Wednesday July 09, 2014 @12:39AM (#8008091)
Because people go and make sites that don't work with JS. Even though often it's /more/ work to make the site not-work with JS. And then they justify it by saying "well it's only 1 or 2 percent". It's not hard. And then "professionals" (like the OP) think that everyone has the latest fancy computer with super fast Internet (there are developed countries with rubbish Internet connections, let alone the less-developed countries that often share a single megabit per second for the whole country).

It's like people saying "well blind people, they don't even count, like who cares about accessibility anyway?". Fuck those people.

It's like the people who think it's just fine and dandy to have Google Analytics and Facebook trackers, and all the rest. Even when they should know better! You're contributing to a worse society by giving these companies so much power!

Next these young white men will wonder why anyone cares if someone jokes about "raping some bitch". I mean it's just a joke right? It's not serious. Why are you getting so up tight. Geeze, women. PC is just going too far.

And I guess this is just for your. Because this has dropped of the front-page. I think I need to go back to /., which while awful in it's own way, doesn't have men too young to shave asking stupid questions.

Re:Ask HN: Why would you disable JavaScript? on Tuesday July 08, 2014 @04:34AM (#8003559)
I don't support MSIE 6, or 7, or 8, or indeed any version of MSIE at all. But, and here's where it's different to not supporting users without JavaScript enabled, sites I make are still perfectly viewable in MSIE. And Lynx. And other esoteric browsers.

Progressive enhancement/graceful degradation allows me to build sites that work everywhere.

Not support users with JS turned off is exactly the opposite.

Re:Ask HN: Why would you disable JavaScript? on Tuesday July 08, 2014 @04:20AM (#8003526)
Yes you are supposed to cater to the 2%. Wolfram Alpha says 2% of the US population is 6.39 million people. That's how many potential people from just one country you are treating badly. And as for screen reading users, that's just another 2% isn't it (or another "tiny" number). Why do you care about them? Well, it is the law, but, it's also just sensible.

Also, people browse with poor Internet connections, and even if they have JS enabled, the JS might time-out before it downloads, and so they'll just have to see your content without it.

I browse without JS on most sites (and I need a good reason to enable it) for at least the following reasons:

1. It's safer for me.

2. I've lived and will live in places with really shit Internet connections.

3. It also conveniently gets rid of a bunch of crap (flashing stuff, ads, flashing ads, etc.) without me having to do anything specifically.

4. It blocks some tracking across the Internet (I also use RequestPolicy to really drive that message home).

Other reasons as well. Edit: including it's too often used for unnecessary fan-inducing overly-CPU using shit.

So you don't want me as a potential visitor? A tech-savey person? I'm not your target audience? That's OK, there's loads of other sites on the web, and I'm sure that yours is crap anyway. After all, if it wasn't crap, you'd have made it work without JS.

Edit: And if you are stupid enough to not be able to make your site work without JS, then at least put a noscript message explaining why your site is special enough to require JS, and why I shouldn't just close the tab and go to the next site. If you explain that it is necessary to make the froggles boggle, I'll think about it more than if you just say "you need to enable JavaScript or upgrade your browser". No, fuck you, I don't need to enable JS, you need to make your site work without it. Displaying text and images in no way requires JS, unless you're a real thicko who shouldn't be allowed to have any commit privileges.

Re:The Curse of Smart People on Tuesday July 01, 2014 @03:16AM (#7969481)
Could you explain why it is standard practice to downvote jokes? I don't get it. If it's funny, then people might want to read it. Over on /. a lot of the best comments are modded funny.
Re:The Curse of Smart People on Monday June 30, 2014 @11:36PM (#7969065)
Bah. I raided an Egyptian tomb, and ever since I've been followed around by smart people. They talk complex philosophy, discuss string theory, rave about Haskel, and talk about some the boast some French fella or another wrote in some book (in the margins I think). It's really annoying. Now that's a curse.

This article is just about how smart people have issues just like everyone else. Gee.

Edit: Ooh, some of "smart" people can't take a joke.

Re:The Sinking Ship of E-Mail Security on Sunday June 29, 2014 @01:49AM (#7960469)
Yes, to extend the postcard metaphor, it's like the bank sending a bank card PIN on a postcard. Not secure at all.
Re:The Sinking Ship of E-Mail Security on Sunday June 29, 2014 @01:47AM (#7960462)
Your software can try each key until one of them works. If none of them work, it can say "this message can't be opened with one of the keys available". Or even "this message requires key 1234 5678 to open, but it's not currently available". It's not something you need to care about. You don't need to have any information about the sender unencrypted. It's not at all necessary to deliver the message.
Re:The Sinking Ship of E-Mail Security on Saturday June 28, 2014 @08:37PM (#7959921)

    Anyway, even if a encrypted anonymous message arrives for me, just working out who it's from without any metadata seems complex web of double decryption
It's simple. You can encrypt everything, including the metadata. Then, when it arrives in your box, you simply decrypt everything, and see who it's from. It doesn't have to be anonymous.
Whenever I get depressed there are some coping mechanisms I use.

* Play games (e.g. OpenArena and FreeCiv), cheating liberally and/or playing on easy settings. (Yeah, take that bot...)

* Go for long bike rides. Take water, some food, and a good book. Go somewhere new each time.

*Read a good book. I read SF&F, but whatever tickles your fancy.

Oh look, all escapist mechanisms. That's OK. I can't offer any suggestion as to debt relief, as that's something else. But...

That's brilliant. I was wondering if there was a list that actually provided the relevant information. Thanks for the link.

Older »