« first day (2140 days earlier)      last day (2802 days later) » 

11:00 AM
@rdlowrey Looks good. I'm avid to have a first look and discuss APIs with you :o)
 
btw a threaded approach is unnecessary and you are probably going to have a bad time
 
@DaveRandom ah, ah, ah... I see... so I have to keep the socket alive?
 
@Saitama Yes, it's a websocket, that's sort of the whole point :-P
 
:P :D got it
 
And the threaded approach is going to end up with a thread-per-client, and you are definitely going to have a bad time
 
11:01 AM
1 thread per request?
 
@rdlowrey maybe, but that should not be the default API then. I'm fine with an extra method for pushing all frames, but for the 99% case, not needed.
 
Yeah, that's pretty bad :P
 
@DaveRandom could you please explain.. ?
:P
 
@Saitama How many threads do you think you could spawn?
 
Threading is for background tasks that need a lot of heavy CPU work, you can deal with all the I/O asynchronously in a single thread
 
11:03 AM
1 or 2 or 4 per core ?
 
also this is the entire point of amphp but I guess you know that and this is a learning exercise?
 
@Saitama How do you handle 100 simultaneous requests?
 
@DaveRandom yes it is
 
get 25 cores? :P
 
@MadaraUchiha exactly =P
 
11:03 AM
fueren lo, bis gläich wrong window.
 
@Saitama OK well start with non-blocking I/O because it's way simpler
 
@bwoebi Bless you
 
hm...
 
It doesn't look like it at first because multi-threaded code looks more linear on the face of it, but that's precisely why it's harder - it looks linear but it isn't
 
true dat...
 
11:06 AM
Plus thread creation is decidely not free. Non-blocking I/O has overhead but it's a lot lower cost
@Saitama start by writing an event loop based on stream_select()
once you understand that you've broken the back of it
then you can start playing around with stuff like libev/libuv
 
that seems like a good start...
 
hint: if you cast a resource to (int), it gives you a unique identifier for that resource that you can use as an array key ;-)
 
Yeah, got to know that from kelunik's answer in my question
 
Also I recommend starting with the promise pattern, if you start with CPS callbacks then it breaks your head a bit and makes promises harder to understand (in my experience, anyway)
Also read this, but probably wait until you've implemented a basic event loop first
 
@DaveRandom it's not quite as bad in php as it is elsewhere - joe made a good call by keeping to php's "share nothing" ideal
 
11:16 AM
Will there ever be a class called "Pinkie" that extends a Promise class?
5
 
yeh at least in PHP there's no worrying about locking at the method/property level
 
@Fabor Sounds like an awesome name for a Promise library.
 
@tereško nice logo, don't you think: tezaurs.lv
like, we won't steal SE or SO logo's, we'll steal both
 
@SergeyTelshevsky ask them. They have a twitter account
 
it shouldn't be hard refactoring the current code... but let's create another branch first \o/
 
11:20 AM
:)
 
0
Q: php MQTT subscribe not work

HkachhiaI have installed MQTT broker on my windows machine from https://mosquitto.org/download/. I am using https://github.com/bluerhinos/phpMQTT/tree/master/examples for publish and subscribe. Publish works as expected but subscribe did not work. I did not understand why this is not work. MQTT broke...

 
11:36 AM
@MadaraUchiha the fuck is a "ponyfill"
wait, don't answer that
 
lol
 
Anonymous
@Fabor out of interest, are you using a ws library for your project or going at it alone?
 
@JayIsTooCommon Undecided, assuming you mean from the client side. Otherwise Aerys
fwrite(): send of 41 bytes failed with errno=111 <-- DefaultResolver.php in amphp/dns. Likely causes?
 
the nameserver doesn't like you
 
I knew I should've offered to cuddle afterwards.
Seems using googles DNS server resolv(es) the issue. Docker though.
 
12:08 PM
My new question: http://stackoverflow.com/questions/39144888/is-there-any-mini-web-server-software-for-win32. Please read it carefully!

Please give me an answer, if you can.
 
@YeuSeChia it's an off-topic question...
 
no, don't ask that there either
 
ok
:P
 
reads it dangerously
 
@CBroe "Fuzzy" is a kind word for it, the entire date/time extension is black magic to me. I'm sure there's some rationale for it but you'd have to ask the author. — Paul Crovella 47 mins ago
@PaulCrovella protip: buy him (Derick, "the author") whiskey first
 
12:17 PM
I ain't askin'. I'm cool with it remaining black magic for now.
though oddly enough I still want to know wtf is up with mbstring
 
it's probably a thing like this: stackoverflow.com/questions/8318911/…
 
negative
 
Ugh, just found a repo with a script called "deploy.sh" which is just this:
#!/usr/bin/env bash

sudo git reset --hard HEAD~1
sudo git pull
 
could be worse
 
Ran it thinking "oh right, that just does stuff that will be easy to undo", cue all hell breaking loose because the actual deploy script is hidden in a git hook
 
12:25 PM
oh you ran it
 
Yeh I did because it seemed like I could just do 2 things I was going to do anyway with less typing
 
Wait, you have a deploy on commit?
 
Deploy on pull
Also I am now busy undoing all the shit that the git hook did and moving the things that actually make sense into deploy.sh
 
ps aux
dang it
 
@Fabor I'm more of a ps axf kind of guy
 
12:32 PM
that is a lot nicer ty
 
oh that is way nicer
 
So, turns out #11 won't execute your shell commands but does function as a decent "did you mean..." tool
 
@FlorianMargaine
 
!!man ps
 
12:38 PM
[ ps -- process status ] ps [ -aCcdefHhjlmrSTuvwXxZ ] [ -O fmt | -o fmt ] [ -G gid [, gid... ]] [ -J jid [, jid... ]] [ -M core ] [ -N system ] [ -p pid [, pid... ]] [ -t tty [, tty... ]] [ -U user [, user... ]] ps [ -L ]
 
Co-incidentally, "aCcdefHhjlmrSTuvwXxZ" is my middle name
2
(it's pronounced "Bernard")
 
Ekn
heh
mornin
 
oh.
ps efww is nice.
or ps feww
 
damnit no ps fuck U :(
k isn't a thing
 
Mornkn
 
12:42 PM
mrongfg
 
mernin'
 
@rtheunissen Unlikely to see cache difference for hot use on a single structure
This is likely more relevant if, say, you have a couple thousand maps spread over the application and you do many operations on different maps (rather than on a single one)
 
@DaveRandom Chris Bernard Wright?
 
@kelunik Nope, in bavaria right now
 
@DaveRandom Are you sure that's not what Peehaa's mom calls you when she's drunk?
 
12:51 PM
Rt. Hon. Sir Christopher Pascal Eustace Bernard Cornelius Peregrine Wright III KBE is my full title
 
The Right Honourable (The Rt Hon. or Rt Hon.) is an honorific style traditionally applied to certain persons and to certain collective bodies in the United Kingdom, Canada, Australia, New Zealand, some other Commonwealth realms, the Anglophone Caribbean, Mauritius and occasionally elsewhere. "Right" in this context is an adverb meaning "to a great extent or degree". == Collective entities == "The Right Honourable" is added as a prefix to the name of various collective entities such as: The Right Honourable the Lords Spiritual and Temporal (of the United Kingdom, etc.) in Parliament Assembled (the...
 
ah, "Right"
ok
 
Actually I have no idea what the really means and don't care enough to read that article
 
Does anyone know why browsers grey out certain subdomains, yet leave others just black like the rest of it?
 
12:54 PM
> The Right Honourable the Lords Spiritual and Temporal in Parliament Assembled
 
Grand Poobah is a term derived from the name of the haughty character Pooh-Bah in Gilbert and Sullivan's The Mikado (1885). In this comic opera, Pooh-Bah holds numerous exalted offices, including "First Lord of the Treasury, Lord Chief Justice, Commander-in-Chief, Lord High Admiral ... Archbishop ... Lord Mayor" and "Lord High Everything Else". The name has come to be used as a mocking title for someone self-important or locally high-ranking and who either exhibits an inflated self-regard or who has limited authority while taking impressive titles. == In popular culture == The term "Grand Poobah...
 
I'll just keep it at chris
 
@jhmckimm more context please, e.g. screenshot
 
eeerh, anyone else having issues with the "X new Questions click to show" notification bar not showing up?
 
> Lords [...] Temporal
They are... time lords?
 
12:55 PM
@DaveRandom This site, for example. In chat.stackoverflow.com, "chat" is slightly greyed out by opera, whereas in apps.facebook.com, "apps" is just black.
 
@DaveRandom Looks like it
people are using opera?
s/people/somebody
s/are/is
 
@PeeHaa I am using Vivaldi as my secondary
 
@tereško Have been thinking about using it too, but didn't dare to do it yet
 
Huh, it's just Opera it seems. Thought Chrome did it as well.
 
@tereško Is it already feature complete enough?
Without bloat
 
12:58 PM
@jhmckimm apps is gray there too in the old-ass version of opera I just opened it with
 
@jhmckimm oh Opera. Dunno. They are both CNAME records which was the first thing I thought, no idea really. Does HTTPS make any difference?
 
probably
 
https would be my guess
 
@PeeHaa yes, except there is no external bookmark sync (it even has the old tab-stacking option re-implemented and mouse gestures)
 
Maybe it's for whether a cert was issued to the specific subdomain or a wildcard?
 
12:59 PM
Not because I know, but because that was my first guess :P
 
https or a "trusted whitelist" in opera
 
brb beer
 
Grab me one. ;)
 
oh wait, this old-ass version of opera is actually the latest. nm.
 
@PaulCrovella LOL
 
1:03 PM
Haha
 
@jhmckimm Sure I'll drink the first one on you :P
 
@PeeHaa Heh, thanks.
 
Actually @jhmckimm does https make any difference? i.e. if you come here without SSL, is it still greyed out?
 
This site doesn't have SSL for me. :o
 
Oh right well you can HTTPS it, but it still loads a bunch of external stuff without SSL so there's not a lot of point
I think it still uses unencrypted websockets as well, even though they have an encrypted endpoint
Not that you really need encryption here, everything is indexable by google anyway
 
1:15 PM
Google can't read wheat I am looking at
 
I just opened chat a few different times, using both http and https, and it seems random when it decides to gray out the subdomain
actually I'm just an idiot, it's gray unless your cursor is in the url bar
 
Oooh
That would explain a lot... fml
 
lol
 
same with apps.facebook.com, so at least I'm not the only idiot :p
 
@tereško just installed and liking it, what about adblock?
 
1:35 PM
@SergeyTelshevsky Doesn't it just use chrome extensions?
 
Evenin'
 
enin
 
Energy-- Motivation--
 
@PeeHaa if that... then it's extra cool
 
it should, it's just another chromium skin
 
1:43 PM
I've added this chat room as side panel, wonder if the new message / pings work, someone ping me please
 
@SergeyTelshevsky hi
 
nope, the icon is static :(
there was a sound, but no visual indication
 
@SergeyTelshevsky You mean the page title is static?
 
hi
lets say ive got a companies table and a users table. Now a company can have many users, but a user can only have 1 company. So this would be a simple one to many relationship
However i want to create a super user, that can see all of the companies
So should i make it a many to many relation, just to cater for the super admin.
 
@virepo is the superuser an actual user of your system or is that you?
 
1:54 PM
Its me
 
anyone here done much w/SharePoint for designing their websites?
 
basically a user with all permissions etc
 
@DaveRandom oh I forgot, in chrome when there's a sound notification, the tab icon changes to a sound icon (or near, if tab is not pinned), with panels it's not the case
 
@rabbitguy WUT? That's like asking if anybody ever used MediaWiki to build a social media platform.
 
@virepo you could just use your sql client instead of creating a superuser
 
1:55 PM
Gordon, sorry it is for non tech peopel to use
director level
 
@virepo you just said its for you Oo
 
aha, it will be me, but in the future directors say they will need access (even though i know they wont)
 
also the side panel width is global for all panel-pages :(
 
what do you think the best way to go about it is @Gordon?
 
@Oldskool I appreciate the sarcasm, really I do... but since it's not something I've ever used before, I guess I just asking for experiences with it, and how you got past the cost of SharePoint to your business as it's not cheap, but sarcasm works well, too
 
2:05 PM
@rabbitguy I'm just not seeing how one would choose to use SharePoint to design a website. It's really like using the hot engine of your car to grill your burgers... it's possible, but why on earth would you put yourself in such an awkward position? SharePoint is not made for that type of thing.
It's gonna cost you more headaches than it's worth IMHO.
 
@virepo well, give them an estimate how long it will take/cost and if they still want it, implement a super user then
 
when looking over what is shown online, though, it is being sold as though you can create intra and extranet websites w/it, like central mich university's website is supposedly powered by SharePoint. are they feeding me horse sh*t there?
if all it's good for is document sharing then I already built a custom document share application we use here and there is no need for sharepoint. If, on the other hand, sharepoint can be used for creating both intra and extranet websites then there is a cost savings we can get there
 
@rabbitguy Basically, yes. For an intranet, it can be OK since design usually isn't a big priority there. It's just meant to supply people with information, preferably in a structured way. SharePoint is fine for that purpose, but it's not something to create a slick looking website with.
 
what versions have you worked with?
2013?
 
It's been a few years, yes. Because it was rubbish back then it kinda dropped off my radar. So I might be bit biased if there is a new spectacular version out there nowadays.
 
2:17 PM
okay... I appreciate the help :)
 
Well, in my defense this is the PHP room, so I guess not many fans of ASP-based stuff are here ;-)
 
@virepo you dont have to make it a many to many. you just dont have to apply the where clause to the query which limits the results to the user's company.
 
I hate all Microsoft crap, asp, .net, et al, but they are asking me to do research here at work on possibly investing in SharePoint for some stupid reason
 
.net and c# aint that bad from what I know
sharepoint obviously is
 
@Jimbo Aurex is very nice :)
 
2:22 PM
Yeah, C# is pretty acceptable.
not sure for web dev though, but for windows application I've used it on a few occassions.
 
@Linus It's very old, I haven't looked at that in ages, but the goal was to integrate Auryn with Silex. You should use how it integrates them for your own Silex project though... And tbf Symfony now has autowire: true as of version 2.8.
 
@SergeyTelshevsky so, what are your conclusions?
 
@Oldskool Im not always guaranteed that my user will be on a windows platform here in my office, so I am java most the time
 
@Jimbo do you do projects like this collecting components and then using it?
 
@Linus That was the goal, best way of doing things imho
 
2:32 PM
Since when were we able to use arrays as constants?
 
Ekn
5.6?
not sure
 
> As of PHP 5.6 it is possible to define array constant using const keywords
ty
 
Ekn
:-)
 
dudes, dudettes… I'll call it quits for today. cya tmr.
 
Ekn
o/
 
Anonymous
2:37 PM
laters
 
@Gordon later
 
bb
 
@tereško trying to get used to it and see if it's useful to me and worth using over chrome
I really liked opera at one point
 
be warned, that they still dont have OperaLink analog
 
rocker gestures don't work :(
that's the feature of opera I liked the most
 
2:43 PM
@SergeyTelshevsky vivaldi://settings/mouse/
 
I have them enabled
the forward works
but backwards does not, most likely because right click opens context on mousedown, not mouseup
 
I have both back and forward working with no problems
close-tab and new-tab gestures work too
 
I don't use gestures, only rocker ones
 
what is "rocker gesture" ?
 
@Tiffany did some research last night. seems that you and me being developers and having BD is very very common, and the fact that developers tend to be difficult to communicate with for the average Joe just makes the situation even worse, heh
 
2:45 PM
\m/
?
 
holding lmb, press rmb -> forward
holding rmb, press lmb -> backward
how to change this shitty ubuntu behaviour...
2
Q: right click menu on mouse release (windows behavior)

BertyI'm trying to change the behavior of the right click menu in ubuntu 10.10 because I use Windows 7 and Ubuntu. When you right click you need to hold the right click and select something. In Windows the is different right click (release) select something with left click Is there a way to change ...

 
@Fabor hey, thanks, I was able to import the database with the instructions you gave
 
@SergeyTelshevsky works on my machine
also, never knew about them
 
@Fabor and it worked :D
 
Good good
 
2:47 PM
@SergeyTelshevsky install Arch
 
now I just need to figure out why the fuck my other mysql user account doesn't have access to phpmyadmin -_-
 
@tereško since I changed to chrome I was looking for extensions that do that, but there were no properly working ones..
 
> When you right click you need to hold the right click and select something.
eh what
 
this is a complete madness
 
Wes
woot
 
2:49 PM
@SergeyTelshevsky By installing windows
 
in phpstorm, for example, when I right clicked the changed file in VCS to do something, like check it's diff, I've accidentally released the mouse while being over the revert menu item...
 
Damn hipsters
 
Wes
are you guys watching mr roboto's second season?
 
@PeeHaa installing windows makes my machine stupid
s/my/any
 
@SergeyTelshevsky Maybe it was just stupid to begin with
 
2:51 PM
nope :P
 
what wm/de? Unity?
 
Does it happen in other DEs?
It's probably a misconfiguration.
 
don't have any more
 

« first day (2140 days earlier)      last day (2802 days later) »