« first day (1706 days earlier)      last day (3239 days later) » 

12:01 AM
anyone know bash here?
 
a moderate amount
 
how do I compare integers in bash? is this correct: (wc -c <"s3://filename") > 0
or should it be (wc -c <"s3://filename") /> 0
or (wc -c <"s3://filename") -ge 0
 
@Danack thanks, try_files worked, and didn't even have to turn off chroot =o)
 
@simplycoding Use perl instead
 
i'm using just straight up a shell script
@danack, yeah I did see that, I'm a bit confused since my first argument isn't just 1 thing
 
assign it to a var first....
 
I actually don't need to, since this is a precondition in an aws node
 
@Danack Is execute_data a global in the engine?
 
12:34 AM
@Trowski yes and no.
@Trowski there are some optimizations like putting execute_data into a global register, but generally, it's not global.
 
@bwoebi Antol changed some code in the exception constructor, looking for execute_data->called_scope to fetch the extended class name, but he also assumed that the class entry was default_exception_ce if called_scope wasn't set.
Throwing together a quick PR to fix it and add some more tests.
 
@Trowski he made multiple commits and I'm a bit confused by that because the changes are diluted over too many commits^^
 
@bwoebi Yeah, it confused me at first too, which is why I had to edit my comment.
 
@Trowski the dynamic fetch is needed to differ between exception and error ce, right?
 
Yeah, I wrote it as an inline function.
 
12:41 AM
@Trowski shall I just quickly revert that?
 
I'm almost done with a version that moves the call to object = getThis() above the call to zpp.
 
okay, will merge then
just give me a link to your branch, will fetch from there
 
Ok, just a sec, have a failing test.
 
@Trowski pushed
(fast-forward merge ftw)
git pull --ff
git remote add trowski github.com/trowski/php-src
git fetch trowski bugfix/exception-invalid-params
git merge FETCH_HEAD
git push
git is really easy <3
 
12:56 AM
@bwoebi Yep, I switched from SVN about 4 years ago and never looked back.
And thanks for merging that :)
 
git remote add trowski github.com/trowski/php-src
git pull --ff trowski bugfix/exception-invalid-params
git push
would probably have worked too
the hardest thing about git really is rewriting history…
 
I'm pretty sure that was on purpose, since git doesn't really want you to rewrite history.
 
yeah, maybe.
It's always annoying me … inconsistent prefixing. the one functions are prefixed zval, others zend and the last unprefixed.
 
I was trying to figure out the reasoning for that. So apparently there isn't one?
 
not that I'd know… I just now searched for "zend_destroy_op_array" … no match… looked into zend_opcode.c … oh, it's without prefix… -.-
 
1:28 AM
these *printf functions… asprintf, snprintf, spprintf, … strpprintf?! Yeah, seriously… can someone please explain me these prefixes?
 
til @Ocramius has mustaches. i knew he was more italian than german! :D
 
 
4 hours later…
5:33 AM
Morning
 
Morning
 
5:54 AM
mosrning
 
Are people here
 
so ... the "mechanical apartheid" thing happened and devs got fed up: gameranx.com/features/id/28719/article/…
now there is a large group of people franticly trying to delete their tweets
 
hey, can anyone help me with laravel 5 queue system from database?
 
6:27 AM
m
 
6:41 AM
this is how blind developers hear code.
 
7:00 AM
moin
 
laravel 5 database queue which handles 200 jobs at a time? can any one help me?
 
@Tarunn nobody will be able to help you if you don't ask a question
 
@ircmaxell This is what I ended up with: github.com/sebastianbergmann/phpunit/commit/…
 
7:20 AM
I have posted this question..can any one able to give solution for this..stackoverflow.com/questions/30907666/…
 
7:59 AM
Morning
 
Good monrings
 
Morning fapore, salad o/
PeeHaa, better answer my question and then vote for anything you want :) Because I cannot find answer in google :( Thank you — Nikolai Sleta 36 secs ago
lol!
 
8:32 AM
Guys
PHP Fatal error:  Class 'APP\DBLAYER\PDO' not found in /home/ddddd/public_html/elibrary/config/DBConnector.php on line 27
Then i have
use PDO;
but still same error
 
Does anyone know of a current working example for the Google contacts api v3? So many out there that are either outdated or a mess...
 
@Silver89 What in specific do you need? / What in specific is not clear?
 
@PeeHaa just an example for retrieving a users email contacts once they've authorized
 
Well once people have authorized and you have an access token isn't it just a matter of doing a GET request to https://www.google.com/m8/feeds/contacts/{userEmail}/full?
 
I'll give it a go, the issue seemed more to be parsing the returned data but there's an older post with info on this so hopefully it's the same format
 
8:48 AM
moin
 
@Silver89 Doesn't it "just" give back xml?
@DaveRandom yo
$result = new \DOMDOcument(); $result->loadXML($theResult); @Silver89
After that you should be able to just loop though the entry nodes
 
morning champs!
 
@PeeHaa it was really simple to get working actually, just parse the request as json and all sorted
 
WTH die, y u no die.
 
@Silver89 :)
 
Anyone familiar with RabbitMQ?
 
Does anyone know, why the twitter favicon turned black until just now?
 
9:51 AM
It did no such thing for me
Blue for me
Asked where? And who? — PeeHaa 27 secs ago
SHouldn't that be whom? @Fabor
 
There's <link rel="icon" sizes="any" mask href="https://abs.twimg.com/a/1434379534/img/t1/favicon.svg"> in their source code.
It may be related to favicon badge, that it changes to that black icon. ^^
 
Chrome loads the "normal" favicon for me
@kelunik Ah that may very well be
 
Anyway, a black icon fits my twitter design color. :)
 
hehe
 
@Patrick I want to implement database queue structure in laravel 5. I am confused between events and commands? wat basically i need is I want to send notification to 2000 User via sms. How can i get this with queue. Do I need tocreate 2000 jobs in DB and then handle in the chunk of 200 Jobs per 15 mins? please suggest anything
 
10:09 AM
@PeeHaa Yeah seems like it.
 
You are too late now damnit!
 
lol
 
:-)
That entire question is a piece of shit either way so I'll just leave it
 
> Rule: Use who when you could replace it with he.
 
TIL
 
10:20 AM
@PeeHaa you will forget, I always do
 
@DaveRandom According to whom will I forget it? :)
:P
 
According to womb you will forget it
 
lol
 
Side note: English is a ridiculous language
 
10:33 AM
Ghoti is a constructed word used to illustrate irregularities in English spelling. It is a respelling of the word fish, and is intended to be pronounced in the same way (/ˈfɪʃ/), using these sounds: gh, pronounced [f] as in tough [tʌf]; o, pronounced [ɪ] as in women [ˈwɪmɪn]; and ti, pronounced [ʃ] as in nation [ˈneɪʃən]. An early known published reference is in 1874, citing an 1855 letter that credits ghoti to one William Ollier Jr (born 1824). Ghoti is often cited to support the English spelling reform, and is often attributed to George Bernard Shaw, a supporter of this cause. However, the word...
 
@Gordon lol
 
10:49 AM
hello mysqli escape need 2 arguments .but i used this for mysql .and how can i do this using mysqli .because i don't have a connection$email = mysql_escape_string($_GET['email']);
hello
 
898
Q: Why shouldn't I use mysql_* functions in PHP?

Madara UchihaWhat are the technical reasons that I shouldn't use mysql_* functions? (like mysql_query(), mysql_connect() or mysql_real_escape_string())? Why should I move away from them if they work on my site?

 
that is not the my question.but i figure it out ..if i don't have database manipulation then i don't need to aware of escaping.tnx anyway
 
You've come to me with a question about a splinter in your hand and I am telling you about the gangrene in your foot.
 
11:10 AM
`Since i can not ask questions on SO i'm going to ask you guys a favor here`
I'm a linux sysadmin. Our php developer left the company and his forgot password mail sending php script is not working. I don't speak the php language. If i post the script here, would help me please?
 
ok
paste here
 
it sounds like you need to hire a developer.
 
Yahoo contact api is not as simple as the google one :|
 
yahoo sucks
 
I've read some bad api documentation but theirs is right up there
 
11:18 AM
@FastSnail Thanks I will.
Where do you guys past codes?
Doesn't accept the code
@Danack Thats the plan. I should fix this till then ;)
 
Okay, here it is: pastebin.com/vAMcth4D
Postfix is giving me the following error message when this script runs.
Client does not have permissions to send as this sender (in reply to end of DATA command))
 
When the janitor quits do you clean the toilets too? :P
 
lol
No, Sir! i won't do that.
 
@Achu go to mysql server username and password is root .and there should be a database named dbname and table named ul_logins .
 
11:28 AM
That's something else. I just changed for pasting purpose here ;)
I confirm that information is correct. I got
`Password Reset Successfully!
Email Has Been Sent Successfully!`
Message
 
@Achu what?
 
I can confirm the dbname, username and password, and the table name is correct.
 
wut!?
$password = substr(md5(uniqid(rand(),1)),3,10);
 
@Achu so is your problem fixed?
 
That has to be the stupidest thing I have seen today
 
11:34 AM
@PeeHaa I guess that generate a random password.
@FastSnail NO, it's not fixed. What i mean is, The DB name, the table and the DB username and password are correct information.
I just changed the username and password to root root to past the code here.
 
Aaaah… there's nothing better than an invalid read bug report to wake up ._.
 
Morning
 
@bwoebi the invalid read size one?
 
@Danack yes
I'll have to do some deeper analysis…
 
If you don't see it on your system, there's a small chance it's a caused by the compiler.....
 
11:43 AM
@Danack I see it^^
I just have no idea where that thing is freed…
 
Is there a way to get mantissa and exp of a float?
Just for the sake of debugging
 
http://www.cowburn.info/2015/06/18/php7-logo/ #php7 #logo new and improved, by @cowburn and @Elroubio http://t.co/sXIktf9iwb
2
ahh boo, it doesn't one-box the image :(
 
@salathe nicely done, beautiful logo
 
@salathe What does the text say on the left of the root of the 7? "Hypertext Prepoop"?
"It whips the llama's ass"?
 
11:58 AM
tnx
 
@FastSnail Any Hope :)
 
posted on June 18, 2015 by kbironneau

/* by kamakazuu */

 
typedef union {
float f;
struct {
unsigned int mantisa : 23;
unsigned int theotherthing : 8;
unsigned int sign : 1;
} parts;
} float_cast;
 
@Danack wrong ping ;-)
@Danack s/exponent/characteristic/
 
I see, thanks
 
12:04 PM
FU MARKDONW.
2
 
Yeah, formatting doesn't work here when responding to someone
 
It's meant to, if you format first, and then click reply...
 
@salathe The baseline of the "Powered by" is different from the lower edge of the 7. Can you try to align it to see if it makes a difference? The text needs to be moved 3px down.
 
12:20 PM
@Gordon it's deliberately not using the same baseline
 
@salathe because?
 
@Gordon then it's too close to the main logo
the top of the (x-height of) "powered by" is aligned with the top of the "h" and "7", that was best
 
@salathe fair enough
 
is it true, that using foreach ($a as $k => $v) { $a[$k] = $v+1; } is much slower than foreach ($a as $k => &$v) { $v++; } ?
and if I should even bother about that?
I like the first approach better, doesn't PHP optimize this to have no hash table lookup inside foreach?
 
12:37 PM
@SergeyTelshevsky no it doesn't.
@SergeyTelshevsky the one needs an extra hashtable lookup, the other needs creation of a reference. So can't tell what's slower… just bench it?!
 
@SergeyTelshevsky don't even bother
 
@bwoebi I see, will do it
 
@Patrick I want to implement database queue structure in laravel 5. I am confused between events and commands? wat basically i need is I want to send notification to 2000 User via sms. How can i get this with queue. Do I need tocreate 2000 jobs in DB and then handle in the chunk of 200 Jobs per 15 mins? please suggest anything
 
@Tarunn Creating individual jobs to process is the right way to do it....but don't batch them up as 200 per 15 minutes, just have something running every second or so that checks whether there are any jobs to process, pick the top job to run, and then process it.
 
@PeeHaa s/llama/elephpant/
 
12:44 PM
If you need the jobs to be processed faster than 1 at a time, adding more workers to work in parallel is usually more reliable than trying to batch process stuff.
 
@Danack ok. I have one more query. I am very new to events and commands, but from laracast I got that I shoud use events, to generate them into queue. I have implemented events with three handler methods, NotifyByAndroid, NotifyByIOS, NotfyBYSMS. How i have fired this event from NotificationController@Store method
 
"I got that I should use events, to generate them into queue." - I kind of disagree with that. Using events to notify another process that something needs processing is flaky magic.
 
now, in event i am fetching the type of notification eg. 1-android, 2-ios, 3-both. from this, I'll query user table and get there respective phone_type. I have user data, now how to push this data to queue so that different handlers can handle them? any hint/guidance will be highly appreciated
 
12:48 PM
key: 0.03069210
ref: 0.00838590
 
No idea - as i said, this sounds like it needs to be processed by a service layer rather than by an event handler...
 
i got this suggestion from laracast. I had posted question there laracasts.com/discuss/channels/laravel/…
 
You're trying to goad me into saying that the people on laracast are not that clever? If so.....well done.
 
key: 0.00768089
<br>ref: &nbsp;0.00597310
 
@SergeyTelshevsky stackoverflow.com/a/14854568/889949 - TL;DR the first approach triggers a CoW, the second doesn't, but that won't always be the case, it depends on the is_ref/refcount of the foreach subject
 
12:51 PM
@SergeyTelshevsky so, looks like a rather small diff^^
 
@bwoebi interesting, my results are on php 5.3
will see on other versions
 
@SergeyTelshevsky mine on PHP 7 ;-)
on PHP 5.x I get similar numbers to yours.
 
@Danack.. well I donno dat, but I'm trying to learn events and commands and trying hard to accomplish my task, but no luck yet.. if you can guide me in detail, I would really appreciate all your help
 
@DaveRandom I see, interesting..
gottago, but I will try using a second array for result and see how that affects performance
 
can u suggest me how to accomplish it... plz.. i am into this since 3 days now...
 
12:57 PM
I don't use Laravel, and wouldn't recommend using events for this...
 
what shud be used accrding to U?
 
Just where you are generating the data that needs to be saved, save it directly from there into the DB.
 
ya... but how to convert it into queue, that I have no clue!!
 
@SergeyTelshevsky (with the caveat that this answer is written around PHP5, and a lot of things have changed wrt. arrays (and probably foreach as well) in 7
Ask Niki if you want the full story
 
yeah
arrays/foreach/references are broken in php7
 
1:03 PM
@FlorianMargaine no?
 
@bwoebi :P
they were for a while in master at least :)
 
were. yes.
 
Hi I need help in parsing the numbers, my variable x=[57,67] but when i say x[0] it is giving '['. how to solve this
 
yeah, I sure hope alpha1 wasn't released with broken tests :P
 
can any one help me
 
1:05 PM
@FlorianMargaine A huge number of phpt tests are just testing that things are still correctly broken rather than testing that things work properly
 
@strikers stop trying to use a string as an array ?
 
@DaveRandom o_O?
 
json_decode()
 
@Danack i didn't pass the string its array itself
 
1:07 PM
I don't believe you.
 
@Danack i'm passing the object from ui using formdata
this array is part of it
 
I'm sitting on a chair, with a plate of cheese next to me. That also doesn't affect your problem.
 
@bwoebi Just go have a look through some of the streams tests and tell me they all make sense to you.
(Although @rdlowrey may have fixed a lot of those by now)
 
when I am sending the data like a json obj how did it turn into a string any magic
 
JSON is a string, it's a string representing a complex data structure
You have to convert the string into the complex structure
 
1:09 PM
@DaveRandom like? (concrete example)
 
I don't have time to go find one at the moment, but I will in a bit if you want
Daniel probably has a couple he can point straight at
 
yup please
 
@strikers http doesnt send objects
 
@Gordon it should
that said
with http2 being full binary... not sure what the rules are
 
@FlorianMargaine There is no spoon
 
1:18 PM
@Gordon Nice idea that... HTTP being able to take full objects ;-) Requests could be parsed based on an object's state
 
json_decode has worked for me for now but I still wonder how the data is stringified when i'm sending objects
 
@strikers http only has strings .
 
is it like what ever I send it converts them into strings
 
So no you are not sending objects
@strikers Whatever is sending it did the conversion
ha! 3 pings
 
there are no objects, only booleans
 
1:21 PM
just lots and lots of them.
 
:)
 
what should I do to send the objects without being effected or manipulated
 
Write a protocol that does it
 
so, I mastered VDD!
 
vindication driven design?
 
1:22 PM
no
voodoo driven development
 
@PeeHaa asn.1
 
@AlmaDo Not quite. There were more monkeys involved and they were flinging poo at each other for quite some time
 
@FlorianMargaine Not sure I know what that is and not sure I want to find out :P
 
@PeeHaa do you know protobuf?
 
Can't say that I do no
 
1:25 PM
hmmm
@PeeHaa do you know SOAP?
 
Sadly yes
* as fas as anybody knows SOAP
 
it's the same idea
except much less verbose
and not xml, but a custom syntax
 
Yeah I don't think I want know any of tat :P
 
@FlorianMargaine I don't think a good selling point for anything is "It's just like SOAP"
 
@PeeHaa basically, it's a data exchange format, optimized for bandwidth usage and/or strong typing
asn.1 is an ancient one
protobuf is what google uses
 
1:36 PM
@FlorianMargaine if its not xml, its not good
 
@Gordon I want that on a T shirt
 
@PeeHaa and this "format" is, of course, in binary
 
@PeeHaa ASN.1 is what X.509 is based on, amongst many other things
It's basically the standard data structure format used in commercial cryptographic applications
Started work on that ages ago, never finished it
Can't even remember why I wanted it at the time, and what's there is probably horrible
Oh that's right, LDAP uses it underneath as well, I was going to write a native PHP LDAP impl for async stuff, but that turned out to be insane
 
So need an sql query that selects all the rows HAVING > 2 Field A but different Field B.
For example:

Fabien | 0
Fabien | 1
Better to query or to multiple query and script?
 
@DaveRandom yeah, php on windows is kinda insane
 
1:42 PM
Can anyone tell me if this is the correct flow for getting yahoo contacts with the php sdk? It's driving me mad, $connections is always false but I can't tell if it's because it's wrong or I don't have real contacts... pastebin.com/cZy693eV
 
@DaveRandom also, it looks like your repo is private :)
 
@Fabor GROUP BY fieldA, fieldB HAVING fieldA > 2?
 
Ah yeah
 
@FlorianMargaine Oh, I forgot about that, need to migrate my private repos to bitbucket. If you are actually interested in looking at that I'll just open it up but I've not looked at it for well over a year, it may be complete nonsense and there may not actually be any code in it
 
user895378
morning
 
1:49 PM
@DaveRandom nah it's fine
@rdlowrey moin
 

« first day (1706 days earlier)      last day (3239 days later) »