« first day (1945 days earlier)      last day (2999 days later) » 

4:00 PM
and upgrading this website coded in codeigniter 2 to a new version of that framework would be good ?
 
you should consult migration guide
major releases are usually incompatible
 
@Andrea dunno. You'd best just removed it completely. [Maybe you still can it's just future scope and doesn't impact scope of the vote in theory]
 
@bwoebi the section mentions TWICE that it is not being voted on
Hmm
 
@Andrea the section does… But it makes someone much less likely to vote in favor if he sees this syntax might become reality once.
 
I think I might add an example using @NikiC's fastroute
 
4:07 PM
@bwoebi i've explained my vote twice already. not gonna do it a third time.
 
@Gordon can you please just link me to it then?
 
hi everybody
I am newbie in cakephp
I need redirect to other domain with post parameter in my action
 
and I also gave my reasoning to Andrea some time before that
 
@zohreh You can't redirect with a POST
 
@zohreh you cannot redirect to a POST
... damn ... too slow
 
4:10 PM
yours was probably worded better to be honest, damn me and my English as first language :P
 
what other solution is there for this?@tereško @Leigh
 
@Gordon hmh… well. :-/ IMO it's one of these tiny additions which make no actual harm but sweeten your developer experience whenever you need them. There are much more useless things like <=> ...
 
@zohreh Come up with a better design for what you want to do
 
@Andrea not really
 
@zohreh it depends on what exactly are you trying to do
currently it feels like a classical XY problem: xyproblem.info
 
4:12 PM
@bwoebi the ctor example does a lot of harm to my eyes
 
I need send some post param to other domain and get json and return it with my action @tereško @Leigh
 
what you need is an HTTP client, something like this: packagist.org/packages/amphp/artax
 
@Gordon I don't find it particularly readable either, hence I'd write it like this: news.php.net/php.internals/91218
(looks like I got one space off ^^)
 
@NikiC oh well
 
Wes
4:14 PM
gravitational wave
 
The use of explicit integer keys can be clearer than regular un-keyed <php>list()</php> in the same situations. Compare:

<code php>
$dispatcher = \FastRoute\simpleDispatcher(function(\FastRoute\RouteCollector $r) {
// ...
});

$result = $dispatcher->dispatch($httpMethod, $uri);
switch ($result[0]) {
case \FastRoute\Dispatcher::FOUND:
list(, $handler, $parts) = $result;

// ...
}
</code>

versus:

<code php>
switch ($result[0]) {
case \FastRoute\Dispatcher::FOUND:
list(1 => $handler, 2 => $parts) = $result;
^ here's an example of a benefit over existing list() syntax for non-string keys
 
@Wes that's the nicest animtion I've seen to date for them…
 
@Andrea The whole thing would be much better if it was something like {x, y} = point
Rather than {'x': x, 'y': y} = point
 
@NikiC [] = $point … please don't use curly braces for these
 
And even that isn't as verbose as the php version with list and =>
 
4:16 PM
@NikiC that works in JS where the keys and the variable names look the same
but god, it wouldn't work in PHP
 
@Andrea And this is why the whole feature doesn't really work in php, I think
 
eh
 
It's verbose to the point where it's not really of much use any more
If you need to split it to one assignment per line, you don't really gain anything
[=> $x, => $y] = $point ^^
 
@tereško should I upgrade the website from previous version of codeigniter after uploading it on local or just leave that old version and add new features
 
@NikiC I'm not sure how much you actually know about the Aerys API … but if you feel knowledgeable enough, you maybe have some feedback for this documentation outline: github.com/amphp/amphp.github.io/issues/5 ?
 
4:19 PM
@bwoebi Ah, I know exactly zero about the Aerys API
 
@NikiC well, then maybe you still could give feedback if this order will be motivating you?
@NikiC I thought you'd know more about it as you seem to look at the commits form time to time ^^
 
@ELOISSIFIAhmed you should upgrade to latest 2.x version as soon as possible (because there will be multiple fixes for security vulnerabilities). Of course, before you do that, you should also have the current site in some version control (git, mercurial or svn), have a working development server and do the update at first on development environment
 
@NikiC ye gods
list("foo", "bar") => $foo ?
hey, if I'd gotten my way three years ago, it could have been [foo: $foo, bar: $bar] = ;)
 
@Andrea well… can't we just outright use extract(array_intersect_keys()) then? :x
 
@bwoebi ew extract
 
4:30 PM
@bwoebi It seems fine
It's good to hear that you'll be working on documentation
Everyone hates writing docs, but it's probably the most important thing for open source projects. Code can be as ugly as it wants, as long as the docs are good ^^
@Andrea I know ^^
 
Well, I added the FastRoute example to the RFC
 
@NikiC php has been a shining example of this
 
incidentally, NikiC, returning an array with a variable number of numerically-indexed elements of types which are not always the same is, uh... suboptimal
 
@PaulCrovella yeah
@Andrea totally :D
 
this is why we need enums :)
enum DispatchResult {
    NotFound,
    MethodNotAllowed(array $allowedMethods),
    Found(array $parts, $handler)
}
I can dream.
 
4:34 PM
@Andrea That would be ideal
 
I know it's probably not what was meant, but it's more amusing if "I can dream." is what you're replying to
enums are such a conundrum. how do you do them syntactically?
namespaces might be the cleanest way really
i.e. DispatchResult\NotFound. Unconventional? Sure, but it works
 
@Andrea :)
 
but then ideally you wouldn't need to instantiate the non-parameterised members
 
@Andrea or the paamayim nekudotayim ;-D
 
the real dilemma is how to match against enums
we don't have full pattern-matching
 
4:43 PM
@Andrea and removed your future scope?
 
@bwoebi no.
@bwoebi I have now underlined the note in future scope which underlines what future scope is
 
@Andrea It's not italic yet!
or red
or blink
 
@NikiC <MARQUEE> is needed
 
<blink>hi</blink>
3
 
also font-size: 72pt;
@ircmaxell ohi
 
4:47 PM
Oi
 
oh yeah, I want to extend list() because it's one of the first steps to pattern-matching. it's the only pattern we have just now
 
Let's get some colored scrollbars all up in this
 
I've wondered about whether list() should support objects, but it's probably best to keep it exclusively for arrays
@Sean crappy QuickTime MIDI rendition of 90's pop song plays
 
@NikiC yeah, there were more pressing issues like tests and perf before … now it's time for docs
 
Midi music friday? SURE WHY NOT!
 
4:51 PM
Good lord, this is nostalgic.
:P
 
@Andrea we need to combine it, red, blinking, big, bold, italic and marquee.
 
ahh, nostalgia...
takes me back to 2012
 
lol
 
4:52 PM
I promise that's not a link to Rebecca Black's Friday music video.
 
@Andrea Can I sign your guestbook too?
 
(incidentally, yes, you can play Windows 95's included MIDI files in that - and they sound pretty good!)
honestly that's the main thing I use it for
 
playing solitaire?
 
no, listening to CANYON.MID :)
if I want to play Solitaire I use Windows NT 4 instead
or play Pinball for that matter
I should get back to writing my web app
first things first, I need to rip out my custom session handling and replace it with session_start
Yasuo's RFCs terrify me but ext/session is more competently implemented than anything I'd muster
 
@bwoebi I solved the yield from by reference issue
 
4:59 PM
@NikiC these italics are … not promising.
 
@Andrea I used to own an AWE64. Made some midis actually really good. RIP good wavesynth
 
@Machavity alas
 
@bwoebi :P
 
Microsoft's built-in synth in DirectMusic and Win2k+ is actually based on Roland's Sound Canvas! it's just not very good-sounding
 
> Forbid yield from in by-reference generators
I see …
^^
 
5:00 PM
@bwoebi hahahahaahahaha
@NikiC is a genius
 
:-D
 
posted on February 12, 2016 by nlecointre

/* by r940 */

 
> GOOD Benchmark Results for PHP Master 2016-02-12
> **lp**_benchmark_robot
> Pa**lp**atine
 
hello
oh yeah on the subject of MIDI:
CANYON.MID PERFORMED LIVE
 
5:07 PM
@Andrea what did that logo_guid() you helped reomve, did??
 
@GourabNag So, are you familiar with phpinfo() ?
 
yeah!?
 
hello
 
@GourabNag right, so it displays the PHP logo and the Zend Engine logo at the top and bottom, and in earlier versions, a link to the credits (now they're embedded)
@GourabNag logo GUIDs were used to accomplish that. On any PHP site, if you added the right GUID to the end of the URL, it'd display the PHP logo instead
@GourabNag phpinfo() then set that GUID as the src= for the <img> tags, and also the href= for the link to the credits
 
5:10 PM
@Andrea Makes me wanna play Chip's Challenge again...
 
LOL :P
 
In SQLite, if there is a column format type DATE, is it wrong if I store the year only YYYY instead of YYYY-MM-DD?
 
did it serve any purpose??
 
@GourabNag beyond displaying the logos? no
I replaced it with data: URIs
 
hehe! Nice!
 
5:12 PM
☝︎ Lester's site still uses <5.5!
Not trying to pick on him by the way, I was just trying to find a living example of logo GUIDs
it doesn't work on the big sites these days
☝︎ One of the PHP.net mirrors
 
I know
@Andrea And what's that weird square? (j/k)
 
?
 
@Andrea bad joke about unicode chars <.< (the ☝︎)
 
The symbol ☞ is a punctuation mark, called an index, manicule (from the Latin root manus for "hand" and manicula for "little hand") or fist. Other names for the symbol include printer's fist, bishop's fist, digit, mutton-fist, hand, hand director, pointer, and pointing hand. == History == The symbol originates in scribal tradition of the medieval and Renaissance period, appearing in the margin of manuscripts to mark corrections or notes. Manicules are first known to appear in the 12th century in handwritten manuscripts in Spain, and became common in the 14th and 15th centuries in Italy with some...
 
oh, well that already existed in unicode v1 …
 
5:19 PM
mhm :)
remember Windows XP?
 
@Andrea because it actually isn't the emoji index ;-D
 
@bwoebi yes :D
 
@Andrea yes. Can we have it back with modern APIs?
 
@bwoebi <ExtremelyMicrosoftVoice>Check out Windows 10 and the Universal Windows Platform! It's not terr
 
I still have a working machine with Win XP 4 meters away from me…
still running on some antic pentium processor :-D
 
5:25 PM
what was I doing... oh right, replacing my session handling with ext/session
 
@Andrea you really want to do that?
 
@bwoebi yes.
 
Wes
@Andrea i'm going crazy because i can't remember a wav/mid that was bundled in win98 or something. classic music, german composer maybe.
 
I could understand the reverse… but…
 
@bwoebi what I have now hasn't been used yet and doesn't make sense for what I'm doing
I may later add a "better" sessions system
 
5:26 PM
okay well
 
@tereško Wow the article author sure thinks that bold and italics are cool
hEY guys_ im using EyECancer
 
Wes
"An audio recording device cannot be found"
 
yeah, well, it's really not about typography
 
@Andrea perhaps relevant to your interests: youtube.com/watch?v=mYZXNVHVfhc
 
5:34 PM
@Leigh oh yes.
that game came out six years before I was born but I am quite fond of it
 
It shaped my childhood
 
That's pretty offensive :/
your comment, not the video
If I didn't know how agitated the mods get about flags, I would have
 
@Leigh ditto
god I wish they'd update the iOS special edition
 
Wes
5:41 PM
 
There is a php function which removes all html codes from string. I think "script" is a part of the name of that function .. anybody knows what is that?
 
though I would ask why you want it, it's probably not what you actually need
@Shafizadeh strip_tags()?
 
htmlspecialchars() i guess?
 
@Andrea yes tnx
@GourabNag no, I meant was strip_tags(), anyway tnx
 
oh i was wrong...
 
Wes
5:43 PM
/me writes rebecca in onlinesequencer.net
 
/me
 
/
 
its nice @Wes
 
5:53 PM
hey @bwoebi you there... sorry if I offended you in any way! I was jokin' LOL
 
@FélixGagnon-Grenier also, moon is made out of cheese
 
oh yeah, definitely. I mean, what else could the holes mean.
 
maybe the moon is not real
it could be just a really big hole in the firmament , just like the "stars"
 
yeah. I mean, I, for one, have never been there, so I could be lied to by all those scientists.
 
There is a php function which replace all "enter" with "<br>", anybody what is the name of that ? ("to" is a part of its name methinks)
 
5:58 PM
lol
it's 2
new line 2 break
 
hi
 
I really like that function naming
 
yes that's the one, tnx ^
 
you really should have googled that one
 
5:59 PM
str_replace("\n", "<br />, "string\n:P");
LOL
 
@GourabNag What should have offended me? o_O
 
sorry i was mentioning @Leigh :P not ya
 
@GourabNag nope. See the difference between windows, osx and unix newlines
 
oh sorry.... @FélixGagnon-Grenier @tereško ...
 
6:01 PM
@tereško I did, When @FélixGagnon-Grenier said "new line 2 break" I googled it and found it (before you link me :-) )
 
Yeah when you search, google returns needed result, but it doesn't for me
;-)
 
hmm ... strange
 
I meant you can choose good keywords for search, But I'm weak in this case
 
6:08 PM
do any of you guys github.com/zetacomponents/Mail ??
guys use*
 
evenin'
 
@GourabNag nope. We mostly use SwiftMailer or PHPMailer
@Ekin o/
 
well gonna use them I guess.. then it would be easy to get help about it...
 
phpmailer is simpler and smaller, but it's also kinda old
 
but i was going through the github repo for it but couldnt find how to get emails from an imap server using it...
and it seems swiftmailer.org too dosent let recieve emails from an imap server using it...
 
6:15 PM
emm .. what?
I thought you were looking for a lib that sends emails
 
i wanted to get a lib by which i could recieve emails..
 
oO
 
like... a mail server?
 
then disregard everything I wrote
 
i actually use SendGrid for sending emails... nut cannot find anything to recieve those nasty mails...
alright @tereško
but*
any suggestion then @tereško...!!!???
 
6:18 PM
hey, is it possible to write a monster spawner just with php?
I'm thinking of rewriting my little java game in php(+ probably js)
just for fun and to try
 
which game @Ekin??
 
it's a local game, a tower defense type
really bad graphics and all but I learned so much with it
 
nice!
 
@Ekin yes, but you will have to create a long-running php script .. probably with websocket
 
@tereško don't you have any suggestions with you LOL :P:P:P:P:P:P:P:P:P:P:P:P
 
6:23 PM
@GourabNag I havent made a webmai client
I have no suggestions to give and just giving you some google results would be really lame
 
LOL np
 
Wes
something @JoeWatkins would probably do
 
@Wes Maybe... but there's always hamsters too
3
 
Wes
ahahahaha
 
LOL
I'm sad that my star won't ever go to that post
 
6:36 PM
@tereško can you elaborate a bit more?
 
@Ekin there isn't really much to elaborate about - if it's a web-based thing your client (js) cant be asking server about monster spawns or vectors. Instead you need the server to send an update as soon as there is a state-change
but then again, I am not a gamedev
 
I see
I have n waves per level, each wave has a min. kill score the player has to achieve. If this score is reached new level starts. So if I have a Spawner class that hold the type of monster each wave will summon, I need to clone x amount of monsters via a method of the Spawner. Is that sane? or makes sense?
I could just do it with js though I want to make it a php practice, anyways..
 
6:57 PM
Yeah, there isn't actually point in having a spawner
in a tower-defense at the start of the level you already know when and which monsters will show up
unless you have some mechanics for interrupting the monster spawning (think: inhibitors in LoL)
 
yeah, I have turrets that player places, but they have a max health and damage
and range too, not unpredictable
 
but can the player do anything to affect the spawning of monsters?
if not, then there is no point in doing a real-time computation for the spawning
 
the player is only able to kill them if they are in range of turrets that can do enough damage for now, but I might try stuff like turret with stun for 1 wave etc
 
but stunning a single monster does not change how soon the next one spawns
 
yeah you're right
on the latest levels player can use a turret that can kill all the wave if all monsters in waves until that level were killed
 
7:06 PM
so only thing the PHP code would actually do would be to prepare a JSON file containing monster's type, speed and sawn time
the rest is done by JS on the frontend
correct?
 
yeah like templates per monster, ^ that's how I imagine it would end up
 
11 mins ago, by tereško
Yeah, there isn't actually point in having a spawner
 
yeah makes sense
sorry I took your 11 friday minutes :p
 
you could try adding some inhibitor-like mechanic
for example giving player "spells" with cooldowns, that stop specific monsters from spawning
 
yeah that's what I really want to
I don't have characters that the player can place in map yet
but that's the aim, having druids, mages etc
with stun/slow etc too
 
7:14 PM
but you would only need a dynamic spawner on the server-side, if you have any system that changes the the rate or composition of enemies
if your "spells" only change how already visible monsters work, then there is no real need for backend code
 
yeah right
 
A game. Now that would be a nice idea for my new to be written project
 
hey guys i'm trying to echo out data from a db. I have a table with info on it then i'm trying to echo more info into a modal, that should be different depending on what table line they click on, i've tried a while loop, any suggestions? :)
ps the while loops just echoes everything into one modal.
 
I could have an advanced level turret/something else placed near the end of path, if that's taken down then next wave enemy can be a stronger one
 
@Ekin your thing is not open source by any chance? :)
 
7:17 PM
@PeeHaa we can make a room-11 project, because at least a half of people who learned programming wanted to make games
 
@PeeHaa it's in java, I made it for global game jam last year but I can upload it somewhere this weekend
^ sounds pretty nice actually :)
 
Well I probably should not commit to contributing =, because I am not sure whether I am even able to follow up sadly. So many projects so little time :(
 
you could make a game of it - give yourself points for commits that close tickets
maybe stupid shit like badges and additional responsibility
 
:)
 
A friend of mine does that. He is all into that gamifcation thing. he keeps telling me ìt does actually work
 
7:23 PM
nope, I usually get fed up with any given game in 72h
I think the only exceptions have been Heroes5, XCom and Mount&Blade
 
says the man with 39k rep
 
lol
I do that because there comes a moment I can convert it to euros or so I am told
 
I feel like xcom is going to take all my spare time this month even though I got beyond earth, this war of mine
 
this war of mine can be kinda rough if you let yourself get into it, though a nice change of pace from other games
 
yeah, that's why I haven't touched it yet
i watched the intro of beyond earth and set up a game, but it seemed it was going to take so much time so I played xcom instead
 
7:31 PM
if anyone feels like having a look here, it's here: pastebin.com/bNg8mwgh thanks.
 
ugh
@AboutLeros is that supposed to be ASCII art?
7
 
@tereško don't look at it if you don't want to :P
 
it's a schooner
 
@PaulCrovella i was going for bread knife :D
 
It's clearly a bad attempt at a hadouken
3
 
7:39 PM
@Machavity haha! :D brilliant!
 
Good night guys!! See y'all tomorrow
 
@GourabNag sleep tight, don't let the bed bug bite :P
 
@Machavity is the code in the picture really happened in real life ??
 
@Andrew Yes. A man put his hands together, yelled really hard and a fireball came out from them. I hear it happens all the time in Japan
 
@Machavity Japan, here I come ;)
 
7:46 PM
@Machavity I heard this one guy tried to do it with his ass and he just shat. . . think he was from England. . .
 
geekyboy.com/archives/1179 and the moral of the story is, don't have a conference in a place that has a swimming pool. /s
 
@Danack Interesting he doesn't mention Mr. Rude Tweets
 
Is there a php conference that is webcasted?
 

« first day (1945 days earlier)      last day (2999 days later) »