« first day (1941 days earlier)      last day (2998 days later) » 

12:41 AM
oh god, someone wrote a minecraft server in PHP: github.com/PocketMine/PocketMine-MP
5
it's quite popular too
 
12:54 AM
posted on February 08, 2016 by bwoebi

amphp/amp v0.1.1

posted on February 08, 2016 by bwoebi

amphp/file v0.1.1

 
@Andrea how many users can it handle?
oh, well… it uses pthreads
 
@bwoebi heh
 
Ugh, I've tagged the bad commit … bah.
long live the force push ^^
 
1:56 AM
@Feeds you're drunk
 
 
1 hour later…
4:11 AM
@JoeWatkins would you mind if I squashed all the commits before publishing?
Setup noise etc.
 
 
2 hours later…
5:57 AM
@rtheunissen no no, go ahead
morning
 
@JoeWatkins ignore current build.
Still seeing the "not enough actual parameters for macro 'PARSE_STRING'" warnings on Windows
 
cancel it is it ?
grrr, no LXR ... that's another thing that comes with pecl ... lxr ...
 
cmd shift f
 
brings up adblock ... kubuntu here ?
 
In your editor fool :p
 
5:59 AM
oh riiight ... wanted to find it everywhere though ...
gh search found it
you're not passing any parameters
 
That works too
Lol woops
 
the formal definition declares that it accepts a param ;)
 
deletes the v
I removed 'Counter' entirely :S
And removed the stable sort hack
 
got other solutions ?
 
Redundancy
I find it interesting that none of those warnings show up locally. Is there a way that I can enable pedantic or wall etc?
I'm guessing a configure flag.. will check soon
 
6:06 AM
moin Joe
 
@rtheunissen export or set some CFLAGS
beyond -Wall -Werror support is strange for these flags ...
moin @Anmol
 
@JoeWatkins should I be concerned about "warning C4018: '>=': signed/unsigned mismatch"
Could just cast to suppress them but doesn't seem like a solution..
 
morning
 
@rtheunissen it depends
 
I'll deal with it if it becomes a problem for now
 
6:21 AM
it could induce strangeness, casting makes code explicit, subsequent readers (and machines) know exactly what is expected to happen ... rather than implicit truncation which may be unexpected, and may vary from platform to platform ...
 
It's in places where the hashtable uses uint_32t everywhere but int from userland is zend_long aka uint64_t on 64x
 
I would cast
afk walking dogs
 
7:03 AM
> @krakjoe oh thanks u and your team so much!!! :)
ha ...
I gave my team a doggy biscuit ... my team is now curled up under the desk
@rtheunissen ci is green ...
so ... when it publishing day ?
 
7:18 AM
Good morning
 
@JoeWatkins just finishing up some benchmark screenshots..
 
8:06 AM
cool
school run, back in hour~
 
Wes
morning
 
Morning 11ers
 
morning
 
8:22 AM
morning
 
8:36 AM
morning
 
morning
 
Hello
anyone knows how to install php v5.4?
i have php version 5.5
 
OS? @MuneemHabib
 
i want to instal php version 54
windows
i have windows 8.1
 
Wes
why would one install an older version
also php 5.4 is not supported anymore
 
8:46 AM
If you need a specific older version you maybe can setup a Vagrant box and run it that way?
 
cause i want to configure application locally and this application has old php version
 
@MuneemHabib you can find it here windows.php.net/download/#php-5.4
 
i have download old php version but where should i place these files
 
I have never installed php on windows, can't help here
Your best bet would be virtual machine with linux anyway
 
For the record, anything written to run on 5.4 should work without issues on 5.5. There were virtually no bc-breaks (full details: php.net/manual/en/migration55.incompatible.php )
 
8:57 AM
Hi guys
Check out my question, Really need help :(
1
Q: Validation display name using jQuery remote method

Vintage BeefI've tried to added remote method to check display name if is has already exists. Email validation can check and display messages if email has already exists but Display name validation it does not work. What's wrong with my code? My code register.php <?php require_once 'config.php'; ?> <?php...

 
posted on February 08, 2016 by nlecointre

/* by jaku */

 
moin
 
9:14 AM
@Gordon no php 7 :(
 
@SergeyTelshevsky because not in any distro yet. shouldn't be hard to add to the playbook though. you basically only need to add ondrejis repo and install from there. worth a PR.
interesting: gitbook.com
 
@Gordon yeah, there already is one: github.com/phansible/phansible/pull/264
 
@VintageBeef I am also looking for the answer
 
morning!
 
monin
 
9:28 AM
mornin sir
 
@Andrea meh, only pocket
 
I understand and will obey all rules.
is they read my message? any one online
 
@JoeWatkins should we be doing anything re: windows images at the moment?
Or wait for PECL?
 
wait for pecl
 
9:38 AM
moin
 
How to fetch question1 and its answer?
+----+---------+
| id | related |
+----+---------+
| 1  | NULL    |  // Question1
| 2  | 1       |  // The answer of question1
| 3  | NULL    |  // Question2
| 4  | 3       |  // The answer of question2
| 5  | 3       |  // The answer of question2
+----+---------+
@DaveRandom \o
 
user3867794
@DaveRandom
 
moin @DaveRandom
 
user3867794
lol anyone?
 
user3867794
@DaveRandom @JoeWatkins ?
 
9:39 AM
don't do that ...
 
user3867794
what ?
 
ping random people
 
@Shafizadeh make two separate queries
 
@Tilakraj It's just a static analysis problem I think, try adding /** @var mysqli */ above the property declaration
 
user3867794
okay fine. i won't.Could you please take a look ?
 
9:41 AM
@tereško Yes it could be fine, but why this doesn't work? ...WHERE id = :post_id OR related = :post_id
 
user3867794
@DaveRandom didn't get you
 
@Shafizadeh because you cannot use same "binding point" twice
 
@tereško So the limitation is by PDO? I mean can I do that in mysqli ?
 
@tereško I'd be tempted to do a 1-level self join there, it's harmless where the number of levels is known. (IMO_
@Shafizadeh You can't do named placeholders at all in mysqli, but it doesn't matter, just pass the value in twice
 
9:44 AM
@Shafizadeh the issue is not limited to PDO.
 
And another question, keeping both questions and answers in the same table is a bad design?
@tereško ah ok
 
But @Shafizadeh if you already know the post_id value, why not just WHERE related = :post_id ?
@Shafizadeh I would say so, yes
You should have a questions table and an answers table, and an FK in the answers table to the question
 
@DaveRandom This query just fetches the answers. related column is NULL for the question
 
@Shafizadeh there are some benefits to it (primarily related to linking), but ... yeah, there are more problems then benefits if you do it this way
 
@DaveRandom But stackoverflow has just one table for both of them
@tereško Agree.. there are more problems
 
9:46 AM
@Shafizadeh It probably doesn't at the back end, the data in data explorer doesn't necessarily reflect the structure of the back end database
 
What is the meaning of "back end" exactly?
 
@Shafizadeh keep in mind that SO is like 8 years old
there might be bad architectural choices that they just can't change anymore
 
@tereško Do you mean there is something better than SO ???? I hardly think so
 
@Shafizadeh typically, it's the unseen guts of a larger application, i.e. the part that doesn't power the front end
 
Meaning that data explorer is not allowing you to run queries against the same database that runs the main site, they export data from the database that runs the main site to the data explorer servers, and probably munge it quite a bit in between
 
9:48 AM
there is always something better than X, but it's more often a matter of popularity
 
@Leigh I see, tnx
@DaveRandom yes got it, tnx
 
@tereško speaking of X. how is xcom2?
 
Maybe not, I don't know, but I suspect they have something that generates a unique post id for each post, but store the post types themselves separately
 
@Shafizadeh As a really simple example, imagine you have a cron job that periodically does some maintenance task, that's a back-end process
 
@tereško heh, it is true in the most of times, but sometimes it isn't true, for google, so, and .. ;-)
@Leigh good example
 
9:49 AM
@Gordon I haven't bought it. I am still on "limited budget" for now. But I have a friend who has been binging on it for 4 days straight now
 
@Danack chalk me up as a +1 for dark, but that's only because I use dark themes for all of my desktop stuff, basically anything that is light I have to make full screen to avoid a contrast clash
 
Morning 11
My alarm decided to have a day off - at my expense
 
@tereško I presented my project today in the morning. I got 18 (max is 20) :-)
 
sound good
what were the question from the panel (assuming the presentation was in front of panel of teachers)?
 
what? what's panel?
 
9:56 AM
> a small group of people brought together to discuss, investigate, or decide on a particular matter, especially in the context of business or government.
"we assembled a panel of experts"
or was it just in-front of your class?
.... you said that you presented it ... that implies some sort of audience :P
 
No, it was on the Seminar-Room front 250 people (4 Referee)
 
then let me rephrase it: what were the questions from referees?
 
Morgnis
 
I'm not sure I get you right or not, but the biggest problem that referees told me was my bad database structure
@tereško First question, what languages have you used in this project
when I said "ajax", they give me +1
 
lol (since ajax is not a language)
 
10:00 AM
Where on github.com/php can I find the default configure switches used for release binaries?
 
@tereško :-)
That's because my poor translate
And they gave me -1 because I used exactly the same SO's UI
 
I did warn you about that :P
 
@tereško Oh one thing @tereško .. I said thanks to you in the last minutes of my present .. I introduced you as my second consultor
 
hmm, thank you
 
And I will put your photo + SO account + short biography of you in the "about us" part of my website before launch it
 
Wes
10:05 AM
naming help, is there another way to say "untyped"? (as in, untyped programming language)
 
and your linkdin accound (if you let me)
 
@Wes Is there such a thing as untyped in that context? Perhaps weakly-typed?
 
@Shafizadeh I don't think that all that good idea. Since I actually haven't written any code in that project.
 
Wes
@Leigh untyped = duck typing
 
also, AFAIK, there isnt any "biography" of mine online and there is one picture of me (which I find quite astonishing, since I have been using my real name online for 4+ years already)
 
10:07 AM
@Wes isn't untyped = dynamic typing?
 
In computer programming with object-oriented programming languages, duck typing is a layer of programming language and design rules on top of typing. Typing is concerned with assigning a type to any object. Duck typing is concerned with establishing the suitability of an object for some purpose. With normal typing, suitability is assumed to be determined by an object's type only. In duck typing, an object's suitability is determined by the presence of certain methods and properties (with appropriate meaning), rather than the actual type of the object. The name of the concept refers to the duck...
 
@Wes Not sure I'd say duck typing equates to untyped. The language itself still has types, that you don't care about them is a different issue :p
 
Wes
@SergeyTelshevsky it is?
i'd say untyped is duck typing... but could be wrong
 
@tereško :-) ! Look, I will get them of you, a new photo, a short biography, a contact way (lindkin, email or something like them (if you are ok with that)) ..!
As I counted, 15% of idea of my website are belong you
 
@Wes I think duck typing could be also typed..
 
10:14 AM
!!wiki duck typing
 
In computer programming with object-oriented programming languages, duck typing is a layer of programming language and design rules on top of typing. Typing is concerned with assigning a type to any object. Duck typing is concerned with establishing the suitability of an object for some purpose. With normal typing, suitability is assumed to be determined by an object's type only. In duck typing, an object's suitability is determined by the presence of certain methods and properties (with appropriate meaning), rather than the actual type of the object. The name of the concept refers to the duck...
 
yeah, it can be, so untyped == dynamic typing
 
just wondering what the rules were re special chars and case ... thanks @Jeeves
 
Wes
hm
 
10:16 AM
@NikiC I cannot be bothered to readup on internals … what happened to markmail.org/thread/uvendztpe2rrwiif?
 
looks tasty
 
This is what a true duck typing is
 
Wes
@JoeWatkins lol
 
I have a file :CronParser which syncs data between a website but for some reason it's generating a time out ( it takes probably too long to sync) ... What is the best way of debugging something like that?
 
Just discovered the website of Berkshire Hathaway...
 
10:19 AM
Is there a way running it by CLI or something so it won't generate an timeout issue? Of am I talking nonses now?
 
@Gordon Nothing really
 
> If you have any comments about our WEB page
pretty insistent it's a web page ... pretty sure it isn't ... looks like front page of some boring document ...
@Andrea I knew about that ... uses pthreads ...
 
@NikiC too bad. I like being able to do [ some statement ]
 
@Gordon The good part is that it wasn't shot down, it just didn't go anywhere
 
10:23 AM
is a nicer patch possible ?
it doesn't look that bad to me ...
also I think ZEND_INHERIT_PARENT_SYMTABLE may be useful for other things
 
Is there a special command to run a corn manually with CLI ?
 
(so don't refactor it away, not sure what bits you think are horrible)
 
@bwoebi [10:31:55] critical DomainException: Invalid port number; integer in the range 1..65535. Can we allow 0 to choose a random port?
 
@JoeWatkins (and maybe @NikiC ), revisiting the memleak I found last week, I don't understand why the refcount get's incremented twice on this line: lxr.php.net/xref/PHP_MASTER/ext/curl/interface.c#3039 - breaking on the address of the string, and stepping in gdb hit's that line twice and the refcount goes from 1 to 2, then 2 to 3
 
Hi guys!
 
10:35 AM
Hello @GourabNag
 
@kelunik not sure if that's a good idea…
 
Whats up guys?
 
@Leigh is macro
so zend_string_copy is executed twice because two refs to s
 
oh, the v ? v
is zend_str_copy and not the str
 
10:36 AM
yeah v
 
boom, there's the memleak :D
 
yeah
 
thanks
 
What are you guys talking about?
 
welcome
 
10:43 AM
@kelunik I mean, what would you need a random port for? Is that practical for anything?
 
@bwoebi I use 127.0.0.1:* for IPC
workers get told the port number as they are spawned
 
for IPC, we're doing that.
I'm talking about Host->expose("interface", $port = 0)
 
Yea sorry I wasn't aware of context, just responding to "is that practical to anything" :)
 
I wondered why one would bind a webserver to a random port ;-)
 
when your IPC is a REST API? :D
 
10:49 AM
@Leigh well … lol
 
Hello...
I need some help on UIDAI (Aadhaar Authentication)... Anyone have worked on it?
 
'nin
 
mornings @Jimbo @JoeWatkins
 
Wes
\o
 
11:01 AM
@bwoebi Choosing some random port for testing.
 
@kelunik sounds sensible … feel free to add it, or I'l give it a shot a bit later
 
In particular, I want to use Aerys for all my ACME tests.
How do I test with PHPUnit and 5.5? travis-ci.org/kelunik/acme/jobs/107746890#L357
 
Wes
do you like this ns structure?
vendor\ns\ns\SomeInterface1
vendor\ns\ns\SomeInterface2
vendor\ns\ns\Implementations\SomeClass
getting cross eyed with too many files in the same folder... was thinking to separate interfaces from classes and stuff. other options?
 
^ BS, potential ideas or just generally something someone has said when comparing another DI framework with Auryn
 
@Wes You don't actually call it Implementations right?
 
Wes
11:06 AM
@PeeHaa that or something else. suggest something? :P
 
What I sometimes do is:
 
@kelunik well, you just … don't?
 
vendor\ns\ns\FooInterface1
vendor\ns\ns\FooInterface2
vendor\ns\ns\Foo\SomeFooImplementation
 
Wes
hm. what's Foo for example?
 
@bwoebi Ubuntu 14.04…
 
11:08 AM
@kelunik I mean you don't use PHPUnit 4?
 
Wes
this?
vendor\ns\ns\Manufacturer (interface)
vendor\ns\ns\Manufacturer\Ferrari (class)
vendor\ns\ns\Manufacturer\Mercedes (class)
 
@Wes Yeah that
errrr bad example on my part btw sorry
 
Wes
thinking how it'd look like
not sure if i like it
 
I cannot find a good example in my recent code bases atm, because I became obsessed with small specific packages so I don't have that problem anymore :)
 
@bwoebi I have to for PHP 5.5…
 
Wes
11:12 AM
idk...
vendor\ns\Manufacturers\Manufacturer (interface)
vendor\ns\Manufacturers\Manufacturer\Ferrari (class)
vendor\ns\Manufacturers\Manufacturer\Mercedes (class)
 
nah
 
Could you please not use nonsense namespaces but real code?
 
@kelunik I'm just confused why the initial composer fetch works, and why you then explicitly require phpunit 4?
 
It's hard to tell how stupid it is without real code :)
 
Wes
@PeeHaa that's actually similar to what i have, Products\Product
 
11:13 AM
> vendor\ns\Manufacturers\Manufacturer\
programming shouldn't be a spelling test ...
 
@JoeWatkins I wish …
 
@Wes And what interfaces + implementations does it have?
 
Wes
shouldn't even be acronym solving puzzles
 
Because PHPUnit 4 is not compatible with PHP 7 and PHPUnit 5 is not compatible with PHP 5.5
 
Wes
11:15 AM
@PeeHaa it's hard to explain, but i'm looking for a structure that fits every case
 
If it's hard to explain you are probably doing it wrong
 
Wes
:P
 
:P
lol timing
 
Wes
i don't explain things i know they are unpopular
:B
 
:D
brb gonna get some food yo
 
Wes
11:18 AM
12:20 and basically i did nothing today
 
welcome to my world
 
Wes
:(
 
finding it pretty hard to get enthusiastic about things at the moment :/
 
I can buy a whip if you want @Leigh
 
@Danack You There??
 
11:29 AM
@Wes i'd go with either \fqns\Manufacturer with interface and classes living under that namespace or \fqns\ having the interface and \fqns\Manufacturer having the implementations. yet another alternative borrowed from Java \fqns\Manufacturer having the interface and \fqns\Manufacturer\impl having the concrete implementations. though it like the first one best I think
 
Wes
maybe i should leave it as it is now, because things can get messy
Foo\Bar\impl\Baz

Foo\Bar\SubNS\impl\Bar or
Foo\Bar\impl\SubNS\Bar ?
"belongs to NS" rather than mixing it with "is a"
 
11:47 AM
@JoeWatkins could you please help me debug a segfault? Valgrind on mac is temperamental sometimes..
 
sure
 
git checkout broken
 
how to reproduce ?
 
@rtheunissen what exactly are you getting? (that valgrind is broken I mean? ^^)
 
@JoeWatkins Not sure this is the best place to ask that question
 
11:49 AM
hehe
 
valgrind php -d extension=ds.so ./vendor/bin/phpunit
 
When a daddy Elephant loves a mummy Elephant very much...
 
@Leigh they make an RFC...
 
hah :)
 
Then all the other little elephants argue about it for 2 years, 3 of the elephants leave the circle and finally a little baby elephant pops out, ready to continue the circle.
 
11:51 AM
no errors @rtheunissen
show output from your run
 
It's this...
Infinitely. I have to kill the process.
 
that's odd
 
posted on February 08, 2016 by bwoebi

amphp/redis v0.2.0

posted on February 08, 2016 by bwoebi

amphp/mysql v0.1.0

 
valgrind on OS X is pretty crap anyway
 
s/valgrind on//
 
11:53 AM
what produced the original fault though ?
 
@rtheunissen ah, I know this one … happens occasionally on segfaults ^^
 
Try this
php -a -d extension=ds.so
php> $m = ds::map();
 
I literally have no idea how -a works
 
I must be doing something weird with zend_object somewhere
Just type that line..
And be sure you're on the broken branch, built etc
 
which branch ?
 
11:55 AM
@rtheunissen well, the only issues really are that indef messages and the memory leaks yielding many false positives (but always the same ones) … that's all
 
how to comapare dabase value to the dynamic string in mysql ...string is not exactly equal to db value
 
php -d extension=ds.so -r "ds::map();"
@JoeWatkins "broken"
 
example db value is lagaan and the string i got is the great movie of amair khan is lagaan how to compare these
 
not getting error still
 
Guys could somebody help me figure out how to get the value from a DOMxpath node??
 
11:59 AM
:(
 
no errors from valgrind either ...
 

« first day (1941 days earlier)      last day (2998 days later) »