@ircmaxell Just so I understand; in this context the structural typehint is checking the methods instead of the typename/hierarchy; the <type> is just a slug you create to represent a subset of functionality.
pick a number between 6 and infinity, then subtract 1, multiply by pi, divide by the ratio of a golden triangle, then replace it with 6, and you have the next number.
@Gordon because people may latch on to it. Let them think it's a great idea. It's like a turing test, but to detect those who have no idea how standards actually work
Guys sorry to bug you but I'm trying to setup SSL on Amazon ec-2 instant. I've added https in security group of my instance and configured other things (crt , httpd.conf etc) but still when I open mysite it shows webpage not available. Any guesses where I might be going wrong ? Do I need to explicitly add rule in iptables to allow connection on 443 ?
@webarto Well, it's only worth it when you also set your real resolution to 2880x1800 and don't let the OS fit every pixel in 4 (1440x900) or 2.25 (1920x1200) pixels…
> Furhtermore, we noticed that you used a fake name to register on XING. Unfortunately this represents a violation of our General Terms and Conditions, which in turn led to our quality/security department blocking your account with the e-mail address "[email protected]".
@Dan my experience is that you'll generally get as much out as you put in. If you don't put effort into being here, you're not going to have a good experience...
@Dan moderators can delete your account. we just have a tiny formal process to follow for that, so unless you edit the "About Me" section of your profile to say “please delete me”, it wont happen
in past years, it has been going downhill. the account deletion is more of a privacy thing. I don't get anywhere near out of this what I put in --- unlike other sites like PlanetSourceCode / etc
@DanLugg If you post your real name etc, etc, etc. Then, yeah... but if you're "nobody" (like Linux user), I don't see the point in hurrying up someone, because no one knows who you are.
php.net ... never have I been disrespected so much. and this site allows Lurkers to bash with down-votes... makes it difficult for those (like myself) whose old account was so old, it was gone.
@Dan "I will be deleting my account after this and sourcing solutions to my more complex problems (that clearly most people are incapable of handling here) via other more PROFESSIONAL solutions than this" --> This is really disrespectful to those who are here to help for free and professionally
@reikyoushin I got bashed once when I posted "give me teh codez" look a like because I was lazy to post a question like it should be, so... I don't believe it.
Given an array :
$foo = Array(
99=>'Lowest Numbers',
123=>'Low Numbers',
456=>'High Numbers',
777=>'Highest Numbers',
);
... and the value '144', I would like to return the nearest low value, and nearest high value without having to loop through each ele...
@Dan actually, yours is going to be the most expensive, because you copy the array several times. In general, I'd prefer a binary search for a case like this... Which you need a PHP loop, but it'd be O(n log n) worst case (O(1) best) as opposed to yours which is O(n) best and worst case...
@HamZa - If you notice, I have a couple more methods that are loops posted underneath. Am able to rescue some time by exiting on found, however sorting is what really hurts --- I really don't like having to copy the keys, but it actually does seem to be much faster than the loop methods below
@HamZa - also, I only sort where it's necessary. Faster to inject and sort, than to run through the whole loop with a math compare -- I don't know why.... but the second part to that, is using the C based loops (aka, array_search), doesn't eat up 100% of a cpu core during the cycles.