Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pwaring
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
121.
▲
by
pwaring
15y ago
It's not a tutorial as such, but the Modern Perl book is up to date: http://www.onyxneon.com/books/modern_perl/ Unfortunately you can't create your own set of tutorials from it, and it doesn't rank highly in Google.
122.
▲
by
pwaring
15y ago
I've never had a problem, and I suspect it's more likely to be shared hosting which ends up getting blacklisted due to people installing insecure scripts. If you use a half-decent provider who quickly investigates any unusual traffic on the
123.
▲
by
pwaring
15y ago
"ALWAYS make backups!" To be fair, that applies to any hosting, cheap or expensive, virtual or dedicated. I've only once had to restore data due to the fault of the host, but I've lost track of the number of times that I've had to get thing
124.
▲
by
pwaring
15y ago
I've run all my personal services (email, web sites, screen sessions etc.) off two Bytemark[1] virtual machines with 500MB of RAM each and the only problems I've experienced have been one or two 'high up' problems such as two core routers g
125.
▲
by
pwaring
15y ago
"Neither should consultants who recommend and deploy a service [be penalised]" In this case I'd suggest they're being penalised for not reading the limitations before recommending a product to their client, and not double-checking that the
126.
▲
by
pwaring
15y ago
Indeed, and if you use -Wall -Wextra -ansi -pedantic you get: pointer-test.c:7:3: warning: format ‘%p’ expects type ‘void * ’, but argument 2 has type ‘int * ’ Same goes for using -std=c99 instead of -ansi, although casting to (void *) does
127.
▲
by
pwaring
15y ago
The Iceweasel name in Debian is not because Debian give away Firefox for free (as in no cost), it's because Mozilla only allow you to call the software Firefox if you use an official build (or get permission for non-official builds), and I
128.
▲
by
pwaring
15y ago
Or you can turn your product into a web application which you host, and ignore the GPL entirely if it's not the Affero version. The same might apply if you have a small client binary which you distribute the code to, but keep the server cod
129.
▲
by
pwaring
15y ago
LibreOffice is not GPL, it is LGPL (and also MPL for new contributions, which I believe is not GPL compatible). So depending on how OpenOffice.org used parts of LibreOffice, they might be able to include them. Admittedly it starts to get
130.
▲
by
pwaring
15y ago
I'm not sure what the benefit would be to LibreOffice if they merged under the ASF. It's already a large project with lots of contributors (and an excellent 'how to get involved' section which more OSS projects should emulate), infrastructu
131.
▲
by
pwaring
15y ago
Handily, gcc has -Werror, which turns all warnings into errors. So -Wall -Wextra -Werror should catch most things.
132.
▲
by
pwaring
15y ago
Ah, I'm using a newer version of gcc, which seems to catch the warning regardless of the optimisation level (including none at all). The text of the man page also seems to be different.
133.
▲
by
pwaring
15y ago
If you're being sensible and using -Wall with gcc, it will pick up the %zu thing anyway: sizeof-test.c: In function ‘main’: sizeof-test.c:5:3: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’ Compilers ha
134.
▲
by
pwaring
15y ago
That only applies to warnings in conjunction with optimisations though, just turning optimisations on (as shown in the example slide) won't necessarily pick up uninitialised variables. For example, if I compile the example given in the slid
135.
▲
by
pwaring
15y ago
I'm a bit surprised by the suggestion that optimisation somehow makes the compiler work harder (e.g. catching uninitialised variables), isn't that what -W flags are for? I'm not sure that optimiser flags will catch anything with gcc that -W
136.
▲
by
pwaring
15y ago
I agree on the "I would never write code like this" point. I have never read the C standard and don't know off the top of my head what happens when you fail to initialise a static vs auto variable, but I don't really care because I would ne
137.
▲
by
pwaring
15y ago
I agree, I run XP and Vista under Virtualbox for testing websites, plus Debian for when I want to guarantee a clean development environment. I've never had any problems, other than with some Windows games which can't detect the CD drive bec
138.
▲
by
pwaring
15y ago
Potentially easier link to read, in terms of the threading: http://thread.gmane.org/gmane.linux.kernel/1200194
139.
▲
by
pwaring
15y ago
Even if you do, you're still liable for any charges which hit the account after it's been closed, at least according to every closed account letter I've received (in the UK, not sure what the process is in other countries). Plus you can't c
140.
▲
by
pwaring
15y ago
That's standard practice for all cards, it's not just AMEX (I believe the authority is based on the account rather than the card). In the UK, there's no easy way to cancel a recurring payment on a card other than contacting the entity takin
141.
▲
by
pwaring
15y ago
Git supports hooks, so you could write a script to push a branch out to a server whenever a commit is made. That would be more sensible than running 'git pull' in a cron job.
142.
▲
by
pwaring
15y ago
You don't even have to be in the eurozone, I know UK companies which have euro accounts with international banks such as HSBC, which sit alongside their sterling accounts. The same goes for dollars, and probably other major currencies as we
143.
▲
by
pwaring
15y ago
It's a bit dubious to say "Europe is the largest economy in the world", because it's not really a single economy, more a collection of economies of varying sizes, with different currencies, laws and banking systems. You also have to be care
144.
▲
by
pwaring
15y ago
It's also different in those other countries in the world (yes, there are technology companies outside the US).
145.
▲
by
pwaring
15y ago
"This rectangle represents the calculation of sales x price, and the biggest rectangle represents the biggest profit." Err, no. The biggest rectangle represents the biggest revenue . Profit != revenue, unless you have zero costs.
146.
▲
by
pwaring
15y ago
Why not just fill in the link after review but before publication? Presumably that happens with other information which identifies authors, such as their names and email addresses. Although 'blind' reviewing is something of a misnomer in sm
147.
▲
by
pwaring
15y ago
I presume they mean nginx will be the default web server, rather than removing Apache altogether? You can't just replace Apache with nginx, they're two different pieces of software - admittedly with some overlap.
148.
▲
by
pwaring
15y ago
They are generally not open to the public, and when they are you are rarely allowed to access electronic journals because of the licence agreement which the university has signed with the publisher.
149.
▲
by
pwaring
15y ago
Depends which country you are in - UK libraries don't usually have access to academic journals.
150.
▲
by
pwaring
15y ago
Is that a big problem? Replies are public, so signing up as another user is not leaking any private data.
More ›