« first day (2184 days earlier)      last day (2989 days later) » 
00:00 - 19:0019:00 - 00:00

morning
00:38
'nin Linus
00:50
Did anyone tried implementing AI in jeeves?
!!dad
Why did the coffee file a police report? It got mugged
!!should I sleep or do work
You should sleep.
Thanks @Jeeves
@Linus You're welcome!
 
1 hour later…
01:54
Hi can MySQL cope with 20k queries being run at once? (I have a lot of files I want to store the names of in my sql database)
Probably
Depends on a lot of factors (how complex it is, speed of your server, etc.)
02:15
@NeilDerno how do you plan to run these queries?
like... what will actually execute them?
o/
yer supposed to wave back, fuckers
Wes
Wes
02:30
\o
\o
/o
 
2 hours later…
04:58
moin
hi, i have a question. how to pass data from javascript to php?
3
Q: Login with POST Form, which trigger a javascript validation, and AJAX to a PHP file. Trouble storing data to PHP

JeffreyBrief I am now stuck at a part of AJAX, as I do now know how to extract the data out from the AJAX part and put into the php variables, so that I could access it and use it later. It also does not redirect me to another page ("Map.php"). I tried looking online for the answers, but to no avail. ...

05:25
posted on October 08, 2016

New Cyanide and Happiness Comic

Moorgreen
06:02
from Bulgaria, talk's today :-)
@Jimbo in French I would wish you merde (lliterally means shit. Our way for saying good luck without jinxing people). So yeah. Have the greatest shit!
Raj
Raj
hey guys can any one suggest me how to fetch data[any information] from wiki in php/javascript
user924016
morninigs
Raj
Raj
06:19
Morning
06:38
good morning, some moderator can look at who downvote this question, I feel it doesn't deserve it
2
A: PHP Variables In File Name

N. ChartoireI think I would do so with an associative array. <?php $filename = 'img_type-grayscale_title-waterfall'; $result = Array(); //let's parse the filename with _ as first level separator and - for second level $firstlevel = explode ('_', $filename); foreach ($firstlevel as $secondlevels) { ...

07:13
@PeeHaa It's hosted on GitHub Pages and they don't support TLS for custom domains yet.
@XavierCombelle lol you are kidding right?
@FélixGagnon-Grenier I'm not kidding at all, do you see any problem with this answer ?
I don't know, I didn't read it
@Gordon @bwoebi is here to blame. After a long time without activity, the current MySQL connection is still seen as active by his library and used, but isn't alive anymore and throws an error.
Reloading the page helps.
It's the moderator look at this part I find ridiculous
First, they can't
07:16
@Félix I'm pretty sure they can
No, they can't know who downvoted
@Wes There are use cases, e.g. we use it at work to prioritize the current catalog selection in a search form in the current tab vs. the last one globally used in this session. So if you open a new tab, you get the last recently used setting, but if you jump back to the search form in an already open tab, you get your old settings again.
I checked and apparently you are right @Félix , it is so bad
No
It is perfect that way
Votes are the freedom of the people that cast them
why it is perfect Félix ? you love people gaming the system ?
07:21
If people could try and remove the votes they disagree with, this place would be very much more broken than it is
It, was referring to the votes being anonymous
It is not random people it would be trusted users
but I agree that the system is not totally broken as there are more people of good faith around here
maybe not broken at all
@Joe your README is empty
I, from the bottom of my soul, think not we should somehow be able to reverse votes
Because we disagree with them
07:25
moin all
o/ mornin
Hi guys...
I am facing some issue with writing htaccess rule...
I want to redirect http://testsite.com/demo/public to http://testsite.com/demo. But the problem is, my css files are under public directory. So, the css source path searching files from http://testsite.com/demo.
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !\.css
RewriteCond %{DOCUMENT_ROOT}/public/$1 -f [NC]
RewriteCond %{DOCUMENT_ROOT}/$1\.php -f [NC]
RewriteRule ^(.+?)/?$ /$1.php [L]
I am using this above code in my htaccess... can any one point me which rule i need to add to exclude that 3rd level css directory?
thanks in advanced
user924016
sounds like you put files into your web directory that belongs outside of it
07:46
Hi everyone, any idea why this doesn't appear to be working; class_exists( '\MailchimpAPIV3\Mailchimp_Api_V3' )
@Dan define "not working"...
I'm trying to check if this class has loaded from another file, the code has a namespace, as you can see.
^ Not returning TRUE : )
I've tried the class name without the first slash as well (MailchimpAPIV3\Mailchimp_Api_V3), same result.
so if you try to instantiate that \MailchimpAPIV3\Mailchimp_Api_V3 by $mail = new \MailchimpAPIV3\Mailchimp_Api_V3(); does it work?
TBH I haven't tried that but it should have loaded by this point in the script.
I can try that though, I just thought this might be a syntax issue.
also, class_exists( '\MailchimpAPIV3\Mailchimp_Api_V3' ) it should be probably class_exists( '\\MailchimpAPIV3\\Mailchimp_Api_V3' )
not tested tho, just a guess
07:51
Yes I'll try the double slashes as well.
It looks like I may have two issues, some other piece of code is throwing an error.
Thanks for the tip on the double slashes, I'll give it a go. I'd better fix the other problem first..!
'kay
Anonymous
08:09
@Jimbo something happen at bg?
1. Moodle instance already created with list of categories by client.
2. Create a new loging page.
3. Show a form with the below details.
4. Capture the details of the user - category, title (mr/mrs/miss/dr) first name, last name, email id (This will be login), mobile number, country, state and city. Add any verification code if needed.
5. Register and cancel buttons.
6. Once registered, send an email with login information. username and password.
If username is [email protected], then password is abcd.
hii all,
guys pls help to how can i do the above job quickly ???
is there any easy way to do the above job
user924016
lol, sounds like your work, pay someone or dont take the job if you feel it way out of what you know
@JayIsTooCommon Just a few technical issues at the beginning, lasted about 10 minutes but we've all caught up, I should probably delete the tweet just wanted to let them know not to worry
morning 2
@FélixGagnon-Grenier One of my favourites is "Merde Tete" - (shit head right?)
Anonymous
08:34
@Jimbo ah ok, thoughts there was dramz :3
08:51
Nah, although someone answered a phone call right on the front row of a conference talk. Who does that?
only dick heads @Jimbo
I'm just thinking this guy who is giving the talk is nervous enough, what he needs is encouragement.. smiles, laughter, nods etc... Not that
probably apologize if you see the speaker around
also, smash your phone
@Jimbo well… then he should at least temporarily leave…
@bwoebi Exactly
09:01
@RonniSkansing actually it's zendframework2...
user924016
@CJRamki yea, only the files in the public folder should be in the webroot the rest should be outside
you already guessed, but I didn't read what you said there properly @Jimbo
I thought it was you :D
@JoeWatkins No! I'd never be that big of a wanker
I was the one who gestured to him to stop
@RonniSkansing can't we ignore those css and js directories from htaccess rule?
09:09
With a disapproving shake of the head afterwards. Think it got the point across lol
user924016
@CJRamki sure but why not set up the files correctly
user924016
the public folder should not be a subfolder of the wwwroot
user924016
the content of public should be in / the webroot
user924016
and fixing it by doing rewrites is a bad hack imo
user924016
unless you have no alternative
09:12
ah... but the directory structure provided in skeleton application is different...
that's why i've got the confusion
config, data, module, vendor, public directories are under the webroot..
so simply I have to cut and paste the public directory files to webroot?
user924016
yea you kinda need to move it all ./../ one folder back
user924016
so config data, vendor, module and and etc is outside of the webroot (not directly readable by a web request)
@Jimbo headbutting might work
09:57
@Danack it's... it's still happening. Literally nothing works.
@XavierCombelle mods cannot see who downvoted your question. They would need to escalate it to a Community Manager with db access. If you want that, flag the question. Posting it here is unlikely to make any mods aware of it.
@DaveRandom I can't be arsed to find it, but apparently it happens when you don't finish listening to the end of a song. Playing that song all the way through to the end might clear it from your head.
@CJRamki no, you change the web server's root directory to be the public directory. Clue is in the name ;-)
/or embed it deeper.
@Danack this is what I'm afraid of.
In fairness there are worse things to have, it's not that offensive, but still not really my cup of tea
(I already drank that)
10:11
thanks for this constructive answer @Gordon
10:22
@JoeWatkins why do we need that?
hi there.. need help
i want this page to autoload
http://smoochwithme.com/SmoochWithMe/group_chat.php?group_code=TXpRPQ
but its taking
http://smoochwithme.com/SmoochWithMe/group_chat.php
this only url.
@bwoebi @Wes wants to write an extension
its my php code, i found
$page = $BASE_URL."group_chat.php?group_code=".$group_id;
$sec = "5";
<meta http-equiv="refresh" content="<?php echo $sec?>;URL='<?php echo $page?>'">
@Wes if you're looking for examples, @ThW has a repo that shows how to do lots of things github.com/ThomasWeinert/php-extension-sample . Check the branches for the different things.
10:31
@Wes I would recommend just reading the books instead (or getting the audiobooks)
@PeeHaa no worries
Hi! I'm designing a messaging functionality and conversations between users should be grouped by threads, but there can be not only one thread per pair of users, bet each thread between those users and specific thing. I'm looking for way to generate unique thread id for these conversations.
The first idea was to calculate checksum/hash from all users like 1 (user A) + 2 (users B) + 0 (default thread)
or 1+2+15932 (thing id)
but i guess i will run into collisions very soon
@DenissKozlovs what are you storing these conversations in?
mysql
but as i'm just thinking of the architecture, it isn't decided yet for sure
You ought to read this guys book, a slide version of which is here: slideshare.net/billkarwin/sql-antipatterns-strike-back
> thread between those users and specific thing
what is this supposed to mean?
10:39
short version, you're going to need to store the conversations in a very particular way (the last of the tree structures in those slides), and you may as well use the primary keys that MySQL generates.
@tereško well, users can communicate with each other directly, but they can have separate thread where they talk about something else, like separate room
then have table which stores the "thread roots" - each of those then will have a unique numeric ID
for example user A talks with user B directly, or user A talks with users B in room #39902
then I dont see how this could cause collision
yes, that was on my mind. but how can i search whether this conversation exists? i need to check select thread_id from threads where (uidA = 1 and roomid = 39902) or (uidB = 1 and roomid = 399002) because i dont know who started the thread, who is uidA and who is uidB
@Danack i'll check the book, looks interesting
i thought that, if i could calculate thread id regardless who started it, i can make a simple select for thread_id.
10:51
"i can make a simple select" - no. This is a really hard problem to have it work performantly for more than 100 threads.
well ok, i guess i should just try to make something and see where it gets
@Danack why not? thread id is unique, primary key, a simple select for it should be fast
@DenissKozlovs because you also need to store and retrieve the threading information. The slides on this start at number 49.
It's one of those problems that doesn't look hard until you get into the guts of it.
there's no hierarchy in my threads. each message belongs to one thread id. One specific thing is that for each message there should be 2 records (inbox/outbox) so each user can delete them without affecting other users inbox/outbox
@DaveRandom got it... :D thax... @RonniSkansing
11:09
@DenissKozlovs btw to answer your original question, just either user UUIDV4 or just a very big random number from the random bytes function. In the incredibly unlikely event you get a duplicate number, you would need to reprocess saving the message, but you should be doing that anyway, as sometimes an SQL server will be unavailable momentarily anyway.
@Danack ok, thanks, will look into it
 
1 hour later…
12:13
1 hour later...
2 hours later…
3 hours later...
Wes
Wes
6 hours earlier…
Should I have to care about multithreading in singleton design pattern in php
@Jimbo can you get me one of those php7 elephpants if possible please?
12:18
Because I didn't find threadsafe singleton in php but saw a lot of example in java &c# ,...
@Sandro did you find threads in php?
@kelunik proxy it :)
Mornings all
@Sandro No, you don't need to care about multithreading. In fact, because you don't have to care about multithreading you should never use singletons in PHP
Why @NikiC
12:22
@Sandro and are you aware that pthreads is a PECL extension which you need to install first. it's not part of PHP regularly. PHP doesn't have multithreading.
1332
Q: What is so bad about singletons?

Ewan MakepeaceThe singleton pattern is a fully paid up member of the GoF's patterns book, but it lately seems rather orphaned by the developer world. I still use quite a lot of singletons, especially for factory classes, and while you have to be a bit careful about multithreading issues (like any class actuall...

Php really doesmt have multithreading!!!!
Wes
Wes
@Sandro not by default no, there's an extension for it
12:40
I have a terrible cold. I knew I shouldn't have made out with @JayIsTooCommon
2
@PeeHaa ...
you should consult @tereško
Wes
Wes
13:06
@PeeHaa hey sexy
Evening room
groceries time...
 
1 hour later…
14:14
BOOM, talk went awesome ;)
I got the picture of Dan and Anthony in there
Wes
Wes
lol
congrats tho, websockets talk?
Auryn AFAIK
@Jimbo you earned chuckling or laughter for it? :-)
@bwoebi A little bit. Coupled with my bike crash picture I think it got enough humour to be liked enough by the audience
I feel that in talks you have to put forward a likeable personality before you put forward content - human beings eh
14:42
Is it intentional or is it a bug that I can not issue two yield $socketClient->read(1) operations sequentially in amp and get a result, because the second one will never resolve if the data sent to this socket was sent in one chunk (i.e. I sent two bytes with one socket_send() call, but trying to receive them with two ->read(1) ops)
That is happening because this socket never becomes onReadable again
@Gordon I had to wait 6 months to get one, but I'll ask seeing as you had to get me a t-shirt ;) (Yours took three years though so be patient ;-))
15:10
@nikita2206 yes, bug.
@bwoebi you accept PRs?
it should return a success promise if size <= strlen(buffer)
@nikita2206 sure
yep
Will do then
@nikita2206 note that readLine() has the same issue
Anonymous
15:31
@PeeHaa <3 Worth it
@PeeHaa not worth it. Will be anyway TLS once the docs tool is stable enough.
@bwoebi Could you please fix that MySQL bug?
php made a window ...
it wasn't very good at it, and crashed as soon as I touched anything ... but it made a window ...
libui is really quite messy, I'm sure it's by necessity, but making it nice is not going to be straight forward like I thought ...
15:47
Are you doing phpgui things?
the "hello world" for that should be a window that says "PHP-GTK isn't dead."
@PeeHaa yes
That's kinda cool
Kinda sad PHP still doesn't have bindings for it
16:02
lol
what ?
I don't think you meant to say that out loud ...
:D
array_map(function(User $user) use ($scream) {
  $scream->at($user, "Please leave feedback at:" . joind.in/talk/648b2)
}, $usersInTalk);
Does that look at least syntactically valid?
Yay
Now lads, it's time to get absolutely rat arsed. In a bit!
lata
hey, how the fuck do you test gui programs ?
I didn't think about that ... there is no real way to test any of this :s
Wes
Wes
16:12
hey joe. should i write something to crockford? like "i can't compile this on unix, i tried xyz, and didn't work"
nasm -v ?
@JoeWatkins Doesn't lbui come with some sorts of magic testsuite?
@PeeHaa it comes with tests, but not sure what they do, didn't look, but was thinking about testing the php layer
@Wes if you wrote me earlier and asked for help, I missed it ... I didn't know you couldn't get it to work ...
Wes
Wes
you tried yesterday, no? i have no idea about asm, i can barely compile c
oh you missed a thing, I think github.com/krakjoe/dec64
I only started, you should be able to take it from there I think ...
I had to upgrade nasm
NASM version 2.12.02 compiled on Oct  7 2016
get that
Wes
Wes
16:15
yay :o
i'm on windows tho..................... are we still friends?
nope, fuck off
Wes
Wes
ahaha
lol
use a vm
Wes
Wes
i could do that but eventually i'll need to figure out how to run it on windows... but don't worry i think i can do this
16:19
I'm very bad at windows
Wes
Wes
did you use the .asm from crockford's repo or that from the fork of that guy?
the fork
Wes
Wes
ah, so i should let crockford know that his asm doesn't work on unix?
he knows
Wes
Wes
lemme understand :P how?
16:21
there are different dialects of assembly, with some overlap between compilers ... he targeted the windows compiler
Wes
Wes
what are those UNIX conditionals i see in his file?
untested
you know, writing all that in assembly is batshit crazy
rewriting it in another dialect is similarly crazy ... that's why only one person done the first thing, and a different person done the second ...
Wes
Wes
should i tell the fork guy to PR it? i have the feel the thing doesn't even work :P
what thing ?
it works
Wes
Wes
"untested"
16:27
I just meant the conditionals were untested ... you don't need to be on unix to test them, you can -dunix=1 and pretend like you are in unix, that may have been done ... but he certainly did not compile the ms dialect on anything but windows ...
Wes
Wes
oh i see
we can get windows to work after, I think ...
Wes
Wes
this .o thing is the compiled .nasm file, right?
everything is more awkward there, from compiling to debugging, you get more mileage with nix at the start ... then when everything works, you have an easier time on windows ...
yes
@Wes yea, .o files are object files
16:46
I am offended by the objectifying of .o files. They have all the same rights as other files.
2
@JoeWatkins you release them and see what people complain about. That's what I do, that's what MS do. If 2 people are doing something then it must be the right way to do it.
srsly though, I vaguely remember mgdm talking about this once, I think that he may have some box of tricks for it
pretty shitty in 2016
soon it will be 2017, and it will be even shittier for 2017
16:51
Next will be 2017, and 2018 comes after... wards
I'll collar him next time he's around ... it's not a pressing enough issue to summon him anyway
I mean in many ways it depends exactly what you are trying to test. Obviously if you want to test that something is actually displaying right, the only thing you can do is get a human to look at it
That's what QA is for, essentially
hmm
well ...
hmmm ....
yeah ...
it does really require a human
or
another mode of drawing
some kind of testing canvas, aware of the layers and items within each layer and able to provide information about that ... maybe ...
but who has time for that ...
if you query any window for the controls it contains, it doesn't actually detect anything, it just returns structures to things previously set, so a debugging canvas just needs to detect stuff ... it would be slow, and possibly terrible at first ... but it could work, I think ...
@JoeWatkins in Windows there are low-level OS APIs to query the actual dimensions of windows/form elements etc as the OS sees them, i.e. what is actually being sent to the graphics drivers, but I have a feeling that you would spend 90% of the time on any app just writing tests if you did that, even with some kind of high-level harness
most gui apps are mostly generated code, there's no reason you can't generate tests also ... if it were a thing ...
17:02
Can;t you somehow compare "screenshots" of expected / actual results?
That sounds like the proper way to do GUI testing to me
the problem is with using actual images, is that all shape detection is horrible ...
Surely such a thing already exists
!!? screenshot gui tests tool
Search for "screenshot gui tests tool" (https://www.google.com/search?q=screenshot+gui+tests+tool&lr=lang_en)
• 5 Great Automation Tools Based On Image Recogniti… - 1 feb. 2010 - Filed Under gui testing, Links, Test Automation, tools. Another … Very simple script… (http://www.testandtry.com/2010/02/01/5-great-automation-tools-based-on-image-recognition/)
• Our latest improvement to QA: Screenshot Testing… - 2 okt. 2013 - We tried several tools before settling on PhantomJS. … Once a screenshot is generated… (http://piwik.org/blog/2013/10/our-latest-improvement-to-qa-screenshot-testing/)
And yes I just made up something
Hmmm actually looks like i didn't
uggh it's mostly css I find
@JoeWatkins you do not test the generated code, you test the runtime changes…
17:16
yeah you don't test generated code, but you could generate a test at the same time as generating the code for some control or event or whatever
it looks like we are just spoiled with all our testability and the people who write guis just accept that you don't test them :s
RT if you think this Cthulu pie would do a better job running for President than Donald Trump. https://t.co/ZRebdmyTjZ
@DaveRandom I just can't believe that he said what he said ...
grab them by THE WHAT NOW ?
Cthulu can say what he likes. He's Cthulu.
that's the least presidential thing I have ever heard
Trump is just a walking fart joke.
17:19
@JoeWatkins wait … what did I miss this time?
@JoeWatkins I have heard much worse from people I have met in bars at 3am, and I totally can believe that he said that because he's the kind of absolute, no holds barred cunt that says things like that. What I can't believe is that he's been allowed to get this far, and that this probably won't damage his campaign in any way because the who are backing him are also those kind of no holds barred cunts.
"the best temperament"
/also, I just learned there is an 'a' in temperament.
People who say things like that are everywhere. The only difference with him is that he somehow managed to become a presidential candidate.
I don't expect more of him, I expect more of the rest of the human race.
I find it difficult to accept that people I know are likely to vote for him ...
17:24
@DaveRandom it's a problem in a representative democracy
It's true, but that doesn't mean I need to be happy about it :-P
what if they do vote for him, and that man, is leader of the free world ... it's very scary actually
I don't think he's bad at being a politician, he's bad at being human
> Trump's new foreign policy should be to 'grab them by the pussy.'
4
that describes his current marriage in an odd way
18:06
Evenin'
...
Wes
Wes
ahahah beautiful
@DaveRandom Had no luck, someone has cut the coax cable. Thursday hopefully
18:17
@kelunik can't you just joint it?
@DaveRandom need a new cable and new box, ISP will do that
Currently building a kitchen at my parents' home. :-)
Anonymous
Lol
18:37
Vomit-filled skinbag Nigel Farage says Trump's deplorable behavior is "just how men talk." No it isn't, you fuckheel. It's how scum talk.
I think "fuckheel" wins insult of the day.
Anonymous
Vomit-filled skinbag isn't too bad either
a bit wordy
Funny how so many of these chats are talking about the election :)
... and the terrible candidates we're supposedly choosing from. Go ahead and laugh, rest of the world, it's America's time to "shine."
Anonymous
!!wotd
18:44
stiver: the smallest possible amount.
TIL
@bwoebi ping
the thing, is, I wanted to open some video, and thus access an uri, like: http://[::]:9780/Resources/Code_Geass/01_Episode.mp4, it gives me a network error in chrome
the debug mode in aerys gives me this:
ew... sorry...
@bwoebi do you mind me creating classes for op->state and for a read operation?
@Archer pebkac? :)
It should at least make access to their fields faster
18:51
@Archer Where's your code?
well, it's just, a simple:
(new Aerys\Host)
    ->expose("*", 9780)
    ->use(\Aerys\root(DOC_ROOT));
probably some aerys issue...
00:00 - 19:0019:00 - 00:00

« first day (2184 days earlier)      last day (2989 days later) »