« first day (2597 days earlier)      last day (2367 days later) » 
01:00 - 18:0018:00 - 00:00

1:33 AM
@JoeWatkins I'm getting an error accessing a declared static property in a thread: travis-ci.org/amphp/parallel/jobs/306991535#L701. Code here: github.com/amphp/parallel/blob/master/lib/Thread/Internal/…
/cc @tpunt Looks like you've been doing a lot of pthreads work.
 
2:01 AM
posted on November 25, 2017 by trowski

Windows support added! Only some minor API breaks were necessary: - `Process::getPid()` now returns a promise for the PID. - `Process::getStdIn()` returns an instance of `ProcessInputStream` instead of `ResourceInputStream`, however the same A...

 
2:22 AM
Sorry to jump in on this but is anyone up on WooCommerce? I have created a Custom Field and able to enter text into the field but once entered, I am unable to remove the data. Anyone experienced anything like this before?
 
3:02 AM
mornings o/
 
Wes
\o
 
how's it going!
 
Wes
hot water boiler doesn't work again. threw at it something like 3000€ in the past two years and it still doesn't work
how hard can it be
 
lol, you should be better off buying a new one then
 
Wes
it's new
bought it few months ago
actually, exactly one year ago
 
3:15 AM
well, doesn't it have something like a seller warranty or something?
 
Wes
it does
i'm annoyed that it always breaks
 
oh :P
It's like 17 C here, and I'm already freezing :B
 
Wes
freezing at the tropics? :B
actually, at the equator
... almost
didn't know could be that cold there
 
my location is more like just above the 22.5 lat
thus the sub-tropical temperatures
 
Wes
ah
i hate being cold
 
3:21 AM
just put on multiple layers of woolens :B
 
3:34 AM
...I think I found a bug in Swift.
> In a collection, the subsequence should also conform to Collection.
Collection has a method index(where: (Collection.Element) -> Bool) but when using generic code on a Collection.SubSequence the method is missing.
 
Wes
strange
btw, isn't swift documentation the worst ever?
i think it maybe even worse than mysql's
 
3:57 AM
Morning room
 
let's say i've got a form which, eventually, leads to the alteration of an SQL database—and I'd like to route it through the index.php file. does it make sense to send the page it needs to go to (say, add_entry.php) via GET, but send the variables i need to alter via POST (i.e. - names)?
 
Wes
wtf egypt. massive attack
 
4:20 AM
Hi I come for talkative badge
haha
 
Wes
:P
and you will stay here forever, because we are so so nice
 
@Jay is not around...
Nov 20 at 14:15, by Wes
4 hours ago, by Fabor
Nov 15 at 14:15, by Wes
yesterday, by Wes
2 days ago, by SaitamaSama
21 hours ago, by Wes
Oct 25 at 14:18, by Wes
Oct 20 at 9:16, by Animesh Sahu
Bye all this isn't a php chat
 
Wes
lol
 
Wes
4:48 AM
so i fixed the water boiler
 
\o/
 
Wes
unless it explodes obvs
 
well, that would eventually provide you with a perennial heat
 
Wes
lol
brb
 
 
1 hour later…
6:07 AM
posted on November 25, 2017

New Cyanide and Happiness Comic

6
 
LOL
 
6:28 AM
Hi, guys facing a problem ..here is the link
0
Q: Query results are diffrent in Codeigntier as compare to Mysql phpmyadmin

Rahul BajajToday i am facing a problem of creating dynamic query based on iterations in loop..below is my code. MY MODEL public function get_chapters_from_subject(){ if(COUNT($_REQUEST['subjects']) > 1){ $this->db->where_in('question_modules', $_REQUEST['subjects']); $y = $this->db->get($this->db->...

 
7:24 AM
@RahulBajaj debug your code.
May be you are doing something wrong.
 
Does "due date" mean either "date of start of task" or "date of finish of task" ?
 
Have a PHP file that seems to randomly pull null or 0 for Last login timestamp
even though the information was recently pulled and used succesfully
 
Wes
8:08 AM
morn
 
9:12 AM
Alright security tips.. GO!
Lay em on us
headers, prepared statements
 
I am hoping someone here can help me...
I am struggling with an angular 1 project running with grunt
I got the project with no explanation of how to set it up or run it. I installed grunt but I now have no idea what to do next
 
@Chris that has absolutely nothing to do with php
 
I know, but the javascript channel is dead... and I need help
 
Are "channel" and "room" the same in English?
 
no
 
9:24 AM
You know what I mean
 
no
 
@Chris he isn't being pedantic, English isn't his first language.
 
@Chris yes I know, but I was trying to improve my English skills
 
@Shafizadeh Channel works in this context because it means "a means of communication or expression"
 
Ah okey, yeah english isn't my first language either
 
9:25 AM
@Fabor I see, thx
 
afternoons o/
 
I am guessing no-one here has experience in angularJS with grunt? sigh... I don't know what I am going to do
 
Anonymous
!!wotd
 
torporific causing sluggish inactivity or inertia.
 
9:46 AM
reason: instead of reading the manual, OP copies the code from it and acts surprised, when it does not work (because in the manual that code is specifically used to illustrate type error)
 
@Chris try unix. I assume your trying to run it on a unix box
@Chris Also i feel like PHP and JS are Strong rivals
which is why everyone is harsh
 
@MoonEater916 I am just trying to run it on this pc to see what it looks like
Also I do not understand how php and js are rivals :D
 
Are they? I didn't notice ..
 
ya theres alot of articles arguing js vs php
 
Oh I must have missed it. I do both
 
9:57 AM
team php ftw!
 
php is a server side language and js is a client side language only recently dabbing in server side so I don't really understand... but ok :D
 
you can technically do it all JS
with nodes n such
 
Yeah I am sure, but I am still stuck with a project I can't setup using angular and grunt so really I am getting no-where
 
well now is a good time to switch out of js and use php
:P
 
10:11 AM
well Times seems very vuage
all they said " we do not comment on the selection process"
and that trump is incorrect
 
Poor Bill Gates, no longer the richest man in the world.
A measly 90 billion
 
@tereško well what's your opinion about it?
 
option about what?
 
about wix
 
WIX?
what wix?
 
10:31 AM
It's a site creator
 
@Shafizadeh it's not the video, it's the pre-video advertisment
:D
 
@tereško oh .. I don't know what I redirected to a video about wix when I clicked on the youtub link you provided .. Odd
 
there should have been "skip ads" button
 
Did you actually know Silex well at all @tereško?
 
I have just poked at it, when leaning about various frameworks
I have never used it in production
 
10:38 AM
Is hydration the right term for taking an array from the database and building an object from it?
 
you would probably have to ask @Ocramius that to get a more authoritative answer, but as I see it - it's not the "creation" part, but the "putting data in" bit
 
Anonymous
@Fabor I'm sure any developer know what WIX is.
 
@tereško And that responsibility is for the mapper?
 
Anonymous
It was just tereško being @tereško
 
I've seen it done inside the Entity too.
I gotta head out but just ping me if you respond @tereško. o/
 
10:44 AM
@samayo I actually did not make the connection at first , since I linked to a music video
@Fabor well, yes. If you are using Doctrine, then those mappers are provided to you (based on some configuration).
 
Holy crap are we talking about Wix.com in this channel
I feel like a instant ban should be given out
@Shafizadeh
 
10:59 AM
:-)
 
when running ssh commands from php, are all those requests instantiated?
 
@Trowski Inheriting classes here should work for now. It looks like commit pthreads@8b10643 introduced this change, but I don't have the time at the moment to dig deeper into this.
 
sorry guys this is really random but will going to good uni for comp sci increase my chance of getting employed ?
just didnt know where to ask
 
what country?
 
im thinking of going to us for uni
im not from us so as an international student
 
11:11 AM
then it probably increases your chances, yes
 
hi, how to share URL here ?
 
alright cool thanks @MarcelBurkhard , have a good one
 
I have a problem and that is not solve yet from 9 Nov 2017
0
Q: Excel Upload on Codeigniter and Validate the Value in Different Row

ZincI need some help with CodeIgniter 3 on File Uploading Class for Excel File (.xls and .xlsx). I have a reports data from other website and must be inserted on my website. The data might be like this. I must get the data be like this, so I can insert that to my database. The data must be li...

I'm really confused with that problem
 
@Zinc I think you should add what you already tried to avoid further downvotes
 
Wes
@JayIsTooCommon -13
 
11:36 AM
morgen
 
ohayou gozaimasu o/
 
o/
 
hmm was thinking about switching linux distros... any suggestions?
currently using Zorin, but the UI is too padded
like the context menus are ~500px wide
 
11:53 AM
We use around 3000 devices using centos
60k using sues
 
Anonymous
yeah, centos is nice
 
they say there are some red hats out there... but ive never seen them
 
@MoonEater916 For desktops?
 
The sues is for desktops, the Centos is for server nodes
 
What is sues?
 
11:57 AM
i am sorry i have been mispelling
 
open suse? :P
 
suse linux
 
oh suse
How is suse in updating their official repos?
 
No idea
 
I doubt it can be worse than centos though :P
 
11:59 AM
I dont manage that aspects
 
if you want centos with more recent repos fedora might be an idea
(for desktop)
 
I only fix services and such
updates is the dev department
i am positive they hate it tho
I hate them when they break the fking things
with a stupid update
on a friday
WHO UPDATES ON A FRIDAY!?
 
I would...
 
if necessary ;-)
 
they you dont have to release a fix patch untill monday morning.
 
12:02 PM
@SaitamaSama I think your couple machines is not a fair comparison to having to maintain 1000+ machines :P
 
Fk the users they are pawns anyways
 
@PeeHaa :P
 
well who runs a linux box for fun?
thats like enjoying torture...
 
linux is so much better than windows tho...
 
12:04 PM
@SaitamaSama quanitfy your statements... who is linux better for
not my mother
 
... developers
 
i would get constant calling
Exactly
 
but managing software is easy even for a non-dev in linux
 
that is not true
 
well, Ubunutu is quite beginner friendly, for example, and Mint as well
 
12:06 PM
sure i guess
I mean i code php and such in linux enviroments
but for my use, i use a windows
 
Linux desktops are all pain
 
sometimes windows is too easy - download .exe, install, trojan activated
 
@MarcelBurkhard You cannot do that without several messages asking you to confirm
 
we use suse but we kill off the gui and throw a proprietary GUI on it.
 
had to reformat grandpas pc and now he has no admin rights anymore and can call me when he needs something :P
 
12:08 PM
i was thinking of doing that with mom
 
@PeeHaa those messages are ignored though
 
cause the last thing i want to hear at thanksgiving is "oh while you are here can you look at my computer?"
 
Why?
 
no
the answer is no
 
Nobody ignores them over here (anybody in my environment)
 
12:09 PM
I cannot be bothered
 
I don't ignore them either but my grandpa does, he probably doesn't get it or something @PeeHaa
@MoonEater916 yeah I know the feeling - better with teamviewer and sheduled :P
 
@MoonEater916 Yeahnope
 
I am amazed even to this day the miraculous things mom can fk up and install.
she somehow has a new browser i have never heard of feeding her advertisements
@MarcelBurkhard hell no
dont make it easy
Anywasy work is over
im going home
 
12:18 PM
Can any one suggest me private chat system like one to one db design
 
12:56 PM
You want to make a private chat system, and you're stuck at the database design? I'd recommend using an existing system
 
1:20 PM
@tereško Using Doctrine but only the DBAL layer, not the ORM.
 
 
1 hour later…
2:21 PM
Evenings
 
A form action doesn't necessarily need to route through the index.php file, yeah?
 
cool, ty. :v
 
:P
 
Wes
2:36 PM
why am i still getting black friday ads
 
I guess the sales are still ongoing?
 
@Fabor well, in that case the answer is "yes, in the mappers"
@AmagicalFishy no, but it probably should, for the sake of consistency
because that was you have a single point of access, where you can check "access rights"
 
Ah, so that mean that all form actions should just be "index.php?page=[whatever]" ? (then the index page just routes to the appropriate .php file)
 
and a single point of rendering error states
@AmagicalFishy yes
 
alright, cool
 
2:42 PM
@Sean and @Danack are you guyz there? Thanks for the help and really appreciate your time and effort. Thanks very much again. I did what you guyz suggested me to do and worked perfectly.
 
@AmagicalFishy the point is that http://foo.bar/index.php?page=[whatever] can in next iteration be turned into http://foo.bar/whatever
also, @AmagicalFishy, even at this stage http://foo.bar/index.php?page=[whatever] can be written as http://foo.bar/?page=[whatever]
and it will still work just the same
the webserver will will auto-add the index.php file, since it is the default "index file"
 
ah, right—since the index page should be the default
yeah
ty again :v
 
@tpunt Inheriting classes causes havoc because I need to re-register the composer autoloader, which I seem to be unable to do without then re-declaring another class when the autoloader includes autoload_static.php from the composer vendor directory.
 
user7225794
Hi all!
 
3:08 PM
@tpunt I fixed the issue by simply locating the composer autoloader file in the running thread. That's probably how it should have been done in the first place.
Though of course there's still some issue in pthreads, as at least the property should be declared even if it's null in that situation. Being declared in a class inheriting from Thread I would expect the value to be available in the thread.
 
what's the difference between navigating to page.php page directly, and using "require page.php"? i thought the effect of the latter would pretty much be the same as the former
 
In the first you are navigating to the page... In the second you are requiring the page (it is a dependency) to continue.
 
the point is you can leave only the changing part in the page.php and render all the repeating parts in a shared location
@IROEGBU the context is "single point of entry"
 
Oh! Okay
 
yeah. i meant moreso—is there any technical difference. (just troubleshooting some weird styling issue i'm getting when using require from the index.php; and if there isn't a difference, then i know the problem isn't with how i'm requiring, it's with something in the navigation.php code)
like, does the server render anything differently or are there any directory-nuances or anything like this
 
3:22 PM
the page.php file (if you use include or require) will also have access to the variable scope of it's parent file
... buuuuut, that's really easy to abuse
 
(function () { require "page.php"; })(); +1 to scope protection.
 
ah! i think i figured it out—any "img src=[whatever]" in the html of the required document has to be changed so it's relative to the index.php file. (i... am not sure why—this doesn't seem to happen with any of the other requires/includes, but it fixed my problem!)
 
3:37 PM
the images/css/js should always have absolute paths
it helps with browser's caching mechanics
 
that's definitely the problem then. should i reference the paths in php so i can use the DIR ?
_DIR_
 
no
 
alright
 
what PHP sees as absolute path and what browsers sees as absolute path are two different things
yes
 
ah. absolute paths on php consider the whole server-directory, while absolute paths on browsers is absolute relative to just the website?
 
3:40 PM
yes
 
4:08 PM
Hi
Sorry first of all , I know this may not be the right group to ask this question ,but how can I change table name in mariadb?
I used RENAME TABLE 'aaa' TO 'bb';
but its not working ..
 
Wes
Time: 15.22 seconds, Memory: 6.00MB

OK (1 test, 6 assertions)
i have no idea why phpunit + xdebug has become so slow
 
what's the error you're getting @Exception ? (just the "problem with syntax near etc. etc.?)
 
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''aaa' TO 'bbb'' at line 1
 
@Wes wat
Sure you are doing something weird?
Aren't
 
Wes
could be when i updated php. i didn't notice when it happened exactly
 
4:13 PM
Does phpdbg work normally?
 
Wes
or actually, i should probably try a more recent commit of xdebug
 
try surrounding your table names with backticks
like
RENAME aaa TO bbb
 
@AmagicalFishy got the answer it doesn't require single quotes '
 
yes
 
Wes
4:13 PM
phpdbg is ok, lemme try
 
oh nice
 
thanks for ur time.
 
Wes
but xdebug also... it actually runs fast, it just takes a lot of time to start
 
Windows?
It does that for me on cold starts I think
Not sure
 
oh man things are already looking cleaner
 
Wes
4:34 PM
yes windows.
 
You are c9mplaining about xdbug 15 seconds?
Took you 15 fucking minutes to check what is you are on
:-)
 
Wes
@PeeHaa i was watching grand tour videos :B
 
:p
Is it decent yet?
 
Wes
not started yet
in 13 days
 
I totally stopped after ep 3 of first season
Maybe even 2
Not sure anymore
 
Wes
4:46 PM
it wasn't great
too staged
but the latest top gear seasons were exactly as bad
too many staged gags
 
Hello! I am having a php file that i am including it in another one, to use its functions. But i need to do something strange with it. I need to have the ability to have dynamic function names. If a user with id "5" includes the php, i need him to be able to call a function like this: echo FunctionName_5('text');
 
Wes
@PeeHaa those were the days youtu.be/YtTOQSRMRcM?t=170
 
For a user with ID "3", the same function would be called like: FunctionName_3();
is such thing even possible?
 
"I need to have the ability to have dynamic function names." - no you don't.
It's possible, but I really doubt you want that. What are you actually trying to achieve with this?
 
What do you mean, that i don't need to, or that i don't have the ability? :P
 
4:51 PM
aka
!!xy
 
1190
Q: What is the XY problem?

GnomeWhat is the XY problem? When asking questions, how do I recognize when I'm falling into it? How do I avoid it? Return to FAQ index

 
I am just trying to have dynamic function names, because it seems i can't do it... i wanna learn something new and trying to do this for a week or sth..
 
Wes
omg i love that episode
 
@CDoc tell me why you want to do that first, so I can suggest a better way - before I'll tell you how to do the dynamic function dispatch.
 
I am using a TCP socket server (PHP) that includes that final file with the functions i need, but i think i will have problems with it. When two or more users ask for the same functions, the variables stored temporarily before return, would be ... sort of ... "mixed" with the last user's return data.
So i need each user to request his own... "dynamic" function :/
to keep it from messing vars up..
 
4:56 PM
> the variables stored temporarily before return
So the problem is you want to store variables per user?
 
yes...
 
and you have something like:
function foo() {
    static $data:
    // socket processing goes here
}
 
i have something like:
} elseif ($req->command == 'settings') {
$reqUser = checkSession((string)$egt_session);
if ($reqUser === 'NOTFOUND') {
socket_close($socket);

$retSettings = egt_settings($egt_session, $messageId);
if ($retSettings === 'NOTFOUND') { //An i apantisi tou mathimatikou einai NOTFOUND
socket_close($socket);
}
send_Single($socket, $retSettings . "\0");
where $retSettings, is the return of the egt_settings() (which is in the php i am including)
(ignore the double session check, my mistake)
i think i have to assign variables to users in some way as you said, but not in the messages handler. i was thinking that i have to work in the functions file. don't know...
 
actually, I'm too tired to figure out your code. I'm sure you should just be storing the data per user, rather than trying to do dynamic dispatch
but you can do that like:
$userId = 3;
$functionName = 'FunctionName_'.$userId;


// and then one of

$functionName();
call_user_func_array($functionName, [/* some parameters */])
 
Did i mention how much i love you?
 
Wes
5:11 PM
you probably shouldn't do that though
it is a very strange thing to do
 
with that glorious beard, I wouldn't be sure if I would be able to restraint myself, falling for him
 
5:54 PM
@CDoc not enough no
 
night all o/
 
@Wes hahahahah yes
@Wes ugh. Rite. Reason I stopped
 
01:00 - 18:0018:00 - 00:00

« first day (2597 days earlier)      last day (2367 days later) »