@Fabor Well you can crash at mine for free if you want, but that does mean a ~45min public transport journey to get from conf to house. If not I suggest trying the conf venue first (is also a hotel, v. convenient when pissed) and then the Britannia - I know someone who works there and may be able to get staff discount rates, just asking him now. Last year there was a utd match on that meant he couldn't get much discount though.
Seriously though, it something else special happening that date in Oct? Hotels are trying to get me to take out a mortgage to pay for a few nights accommodation.
to be more specific, i have an abstract class with 10 variables, each child will be called with only few of those 10. but i want all classes to have the 10 variables initialized on something, without having to initialize them at every constructor
City are at home to Newcastle as well on the Sat so it's going to be pretty brutal. @Fabor I just asked my mate who works for Britannia and his best rate with staff discount is >£200
What we need now is generics... $f = new Foo<callable(callable(T) : callable(V)) : callable(U)>(function (callable(T) $t) : callable(V) { return function(V $v) { return $v->bar; }; });
Could someone explain this: SQL Error near: ''username' = 'Bjorn' WHERE id = '1'' on an Update query getting this as PDOException. But it just makes no sense to me. Can't see anything wrong
@PeeHaa my mate Murphy says that USERNAME will eventually become a reserved word and fuck up all your queries (and so will every other word known by human)
@PeeHaa No I've already found the issue. I was doing this: UPDATE users SET :column = :data WHERE id = :id. Because of the Prepared Statement, it was wrapping quotes around :column and it didn't like that.
I know but for some reason it does. When using the var directly just to test it, it works perfectly fine. When preparing it, it complains about the quotes around it. Probebly indeed because of string
@PeeHaa whitelist the valid tables and you are pretty safe in just interpolating the the table name into the prepare statement itself (or you could use $pdo->quoteIdentifier) but I think whitelisting valid values would be the way to go
How can I round the number using jQuery?
If the number is 3168 I want to print it as 32.
Or if the number is 5233 the result should be 52.
How can I do that?
Should I use the Math.round function?
types are run-time assertions in PHP. And the task of the typechecker should be to re-establish all the times from beginning on and verify all the types of all potential callables etc. which ever are passed in and called. So that the typecheker internally establishes the types and checks matches its internal set of possibilities against what's accepted in code.
how change the login shape when user is logged ? I have two shape: log in (when user is not log in), sign out (when user is logged). now How do I know which one to show?
@Orangepill Maybe a JsonUnserializable would pass, but I quite sure the changes to JsonSerializable wouldn't. By adding something new it breaks all code that implements the interface.
Hi, Please help how to convert a string to associative array For ex:- $str = Status=0,JOB_ins37_14380743615938,ins37_14380743615939,ins37_14380743615940
@Orangepill JsonUnserializable would have to make too many assumptions to be flexible or really useful. User land is a better place to implement such functionality.