I don't; I do install Enlightenment though:-) But yeah, I don't get why people, on slashdot of all places, seem so mortified when an OS default setting gets changed - as though they're not only using the defaults, but don't know how to change them other than by switching distro...
Oh, I have the latest browser plugin - but this is the latest stand-alone version (that I'm aware of), which seems to have better performance and stability for flash games (those that are compatible at least)
I still opine that the rapidly changing selection of APIs, libraries,...
I've had the stand-alone flash player installed in my home directory for a while, moving with me across distros and hardware -- it was installed on 32-bit debian in 2006, and it's still working on my 64-bit ubuntu 11.10 install today.</anecdote>
The only problem I have with OpenID is that it's so web-centric it's a pain in the ass to implement for native apps. Could we please have a distributed ID system that *can* use a web browser, but doesn't *require* one?
I have a hanns-g monitor with nothing smart about it at all, and it takes 10-15 seconds to go from power on to displaying something, and has 5-10 seconds of blankness when switching resolution (even "switching" from 1080p to 1080p). Much slower than even their slightly older models, and I have no idea why. I dread to think how painful it would be with an OS installed...
XBMC already runs nicely on the pi; the software-rendered GUI maxes out the CPU (I'm not sure if this is before or after the software renderer improvements they're working on), but hardware accelerated 1080p30 playback is fine - one of the XBMC developers was given access to an alpha board IIRC. Apparently the integration is one of the many things the Pi people have been asked not to talk about, so I presume things are brewing behind the scenes and they don't want to be assaulted with questions until it's 100% finished.
As I understand it, the magnet is effectively the hash of the.torrent file; given the magnet, a client will connect to the distributed database of.torrent files and download it from there, and then carry on as if it had downloaded the.torrent over HTTP. Like a meta-bittorrent, using P2P to take the load away from TPB's centralised servers:-P
"There's no function to modify one part of the URL"
Because you're running a front loaded controller, duh. Check your Cake how-to don't blame PHP.
Third party frameworks are required for basic web functionality, in a language whose explicit primary market is web apps?
"string" + "string" is valid code
No, it's $string.$string. What you wrote is Javascript. Again, don't blame PHP if you can't keep your syntax separate.
Wrong, "." is correct for string concatenation, "+" however is perfectly valid PHP syntax. PHP will accept the code, run it, and do something stupid with it. Using "." for concatenation is rare, but I can live with it, and I accept that it's my fault for getting them confused - however, "foo" + "bar" should in that case be a syntax error or a cast-to-int error, not a valid way to specify numeric zero.
In general, the PHP philosophy of "we know parse errors are annoying, so we'll silently make a guess at what you might mean, and then do something unrelated" is a really bad philosophy for a programming language to have.
As for your parse_str() rant, it works as advertised. I would recommend you RTFM.
I have RTFM, I know that it works as advertised. The way that it is advertised as working is retarded and inconsistent, even by PHP standards:-) "It's documented, so it's a feature" is a terrible excuse, but it's the excuse that seems to be used for pretty much the entire platform (see: some function names have underscores and others don't, see also func($haystack, $needle) vs func($needle, $haystack), see also how all across the documentation there are caveats, warnings, and gotchas that a developer needs to know, where in any good language the standard library just works no questions asked...).
The symlink() not working as advertised on windows is a Windows / Linux operating system compatibility issue that Microsoft won't fix. It has nothing to do with PHP.
If it doesn't work, why is the function there? In several other cases, platform-specific functions are left undefined on some platforms, so you can do "if(function exists) {use function} else {use backup}", which is fair enough. But now I have to do "if(function exists and platform isn't windows)" because it's defined but broken. If PHP was at least consistent in its brokenness, I could put up with it; but every part of it seems to be broken in a different way.
Your issues surrounding PDO and MySQL, Postgres, MsSQL etc.. exist with all Languages, even on Windows. So I don't see how this has anything to do with PHP, at all.
False, the issues I've mentioned in PDO aren't there in any of the Python or Java database abstraction layers I've used. Sure, the SQL syntax can be different depending on the back-end; but in PHP, the abstraction layer itself acts differently depending on the back end.
"lots of things break in weird ways under "safe" mode"
Yeah, that safe mode, total crap. People should be told to not rely on it, it should totally be deprecated, there should be better more reliable ways to protect your database from SQL injection, and OH WAIT! There is, there are, there have been for a few years now... If you can't keep up, don't blame the language.
My own servers are relatively up to date, but when I'm writing code to be distributed, I need to keep dealing with PHP's inbred mutant history. Yeah, all languages improve and writing to a legacy spec is annoying, but I've never met a language whose legacy is as horrible and as alive as PHP's.
This also reminds me of the red vs blue quote; PHP proponents keep admitting that version $current-1 was completely stupid and broken, claiming that version $current is good. It isn't, it's still crap, it's just going to take you until version $current+1 to realise it. Again, yes, other languages improve -- but when I look back
I don't know what the figure being talked about is, but one time while waiting for a friend in London, I looked up, and found ~15 CCTV cameras in line of sight; even if that was an anomalously high area, it still seems a bit much...
I've done professional projects with PHP and Python (Pylons specifically, with Mako for templates and SQLAlchemy as ORM; and a few small projects with web.py)
After a couple of years with Python, every week or two I'm still learning a wonderful new thing that makes me smile and makes life easier.
After a couple of years with PHP, every day (sometimes several times per day) I'm finding some bug, design flaw, or general retardation in the standard libraries that makes me want to simultaneously cry and punch a PHP developer. Taking a look down my commit logs for the past week:
- There's no function to modify one part of the URL (eg, input="/foo/bar?a=32&b=cake", "a=123", output "/foo/bar?a=123&b=cake")
- "string" + "string" is valid code, runs fine, doesn't raise a parser error. Does it equal "stringstring"? No, it equals numeric zero.
- parse_str(). What does this function do? From the name we can gather that it parses... some sort of undefined string? Great. Actually, it parses a URL query string, which is sort of useful. Can we assume that it returns the parsed values as a dictionary, like most functions return their return values? Nope, this one returns null on success and will overwrite any arbitrary global variable with the user supplied data. WTF.
- Tons of platform-specific WTFs, like how symlink() works on windows, and will create the NTFS version of a symlink - but then is_link() will return False if you later inspect it.
- The abstraction libraries (in this case PDO) will have major differences in behaviour depending on their backends; MySQL has username and password as part of the connection string, Postgres requires them to be separate paramaters. Also, MySQL allows multiple SQL paramaters bound with the same name, and Postgres doesn't. Looking up the bug report for this, it seems that this useful feature used to work fine on all back ends, but they removed it because it wasn't documented as working; but they just didn't do a very good job of removing it from the mysql backend...
- Tons of configuration-specific WTFs; lots of things break in weird ways under "safe" mode, things like checking if a disk has space available are banned.
6 WTFs and it's only Tuesday. This in addition to all the regular and well-known retardations, like how they thought it was a good idea to automatically escape all input data assuming that it would be inserted into a mysql database - but they escaped it in a broken way, so even if you did want to insert it into a mysql database you'd need to un-escape it and then re-escape it properly (remembering to use mysql_real_escape_string, because mysql_escape_string is buggy and insecure. Not that anyone should be building SQL strings by hand anyway...)
The one and only positive thing I have to say about PHP is that it has a low barrier to entry; any monkey can take your code and install it on their cheapo shared web host, and do simple modifications for themselves.
a dedicated network as with the banks' teller terminals and ATMs.
I'm not sure ATMs are as segregated as you'd think - a few years ago when loads of XP boxes were getting hit by the worm of the day (code red?), a bunch of ATMs were getting knocked offline by it...
I have 64-bit enlightenment; ignoring the four major memory hogs that I've chosen to add (chrome, spotify, liferea, skype), my whole system is 300MB after several days of heavy use, looking at the desktop environment alone, it's about 40MB. Now that I think about it, I wonder what it's using all that memory for...
I think the thing that most impresses me about E is that while it was seen as incredibly bloated when first introduced, it's the only bit of software I can think of where the system requirements have stayed constant while new features were added, and it's now classed as a lightweight; seeing the other DEs getting slower with every generation despite running on faster hardware, I wonder how they do it...
This. I wonder if the govt will be publishing a list of banned domains and IP addresses, so the cycle from blocked to unblocked could be fully automated...
Nerds care, and as much as the site has been trying to pander to the masses, nerds still appreciate "Slashdot: news for nerds" running the occasional nerdy story:P
Noobs get the noob desktop. Professionals get apt-get so they can install a hundred other desktops for themselves. Where's the problem?
I don't; I do install Enlightenment though :-) But yeah, I don't get why people, on slashdot of all places, seem so mortified when an OS default setting gets changed - as though they're not only using the defaults, but don't know how to change them other than by switching distro...
Oh, I have the latest browser plugin - but this is the latest stand-alone version (that I'm aware of), which seems to have better performance and stability for flash games (those that are compatible at least)
I still opine that the rapidly changing selection of APIs, libraries, ...
I've had the stand-alone flash player installed in my home directory for a while, moving with me across distros and hardware -- it was installed on 32-bit debian in 2006, and it's still working on my 64-bit ubuntu 11.10 install today.</anecdote>
What about most of the Netherlands, 25% of which would be sea if not for man's engineering?
a new browser-based system
The only problem I have with OpenID is that it's so web-centric it's a pain in the ass to implement for native apps. Could we please have a distributed ID system that *can* use a web browser, but doesn't *require* one?
Hounds? I'd rather he released the photos!
if google shut down completely, how would people google for information on how to stop these acts? :-P
I have a hanns-g monitor with nothing smart about it at all, and it takes 10-15 seconds to go from power on to displaying something, and has 5-10 seconds of blankness when switching resolution (even "switching" from 1080p to 1080p). Much slower than even their slightly older models, and I have no idea why. I dread to think how painful it would be with an OS installed...
XBMC already runs nicely on the pi; the software-rendered GUI maxes out the CPU (I'm not sure if this is before or after the software renderer improvements they're working on), but hardware accelerated 1080p30 playback is fine - one of the XBMC developers was given access to an alpha board IIRC. Apparently the integration is one of the many things the Pi people have been asked not to talk about, so I presume things are brewing behind the scenes and they don't want to be assaulted with questions until it's 100% finished.
As I understand it, the magnet is effectively the hash of the .torrent file; given the magnet, a client will connect to the distributed database of .torrent files and download it from there, and then carry on as if it had downloaded the .torrent over HTTP. Like a meta-bittorrent, using P2P to take the load away from TPB's centralised servers :-P
"There's no function to modify one part of the URL" Because you're running a front loaded controller, duh. Check your Cake how-to don't blame PHP.
Third party frameworks are required for basic web functionality, in a language whose explicit primary market is web apps?
"string" + "string" is valid code No, it's $string.$string. What you wrote is Javascript. Again, don't blame PHP if you can't keep your syntax separate.
Wrong, "." is correct for string concatenation, "+" however is perfectly valid PHP syntax. PHP will accept the code, run it, and do something stupid with it. Using "." for concatenation is rare, but I can live with it, and I accept that it's my fault for getting them confused - however, "foo" + "bar" should in that case be a syntax error or a cast-to-int error, not a valid way to specify numeric zero.
In general, the PHP philosophy of "we know parse errors are annoying, so we'll silently make a guess at what you might mean, and then do something unrelated" is a really bad philosophy for a programming language to have.
As for your parse_str() rant, it works as advertised. I would recommend you RTFM.
I have RTFM, I know that it works as advertised. The way that it is advertised as working is retarded and inconsistent, even by PHP standards :-) "It's documented, so it's a feature" is a terrible excuse, but it's the excuse that seems to be used for pretty much the entire platform (see: some function names have underscores and others don't, see also func($haystack, $needle) vs func($needle, $haystack), see also how all across the documentation there are caveats, warnings, and gotchas that a developer needs to know, where in any good language the standard library just works no questions asked...).
The symlink() not working as advertised on windows is a Windows / Linux operating system compatibility issue that Microsoft won't fix. It has nothing to do with PHP.
If it doesn't work, why is the function there? In several other cases, platform-specific functions are left undefined on some platforms, so you can do "if(function exists) {use function} else {use backup}", which is fair enough. But now I have to do "if(function exists and platform isn't windows)" because it's defined but broken. If PHP was at least consistent in its brokenness, I could put up with it; but every part of it seems to be broken in a different way.
Your issues surrounding PDO and MySQL, Postgres, MsSQL etc.. exist with all Languages, even on Windows. So I don't see how this has anything to do with PHP, at all.
False, the issues I've mentioned in PDO aren't there in any of the Python or Java database abstraction layers I've used. Sure, the SQL syntax can be different depending on the back-end; but in PHP, the abstraction layer itself acts differently depending on the back end.
"lots of things break in weird ways under "safe" mode" Yeah, that safe mode, total crap. People should be told to not rely on it, it should totally be deprecated, there should be better more reliable ways to protect your database from SQL injection, and OH WAIT! There is, there are, there have been for a few years now... If you can't keep up, don't blame the language.
My own servers are relatively up to date, but when I'm writing code to be distributed, I need to keep dealing with PHP's inbred mutant history. Yeah, all languages improve and writing to a legacy spec is annoying, but I've never met a language whose legacy is as horrible and as alive as PHP's.
This also reminds me of the red vs blue quote; PHP proponents keep admitting that version $current-1 was completely stupid and broken, claiming that version $current is good. It isn't, it's still crap, it's just going to take you until version $current+1 to realise it. Again, yes, other languages improve -- but when I look back
I don't know what the figure being talked about is, but one time while waiting for a friend in London, I looked up, and found ~15 CCTV cameras in line of sight; even if that was an anomalously high area, it still seems a bit much...
Now, it's becoming plausible.
It's always been plausible (Go look at a goth nightclub :P), but now we know the reason that everybody in the future does it.
for pairs of files giving similar checksum
MD5 / SHA1 / most good hashing algorithms will give completely different hashes for a single bit of data difference
remove one of them and make it a hard-link to the other
What then happens when you write to one of the files?
$ md5sum
d41d8cd98f00b204e9800998ecf8427e
$ cat aaah.png >
$ md5sum
d41d8cd98f00b204e9800998ecf8427e
-
Duplicates!
Unless you want to run firefox without swapping...
I've done professional projects with PHP and Python (Pylons specifically, with Mako for templates and SQLAlchemy as ORM; and a few small projects with web.py)
After a couple of years with Python, every week or two I'm still learning a wonderful new thing that makes me smile and makes life easier.
After a couple of years with PHP, every day (sometimes several times per day) I'm finding some bug, design flaw, or general retardation in the standard libraries that makes me want to simultaneously cry and punch a PHP developer. Taking a look down my commit logs for the past week:
6 WTFs and it's only Tuesday. This in addition to all the regular and well-known retardations, like how they thought it was a good idea to automatically escape all input data assuming that it would be inserted into a mysql database - but they escaped it in a broken way, so even if you did want to insert it into a mysql database you'd need to un-escape it and then re-escape it properly (remembering to use mysql_real_escape_string, because mysql_escape_string is buggy and insecure. Not that anyone should be building SQL strings by hand anyway...)
The one and only positive thing I have to say about PHP is that it has a low barrier to entry; any monkey can take your code and install it on their cheapo shared web host, and do simple modifications for themselves.
a dedicated network as with the banks' teller terminals and ATMs.
I'm not sure ATMs are as segregated as you'd think - a few years ago when loads of XP boxes were getting hit by the worm of the day (code red?), a bunch of ATMs were getting knocked offline by it...
in Japan: PHS ("handy phone")
It's been nearly 15 years, and at last I have an answer to WTF that unexplained option on the FFVII menu screen was about. Thank you so much!
I have 64-bit enlightenment; ignoring the four major memory hogs that I've chosen to add (chrome, spotify, liferea, skype), my whole system is 300MB after several days of heavy use, looking at the desktop environment alone, it's about 40MB. Now that I think about it, I wonder what it's using all that memory for...
I think the thing that most impresses me about E is that while it was seen as incredibly bloated when first introduced, it's the only bit of software I can think of where the system requirements have stayed constant while new features were added, and it's now classed as a lightweight; seeing the other DEs getting slower with every generation despite running on faster hardware, I wonder how they do it...
Looking at the site, it seems like it's quake1 with half of quake3's features added to it. Why would I not just use quake3?
This. I wonder if the govt will be publishing a list of banned domains and IP addresses, so the cycle from blocked to unblocked could be fully automated...
Nerds care, and as much as the site has been trying to pander to the masses, nerds still appreciate "Slashdot: news for nerds" running the occasional nerdy story :P
Discs will remain as long as broadband speeds make downloading 50 GB (on a blueray, not 30) an irritatingly slow process
How long would it take to only download the title screen and first level? You don't always need to have everything ready to get started