« first day (2031 days earlier)      last day (2933 days later) » 

4:10 PM
@Saitama Yup
 
@PeeHaa Wouldn't call it fantastic.
 
Oh sorry typo. I meant fucking horrible
 
@kelunik I can think of a couple other words starting with 'f' that match the description
 
@MadaraUchiha but why?
 
https://imgur.com/gallery/iiN6WMt wat (NSFW, slightly shocking)
https://imgur.com/gallery/LIlWh2U wat
 
4:12 PM
lol
 
@NikiC That sounds much scarier than … men solving differential equations.
… Oh that was even the context, lol [^ said that above without looking context up first]
 
@MadaraUchiha dafaq
 
@Saitama What's really astounding is that she didn't even blink
She probably didn't even feel it due to shock
 
Wes
4:29 PM
@Saitama ahahahaha
 
:P
 
Wes
i laugh, but that made me a bit sad
:B
where's my beer
 
tbh, we all laughed...
 
Wes
gif?
 
I thought you were talking about the the girl with the corn on a cob on a drill...
 
Wes
4:33 PM
AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAAHAHAH
 
But apparently you were talking about the 90's thing...
 
Wes
seen that now. i'm dying
 
:D
 
Wes
are people idiot? how could they not see that coming?
it was inevitable, i'd say
 
true...
but.. but... there was a guy who did that with some type of chilli on the corn too...
 
4:37 PM
@PeeHaa :: what is implied is that mostly developers are racing against deadlines, and simply put: if (isList($foo)) {...} is shorter to type than: if (typeOf($foo) == ListDT) {...} however, in this case: if ($foo == List) is the same character length as in the isList() example here; but, ya, not possible. — Charl Steynberg 10 mins ago
wtf level japan
 
Wes
> "MUST! CONTINUE! DRILLING!" - Person on the right
> "YOU DIDN'T FINISH THE CORN!"
japan, what a wonderful place
 
4:52 PM
buuuh
Saddurday
 
Ekn
darn I just read that star on the right as "Software engineer found unicorns and beaten up in his home with a sticky note..."
 
@Ekn lol
 
@Ekn lol
 
e'nin
 
Ekn
4:57 PM
'nin joe
 
@JoeWatkins '
 
Ekn
I've got a fresh debian with 7.0.6, I have a probably effed up 7.1.0 on mint and a 5.5 on the ohter pc....
I've seen things...
lol
 
yo joe, hope you had a okay weekend
 
@PeeHaa Is that guy advocating a magical isFoo() for every type that just does instanceof or... what?
 
5:09 PM
not too shabby, was attempting to do DIY ...
 
House still standing?
Because that's about the only requirement for me to call something a DIY win
 
it is ... but the fence at the bottom of the garden is another story ...
 
Oh, who needs fences. They're aren't very sociable anyway.
 
they keep the dogs from eating strangers ...
and kids from falling in river ...
the river is the problem ...
 
Strangers I don't really give a crap about
Maybe scotch-guard the kids?
 
Ekn
5:11 PM
lol
 
ha
I could also have them wear scuba gear whenever in the garden, as a precaution ...
we'd have to have scuba lessons ...
 
@JoeWatkins sounds like an excellent idea!
 
may be easier just to do the fence ... although only a little bit ...
 
@JoeWatkins diving is not that bad :-P
 
it's not very appealing water :D
(like, you wouldn't be able to see your own hands if you submerged yourself in it)
 
5:16 PM
@JoeWatkins uhm … okay … in Mediterranean Sea its better :-D
 
I wanted a wall, turns out that is rather tricky ... I thought easy because there is a storm drain right there and that is surrounded by a wall, but apparently, the wall might be 10 foot underground ...
(about 4 foot is visible above)
 
Yeh walls are decidedly non-trivial
fences are a pita
that's the sort of thing I would just pay someone to do, it would totally be worth it IMO
 
I done them before (walls), but I've no idea how it works with a river in the way, so I rang some builders and stuff, they all said huge project requiring removing garden fences, and possibly building small bridges :(
 
Maybe @Fabor would whore himself out, he's a strapping lad, looks like the sort who enjoys driving huge stakes into the ground
 
probably finish it during the week ... need wife to have day off ...
we can't even just build a fence ... because some of it floods really badly and it will last 5 minutes ... water needs to be able to flow, so we're putting up chainlink in a kind of wooden frame, so there's handrails still ... it will look alright, dunno how long it will last though ...
is galvanized and plastic coated, but will still eventually rust, because not sealed, and galvanized steel eventually corrodes anyway ... but I guess longer than a solid wooden fence ...
 
6:21 PM
Is it possible to do something like: $Foo = new {$className}();
Would I need Reflection?
 
@Saitama $foo = new $classname();
 
=============
$resCurl = curl_init();

//set URL and other appropriate options
curl_setopt($resCurl, CURLOPT_URL, "https://partnerapi.biotrustapps.com/v1/contactcheck?email=pmedia.victor@yahoo.com");
curl_setopt($resCurl, CURLOPT_HTTPHEADER, array('accept: application/json','accept-encoding: gzip,deflate','accept-language: en-US,en;q=0.8','x-api-key: VuLdqJDU2z6KgtmarX2QK7VMQVfUI5vt20NA3EwB')); //setting custom header
curl_setopt($resCurl, CURLOPT_HEADER, true);
curl_setopt($resCurl, CURLOPT_NOBODY, true);
 
@Andrea Very nice… If you don't merge now, I'll a bit later :-)
 
@bwoebi I'm too lazy to write the UPGRADING bit myself :p
 
also, I still need to write a language spec thing for it
maybe later
 
@Andrea :-P
 
Can someone help me?
 
@bwoebi oh lol, I am really over thinking things... :P
 
user1804599
6:47 PM
@NikiC have some beautiful generated code: gist.github.com/rightfold/74c1feb5f65ac10a0603f6975ea0dce4
 
@Zoidberg Can you help me with my PHP CURL GET REQUEST above... I am not getting response.
 
user1804599
No sorry. I've never used curl. I use higher-level request libraries from Packagist.
 
What is your suggestion for HTTP GET request? I am new and want to learn php and things.
 
user1804599
This was quite easy to use: github.com/guzzle/guzzle. It worked well.
 
Any other?
Thank you.. trying with it.
 
6:56 PM
@Viyog tried to do a curl request?
 
yes i tried but not getting response i added whole code above.
 
ah yes
you should look into debugging in php and curl in general
 
I tried same url and header in advanced REST client of Chrome extension and getting response well.
 
But when using CURL no response.
 
6:58 PM
but you need to try and var_dump your data
and check the http resoponse
and etc
 
Am am i missing something above?
 
enable verbosity
Yes I think you need to start debugging
like, what do you mean by "no response"
 
no response means no output
I added code here.
When i use Advanced REST Client i am getting JSON response
 
@Viyog no output does not mean no response
I think you just need to spend abit more time beating on making curl requests
 
ahh
 
7:02 PM
and also use var_dump( .. ) when you are doing runtime debugging instead of echo $...
 
I did var_dump($strHeaders); and still no output..
 
no output at all?
 
yap just white screen.
no output.
 
I think your code might be broken, var_dump outputs something even if you give it a empty string or etc
 
@Zoidberg aahhhhh it is all by reference :(
 
user1804599
7:05 PM
Yeah, otherwise they can't be recursive.
 
Here is code i am not seeing anything broken....

https://gist.github.com/vijaykc/96014191def232364b9fee20dd24ed1c

Not sure if i miss something here.
 
@Zoidberg then add the ref only if it's recursive :(
 
user1804599
What is the benefit of doing that?
 
Because a kitten dies every time you use references
 
user1804599
Why is not using references for this an objective desirable property of the generated code?
 
7:08 PM
@Viyog this is the output I get
HTTP/1.1 403 Forbidden
Content-Type: application/json
Content-Length: 42
Connection: keep-alive
Date: Sun, 08 May 2016 19:07:57 GMT
x-amzn-ErrorType: MissingAuthenticationTokenException
x-amzn-RequestId: 2c95a44b-1550-11e6-a6a9-dfa4362b2303
X-Cache: Error from cloudfront
Via: 1.1 823355654d69efaf19d467269c43b83a.cloudfront.net (CloudFront)
 
@Zoidberg I assume you don't care about performance and verify that only existing variables are used statically anyway?
 
user1804599
Are references less performant?
 
user1804599
The compiler indeed checks that only variables that are in scope are read, and that they are initialized.
 
@Zoidberg Absolutely.
 
user1804599
Ok, then I will consider capturing by-value in non-recursive cases.
 
7:09 PM
References = allocation + forced slow-path
 
@Viyog are you sure you have curl installed in your php? You also might wanna find your php error log file as I am sure it has a error for you
 
user1804599
 
YES! i am sure CURL installed. I did some other test with CURL successfully.
1. 403 Error – This is an access forbidden error. This can be caused if we haven’t granted your API key access to the API, or if there is a problem with the way you are sending the API key along with your requests. Your key must be the value of an HTTP header named ‘x-api-key’. The API call should not be retried without understanding what is causing it.
error_log is not created in same directory.
 
@Zoidberg Heh ... that does not look much better than the generated code :D
 
user1804599
It will once I add type argument inference!
 
7:13 PM
What is the [t *] about?
 
@RonniSkansing If i try same url with same header in Advanced REST Client it response me 200 status code and JSON.
 
user1804599
Type parameter named t of kind *.
 
user1804599
id is a generic function.
 
And what is (x t)?
 
user1804599
Value parameter named x of type t.
 
7:14 PM
That is supremely ugly?
 
@Viyog your token must be attached to your session, btw you have to reset your token (it has been leaked )
 
user1804599
;_;
 
@NikiC uh, poor Levi then :-P
 
user1804599
Note that these are S-expressions.
 
Why do you need to explicitly type the argument?
 
user1804599
7:15 PM
Because the exercise is implementing a type checker for System Fω.
 
user1804599
Type inference is not very important.
 
@Viyog did you get the token from authenticating via the api?
or is it generated in a backend?
 
@Zoidberg Ah actually I misread the code, it's not supremely ugly after all. Only a bit ugly
 
user1804599
(fn [t *] (fn (x t) x)) means "function that takes a type, and returns a function that takes a value of that type, and returns that value".
 
@Viyog I think the error you need to focus on (in the script) is the
x-amzn-ErrorType: MissingAuthenticationTokenException
 
7:17 PM
@RonniSkansing So you mean wrong api key?
@RonniSkansing How did you get that header?
 
@Viyog I ran the script from my computer
that is the output the script (the exact one)
 
@Zoidberg Yeah, makes sense
 
user1804599
Functions taking types are erased. They won't appear in the generated PHP code.
 
@Viyog
 
YES!
I am just thinking what is issue :P
 
7:22 PM
curl_setopt($resCurl, CURLOPT_HTTPHEADER, array('X-API-KEY: VuLdqJDU2z6KgtmarX2QK7VMQVfUI5vt20NA3EwB')); //setting custom header
change the key to UPPER_CASE =)
and it works fine
I got this reply while testing it
string(420) "HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 59
Connection: keep-alive
Date: Sun, 08 May 2016 19:22:03 GMT
x-amzn-RequestId: REMOVED
X-Cache: Miss from cloudfront
Via: 1.1 afe891444e2f39f570631ae6dcd2c867.cloudfront.net (CloudFront)
X-Amz-Cf-Id: REMOVED

{"existing_lead": true, "email": "pmedia.victor@yahoo.com"}"
 
I am still seeing white screen :P
Is that only changes you did?
 
=) yea thats because you have some php error
yes that is the only one
 
Night guys.... o/
 
you should find your php error log, it will tell you why your script is erroring out
because without the change, you would get output, and with the change, you get the output you wanted.
 
@Viyog you should learn how to debug first
 
7:27 PM
when var_dump() getting bool(false)
 
What are you var_dump ing?
 
output.
 
How am I only seeing this now?
 
@RonniSkansing Can you add your sample code here?
 
@Viyog I added a comment with it
 
7:42 PM
Thanks you but you know what it is still outputting bool(false). I tested in LOCALHOST and live server both... Not sure what is issue.
 
I guess something is with your php setup.
You need to find the error log
 
For Both local and live?
 
yea
you wanna know why it isnt working locally and you wanna know why on live =)
 
yap i want to know
If i enable error reporting on that page, does it show error?
I am trying to add error_reporting in this page.
 
Maybe, but you should edit that in your php.ini locally
so you do not need to set such settings in the script,.. imaging all the time you would have saved by now if only you had errors on the screen or knew where the log is =)
 
7:49 PM
I tried with error_reporting(E_ALL);
No error reported.
Now trying with php.ini
 
320
Q: How to get useful error messages in PHP?

CandidasaI find programming in PHP quite frustrating. Quite often I will try and run the script and just get a blank screen back. No error message, just empty screen. The cause might have been a simple syntax error (wrong bracket, missing semicolon), or a failed function call, or something else entirely. ...

 
I added
ini_set('display_errors',1);
error_reporting(E_ALL);
No error recorded
I found that xammp php.ini have
error_reporting = E_ALL | E_STRICT
I found big error_log and no issue recorded today.
@RonniSkansing You run this same code in your local server and you get response?
 
hey guys, I actually don't need help with php, rather need suggestions.
 
@DaveRandom That's what I thought, but it's even worse. He is saying that if you have to type ListTD (either way fucking terrible name) instead of List you are not going to make deadlines because of it
I spent a good 20 minutes on that moronic stuff. So troll successful +
That entire question is based on retard
 
My professor asked me to share the code I've written with my classmates, so I am gonna add a little trick, to be able to use the program they have to write " myname is awesome", any suggestions for other hilarious ideas to add ?
 
8:05 PM
@justastudent Show rebecca black if it is ran on friday
 
@PeeHaa lol wth
 
Do whatever you want with my suggestion :)
 
@Viyog yes
 
@PeeHaa it's cool, thanks ^_^
 
8:17 PM
@RonniSkansing I just tested in different online test server and it just work fine and return correct response... Am still finding the issue why it doesn't work with my local server and also live server....
 
8:28 PM
Does an TTL value only get decreased by every hop on a router?
Like when it reaches its destination (DNS server) is the TTL value reset?
 
If you mean a ping TTL then effectively yes - it's just counted one way.
s/ping/icmp/ probably....
 
So when it reaches the DNS server the TTL value is reset to 255 (the default value)?
 
amphp.org < I want to replace the strings with Amp\stop::class respectively tick::class, but it feels really strange, even if it works. /cc @bwoebi
 
@kelunik nah, don't do that. It only works by coincidence.
 
@bwoebi I know, but removing it would anyway be too much of a BC break probably.
 
8:32 PM
@RonniSkansing
I get this error.

Curl error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
 
It's really nice to have something like that, just the ::class is strange for obvious reasons.
@Viyog Which CA do you use?
 
I don't know which CA
I am trying to find CURL issue and i just found this issue.
What this issue means?
 
Which site do you request?
 
You mean website?
 
Yes.
 
8:36 PM
You mean request website right?
biotrustapps.com
this is the site.
@RonniSkansing Thank you for help...
 
@Viyog DNS_PROBE_FINISHED_NXDOMAIN. That domain doesn't seem to even exist.
 
really?
I just resolve the issue.
I wasnt' get the issue.
from CURL request
And i debug it with
if(curl_errno($resCurl))
echo 'Curl error: '.curl_error($resCurl);
and i added this lie
curl_setopt($resCurl, CURLOPT_SSL_VERIFYPEER, false);
Fixed issue.
So it was SSL Verify issue.
From where to get CA>
@kelunik
 
@Viyog That doesn't fix the issue, it works around it.
 
Really?
What should i do to fix the issue then?
@kelunik can you suggest me what should i do to fix it?
 
Ensure you're using the right certificate bundle that contains the root certificate that the site you're requesting uses.
Which PHP version do you use?
 
8:45 PM
@kelunik PHP Version 5.3.29
@kelunik YES it doesn't work again.
I got
Curl error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
 
@Viyog Something like unitstep.net/blog/2009/05/05/… should help you.
Also, if you can, upgrade PHP to at least PHP 5.5, better 5.6 or 7.0.
 
Okey Thank you kelunik i am reading.
 
@kelunik Curl error: error setting certificate verify locations
CA is in .crt format.
Is that an issue?
 
hello?
I have $q whcih I want to search and select from tables: cast, directors and main_table.
with main_table AND $quality <>'' AND genres LIKE '%$genre%' AND rating >= '$minimum_rating'
I have $q whcih I want to search and select from tables: cast where actor= $q or directors where director = $q and main_table where title = $q.
with main_table should be :AND $quality <>'' AND genres LIKE '%$genre%' AND rating >= '$minimum_rating'
 
9:48 PM
@JoeWatkins here?
… meh, replying by email…
 
10:18 PM
time for good old printf() style debugging…
Somehow, the only times I use printf() debugging in php-src is when debugging allocator related things (mem leaks, tracking pointers down…)
 
@bwoebi Do you have any idea about Curl error: error setting certificate verify locations: CAfile:?
 
nope
oh, the joy… I've managed to crash the debugger :x (lldb)
 
@bwoebi btw, idea for debugging leaks in long running php applications: on each alloc/free log the address and file/line where it occurred, as well as the time. Then write a small analyzer that lists all allocations that have not been freed in a certain time interval, skipping some time at the start
 
@NikiC that's exactly what I've been doing:
#include "zend_hash.h"

static void add_emalloc(void *ptr, size_t size) {
        zval zv;
        if (!AG(log)) { AG(log) = malloc(sizeof(HashTable)); zend_hash_init(AG(log), 65536,NULL, NULL, 1); }
        ZVAL_LONG(&zv, (zend_long) size);
        zend_hash_index_add(AG(log), (zend_ulong)ptr, &zv);
}

static void del_emalloc(void *ptr) {
        zend_hash_index_del(AG(log), (zend_ulong) ptr);
}

ZEND_API void clean_emalloc() {
        zend_hash_clean(AG(log));
}

ZEND_API void dump_emalloc() {
^ and hooked into _emalloc()/_efree()
 
heh
no timestamp tho?
 
10:32 PM
what do I need a timestamp for?
I just call clean_emalloc() in the debugger
and dump_emalloc() where needed
 
@bwoebi So you don't get to see the allocations that are alloc/freed within one request cycle
but only those that remain unfreed over long periods
 
@NikiC They should be freed though…
Nothing in gc_buffer
Accurate enough for my needs now^^
 
@bwoebi You mean you're only looking for cycles, not actual leaks?
 
@NikiC what structure is typically of size 56?
@NikiC no, looking for leaks
but I only have like 20 allocs which aren't freed
 
@bwoebi hashtable...
 
10:40 PM
@NikiC ah true … 288 is Closure …
was confused
thanks :-)
 
11:04 PM
@bwoebi Did you have a chance to work on the casting callable at all, or have you been having too much fun with memory leaks?
@Ocramius Do you know/recommend any libraries that can hydrate SQL results into objects, that aren't tied to particular DB backends. e.g. I have a result set that I want to hydrate into an array of:
class IssueWithComments {
    /** @var  Issue */
    public $issue;

    /** @var  IssueComment[] */
    public $issues;
}
objects. I know how the data is mapped....I just want to avoid having to do all the hydration by hand, and all the libraries I could see didn't seem to have a way to do this from just arrays - they all seem to be tied to DBs. Also, I'd like one that is code based, rather than annotation based...
 
11:20 PM
Smoke from #Alberta fires now covering vast areas of North America across to Atlantic coast. #ymmfire https://t.co/UUDQtAwU5k
 
11:41 PM
that hashtag reads like "yum, fire".. or alternatively "your mileage may fire"
 
Wes
hi
 
Moin
 

« first day (2031 days earlier)      last day (2933 days later) »