« first day (1428 days earlier)      last day (3538 days later) » 

2:00 PM
Is there anyone who kicked me out of the room ?
 
morning
 
Evening @NullPoiиteя
 
ThW
@NullPoiиteя morning
 
anyone who can help me out :S
ready to pay if you want
:'( I am pissed
 
@KhanShahrukh what's your problem?
 
2:10 PM
Man I am trying to post feed on fb usng ajax backend call
but it is not happening
 
Put yourself in my shoes.
 
when I am trying the php file which updates he feed directly it updates the feed but when i send data through button click from another page it does not posts on fb
 
@BenjaminGruenbaum Your shoes probably won't fit.
 
You just heard "Man I am trying to post feed on fb usng ajax backend call" - there is nothing I can help you with given only that information.
I have no idea how to help you given that information.
 
do you mind reading my code ?
its small
 
2:11 PM
You have to create an isolated self contained code sample containing both your backend and frontend code.
It should be under 20 LoC end to end.
Create it, and upload it, and I'll have a look.
 
That's not 20 LoC
Why does you code have mysql_query it's 2014...
 
let me truncate as much as possible
I know
 
Oh, and SQL injection prone
 
way too much jquery
 
2:14 PM
Also, have you isolated which part is failing? When you run JUST the backend with the values you expect from the frontend does it work?
 
So, @rdlowrey it turns out the implementation of the cache didn't actually require an interface, so ¯\_(ツ)_/¯.
 
yes it doe work @BenjaminGruenbaum
 
@KhanShahrukh so, you are convinced your problem is that the front end doesn't send the information to the backend correctly?
(But the rest of the code is working)
 
yes
I think it is because title have special characters may be
 
Ok, have you tried var_dumping to see what you actually get from the client?
Then, compared it to what you're expecting in the backend (that correctly works without the AJAX) and compared them?
(While you're at it, fix the SQL injection bug and learn how to use MySQL in a non-horrible way in PHP)
 
2:16 PM
I will fix that once I am able to complete things
I am gonna use laravel later
 
Don't care, you asked for help so I'm guiding you with how you should approach the problem.
 
allrite sir
 
Debugging is an art, one in which you have to be very focused and always slice your code into smaller bits until you find the bit that isn't working
 
I have php storm in my system
but debugging does not works
:(
 
@Fabien nop
 
2:26 PM
Morning.
 
morning levi
 
an IDE does not help with SQL injections
 
@KhanShahrukh debugging isn't just running the debugger...
 
now I have truncated the data I was sending from first page and now only sending the song id from first page to second page
but that also not posting on fb
 
@KhanShahrukh so you have a button on your site, making an ajax call to facebook. I obviously think facebook is for retards so I don't know much about the API. Does it support CORS?
 
2:37 PM
the button is not making call to facebook it is making call to a php file on my server which is then fetching data from database base upon the data posted by ajax call and then posting on facebook
facebook provide APIs
 
Ok, bored now
 
@Leigh Question that maybe you can help me with.
 
grumble
 
Okay, never mind :D
 
2:40 PM
no go ahead, you've got me aroused, it would be rude not to close the deal
 
I want to check out a pull request locally.
The supposed command is: git pull https://github.com/RadekDvorak/Ardent.git unroll_SplayTree_copyN
But this happens:
fatal: Couldn't find remote ref unroll_SplayTree_copyN
Unexpected end of command stream
Ideas?
 
add an "ode" to the end of "nroll_SplayTree_copyN"
:D
 
Doh, knew it was a silly thing.
Thank you.
Another set of eyes can be so helpful.
 
Aye, no specialist knowledge involved :)
 
3:00 PM
devv.tv Streaming platform dedicated to code?
 
3:15 PM
yo
Merge M_TAU y/y
 
how is it different from M_2_PI?
 
hm, what a stupid name
 
What's a stupid name?
 
something called 2_PI not being 2 Pi
 
3:19 PM
I guess so.
 
how is it different from define('M_TAU', 2 * M_PI) ?
 
@AndreaFaulds IMO we just need M_PI; if you want to change something, drop everything else?!
 
meh, drop all the PI's and add M_TAU
 
@bwoebi Then people will want to redefine all the other constants in their code. Why should they have to?
I mean, we don't need cos either as it's a trivial variation on the usage of sin, yet we include it
 
3:36 PM
I guess we don't need sin totally implementable in userland.
 
ok ... the garbage duty is done and gitlab installation is on the way
 
@Leigh I'd say sin is only implemented in userland ;)
 
@Gordon we need to get you a drummer ... ba-dum - tsshh
 
@AndreaFaulds actually, in maths, I always write 2*pi, never tau. but I use sin and cos instead of cos(x - pi/2)
 
@bwoebi Tau is, unfortunately, yet to catch on in mainstream mathematics. It does make it much easier though.
 
3:43 PM
what do you mean "yet to catch on", we use 2pi all the time
 
@Leigh The idea of using tau rather than 2pi hasn't, or rather, the idea of the circle constant being the circumference over the radius rather than over the diameter.
 
@AndreaFaulds It's saving one character in maths. I doubt this is worth it to adopt it there.
 
@bwoebi It's not saving a single character actually
If you simplify your fractions, the 2 goes way. Which is unfortunate, because it makes it more difficult to think about. People do not think in terms of half-circles. They think in terms of circles.
 
I guess I just don't have a problem with multiplying and dividing by 2...
 
3:48 PM
I do, because it's error-prone
When writing the code samples in that pull request I actually ran into a problem. I miscalculated 3/4 of a circle in terms of PI
 
is M_TAU - (2 * M_PI) !== 0?
 
hmm
oa-res-27-90:php-src ajf$ sapi/cli/php -r 'var_dump(M_TAU - (2 * M_PI));'
float(0)
Apparently, you can double pi and lose no accuracy.
 
we got 52 bit mantissas right?
 
Equally:
oa-res-27-90:php-src ajf$ sapi/cli/php -r 'var_dump(M_TAU / 2 - (M_PI));'
float(0)
 
so in PHP, there really is no more or less error by defining tau as 2 * PI in userland
 
3:53 PM
Yes, but why should you? It's a useful constant, costs nothing, doesn't really bloat the language
 
in the grand scheme of things, defining it in code is a negligible cost, even less so with scalar constant expressions
 
Why is PI prefixed with M_? Surely because M_ath, but do we really need to disambiguate it? As if, PI is something we could expect to be redefined?
 
@DanLugg because PHP, 'PI' as a constant makes so much more sense... RFC it for PHP7 :D
 
@DanLugg PI itself is unlikely to collide, but other things do, and this means we can have M_PI and M_2_PI
 
If I were to RFC it, I'd RFC for Math::PI
 
3:57 PM
get out!
 
@DanLugg Ew, static method utility classes :(
 
@AndreaFaulds Oh, I'm sorry, you misspelled M_TAU
;-)
 
:D
 
@AndreaFaulds Math utility is a-okay in my books.
Same with a small subset of other (typically of relation to math) concepts, which can be represented statically.
 
3:58 PM
If we added M_TAU we might want to add its fractions too. So M_TAU_2 is a half-circle, M_TAU_4 is a quarter-circle, M_TAU_8 is an eight-circle, etc.
M_TAU_2 is, of course, just M_PI ;)
 
anyway, for sanity, what we really need is...
 
Surely. I see great use-cases for M_TAU_39614081257132168796771975168
 
define('т', 2*M_PI);
define('π', M_PI);
var_dump(get_defined_constants(true)['user']);
 
@DanLugg I know the actual reason for the prefixes now. Like everything in PHP, the names come from C: gnu.org/software/libc/manual/html_node/…
 
@Leigh Is there a way I can politely say "GTFO"?
;-)
 
4:00 PM
@DanLugg not after your Math::PI there isn't
 
@DanLugg We only go up to _4 for PI. Up to _8 for tau would make sense, nothing more.
 
@AndreaFaulds Ah, and fittingly, like all regular constants in math, we shant question C.
 
function Σ(array $a) {
    return array_sum($a);
}
 
@Leigh Not going to lie, that's actually cute. It'd be neat if expanded character support were easy to implement on QWERTY.
 
4:02 PM
@Leigh Let's add currying and implicit function calling so I can just write Σ [1,2,3] :D
/me is a Haskell fan
 
$m = Σ([т, π]);
 
And you were against hookable AST because all those randoms would define their own language syntax
 
@AndreaFaulds Implicit is so neat and eww at the same time.
 
Σ [1,2,3] will be a reality
 
@DanLugg I meant bracketless
 
4:03 PM
Yea, I know; neat + ewww
 
In Haskell, there are no multi-argument functions
 
Really? I've tinkered with F# and Lisp...
There's variadics there.
 
I think you can forgive the eww, when you port something complex (lets imagine biginteger + extensible AST), being able to represent the formula in a natural way is a huge boon
 
Erlang forewaaa
 
@Leigh True, but I'd prefer to see that as a DSL, which may necessitate op-overloads to achieve.
 
4:06 PM
Easy to argue PHP isn't the language for the job, but we all write PHP, nothing wrong with making it alright for the job
 
> Installing emoji 1.0.1
^ u wat m8 ?!
 
The new face of @tereško ^
 
I know what emoji is .. what I am wondering is why the fuck GitLab needs it
 
@tereško did you look at gogs?
 
Probably because comments.
 
4:08 PM
@tereško because GitHub has it
 
gitlab is java
 
@Leigh I did, but it is not stable
 
not stable.... vs java
 
I set up GitBlit at work, it's good -- ish.
 
4:09 PM
@Leigh I am not setting it up just for myself, so you can shut up
 
i mean if you can afford a server with 4x as many resources as it really needs, and its on a closed network so you don't have to care about security... sounds good
 
GitBlit is also Java...
 
and based on what you concluded taht it is more secure ?
 
@tereško javas track record
 
emm ... GitLab is made in ruby
 
4:11 PM
how is that better?
 
47 secs ago, by Leigh
@tereško javas track record
 
*rubys track record
 
it mostly makes this into a bullshit argument and indicates that you have no fucking idea what you are talking about
so ... please stop the FUD
 
I was probably thinking of bitbucket
 
4:13 PM
also, gitlab is ruby, so you're not allowed to use it without a moustache, and a boyfriend named celeste
 
@DanLugg do you have an integrated system with Jira ?
 
we actually tried bitbucket + jira, it was a special kind of horrible.
 
JIRA?
Oh god
 
jira agile is "ok", but not amazing
 
subjecting people to JIRA is a warcrime
 
4:18 PM
one of our guys was editing the workflow, and managed to crash the instance ;x
jvm literally bailed out due to resource usage
 
@AndreaFaulds companies usually need an issue-tracker and Jira is one of the solutions ofr the java-stack ... it felt like a realistic scenario
 
don't even think about running jira + bitbucket on the same vm
 
4:53 PM
I used to dislike Jira but the more I use it the more I learn to appreciate it, especially as a stack with the other Atlassian products
atlassian.com/software/university/overview makes a lot of sense to buy if you want to use the stack
 
@AndreaFaulds best issue tracker I worked so far, and I've sadly seen many.
 
The best issue tracker I've used is GitHub's
 
Trac is a mess, Github issues is insufficient, Apollo SE is built for managers... and on and on
bugzilla: how the heck is anybody supposed to use it in first place? :D
 
@PeeHaa Peep Show
 
I haven't seen phabricator mentioned. I've never tried it, but everyone who has told me it was good
 
5:02 PM
@FlorianMargaine so far only used it rarely for HHVM stuff, no real clue about it
 
can someone help me how link need i to make HTTP POST from this :
<form id="form2" action="/kmailn.php" method="post" name="form2">

<b></b>
<br></br>
<br></br>


Your e-mail

<br></br>
<input type="text" maxlength="50" name="mailo"></input>
<br></br>

Text if answer

<br></br>
<textarea rows="6" cols="55" name="texto"></textarea>
<br></br>
<br></br>
<input type="hidden" value="" name="idi"></input>
<input id="erwrwe" type="hidden" value="aafdfsdfdf" name="erwrwe"></input>
<input type="submit" value="Odoslať" name="Submit"></input>
 
I made zpp E_RECOVERABLE_ERROR
This breaks 1000+ tests
Oh boy...
 
i have extension in firefox for building http post request but i cant make it right
 
You're looking for the firefox extension room.
 
@Fabien No no, I'm sure PHP stands for, uh... Phirefox Hextension Phdevelopment
 
5:13 PM
lol
Sounds latin.
 
Pretty cool actually
 
guys I am having another nginx problem. I have added a server name "domain.com" and whenever I goto "domain.com", it should redirect me to "https://domain.com" but it redirects me to "https://localhost" which is undesirable.
server {

	listen       80;
    	server_name  domain.com localhost;
	#return 301 https://$host$request_uri;
	rewrite        ^ https://$server_name$request_uri? permanent;

}
^this is my server block which handles to redirection.
I have tried removing localhost from the server_name list but that doesn't help. I have also tried setting server_name_in_redirect to off but that doesn't help either.
 
@AndreaFaulds do you have a Vi Hart crush? :)
 
5:21 PM
@Leigh I think I do now :)
 
i'm curious about her faux sleeves, but I think that's about as far as it goes
snakes, on a plane, well done ;)
 
ikr
Yeah I seem to be going on a Vi Hart binge :p
 
@AndreaFaulds what the hell are you doing there? You should turn the E_ERRORs for undefined functions etc. into E_RECOVERABLE_ERROR, but not move the E_WARNINGs to E_RECOVERABLE_ERROR…
 
@bwoebi Why not?
 
5:37 PM
@AndreaFaulds wrong question. Why? is the question.
 
@bwoebi 1) Consistency with userland parameter types, 2) Safety
 
consistency aside, warnings have one big feature, they don't stop the execution. One then sees what else is wrong too. It's annoying to fix one bug, run it again, fix the next bug, run, fix, run, ...
It also wouldn't make any sense if every developer always, just for developing, then would need to install an error handler, just for efficient coding.
 
@bwoebi On the other hand, most subsequent warnings are a result of the first
 
@AndreaFaulds no, usually not. At least not in my experience. (where wrong parameter order is the usual warning)
and the few false positives aren't really disturbing.
 
You need to run it multiple times anyway, though
and in PHP that's not terribly painful, no compilation
 
5:44 PM
Yes, but a few times less often is already a gain.
@AndreaFaulds except it's something like a request with specific headers and it's a bit more work to send the request via the browser.
 
@bwoebi Refresh.
 
@AndreaFaulds something like an ajax req with specific headers I meant.
Anyway… I'm back to having fun with async (interrupt-driven) and non-blocking streams.
 
That's a pain to debug anyway
 
@AndreaFaulds yes. And that's why I like to make such things not harder.
 
:/
Argh, I'm stuck, I don't know where to go from here
I am not fixing 1200 broken tests
But I am also not going to make userland types be E_WARNING and return NULL
 
5:51 PM
@AndreaFaulds hmm, the latter is maybe a great idea. I'm unsure.
 
Hmm, actually
It might be more accurate to say internal functions lack types
They act very much like untyped userland functions
Except, well, that's not true if you look at how they deal with classes. If you pass the wrong type of object to an internal function, it'll just E_WARNING and return NULL
Argh, damn you PHP and your stupid inconsistencies
 
forget parameter types, they can't and never will happen
 
can any one help me with .htaccess
im using this .htacess
Options -MultiViews
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} (.*)\.php
RewriteRule ^(.*)\.php $1.do [R=301,L]
RewriteCond %{THE_REQUEST} (.*)\.do
RewriteRule ^(.*)\.do $1.php [L]
ErrorDocument 404 /404.php
Options -Indexes
it works fine to replace .php to .do
but the problem is
when some visit the do extension ending with / and no parameter
the css breaks..
 
6:07 PM
@FaizRasool Change
<link rel="stylesheet" type="text/css" href="style/telphone.css">
To
<link rel="stylesheet" type="text/css" href="/style/telphone.css">
How simple :D
 
also, get rid of the type attribute, since there is only one type of stylesheet
 
Right. It's redundant in modern HTML, though it was needed traditionally
 
define "needed"
it's not like stylesheets didn't function without it
 
I guess so
What did JSSS use?
 
6:12 PM
thanks #leigh
let me try
 
@AndreaFaulds nobody ever used jsss, ever, so it's a moot question :)
its like setting your script type to vbscript
 
@Leigh Once upon a time...
fuck PHP it sucks
9
 
@AndreaFaulds supported by defunct browser X doesn't constitute a standard
 
morning
 
i change it how can i just redirect use
user *
 
6:14 PM
insta-star.
 
@Leigh JavaScript wasn't standard for a long time either
 
@Leigh how can i redirect the user
 
random fact about me, once upon a time I used to work on an ActiveX control codebase
some things were never meant to be standard
 
@FaizRasool Set redirection headers.
 
means like i need regex for that
 
6:16 PM
@FaizRasool ask me another one, but make it about PHP
 
php how lol
well its about .htaccess
ok what i want if user visit the page ending with / and no paramter after it
it should be rewrite without / in the end
 
@FaizRasool use the R option
RuleBlah blah blah [R=301]
 
@leigh can i show you my current code
 
please don't
 
ok
RewriteCond %{THE_REQUEST} (.*)\.php
RewriteRule ^(.*)\.php $1.do [R=301,L]
help me with regex
this one rewrite php extension to .do
 
6:20 PM
what's wrong with RewriteRule (.*)\.php$ /$1.do [R=301,L]
do you really need the condition?
 
its alright .
what i want.
if the url end with .do extension and after the ".do" if there is no parameter
search for /
if exits remove it
simple
 
RewriteRule (.*)\.do/$ /$1.do [R=301,L]
 
may i replace it @Leigh
or add this new line
@Leigh you are the star...
its fixed
 
once upon a time, I read a manual, try it
 
@Leigh which manual is that
im very bad in regex really
 
6:26 PM
Chicago manual of style, obviously
 
tell me how can i improve my regex skills
 
read some sort of regex manual?
here, try this one: regular-expressions.info
 
ok let me i see it is kinda software also
but sad im on mac :(
@Leigh i have one more question if you dont mind
please
the external javascript is not loading in the safari.
 
so upgrade to chrome, or firefox, or IE
 
i dont know the reason
but the javascript of my website is not loading in safari
it even works in IE
fine lol but i dont know why is that
do you mind if you have a look.
 
6:33 PM
I wouldn't worry about it, nobody important uses safari
 
just in case you know.
why javascript is not loading im struggling from 2 days with this issue.
 
sorry, not going to go and waste my savings on a mac just to test your site
 
ok @Leigh.
i did that i treid adding like
tags and full path
even its does not even loaded in safari
now whenever i goto safari and load the page and then click inspect it crashes even im thinking its my browser issue
rather than site
 
morning
 
@NikiC its evening in London
 
6:39 PM
it's morning on the internet, when you arrive
 
@FaizRasool it's night here
 
still in Berlin Niki?
 
sure
 
sure of course sure, exams ;)
silly me
then off to switzerland to live underground and discover anti-gravitons
 
7:40 evening
@Leigh well i love switzerland been once
its amazing is in it
 
6:43 PM
if you go to the bodensee, (or lake konstanz), you can travel between germany, austria and switzerland in less than 5 minutes - because the borders of all 3 meet in the middle of the lake
 
@AndreaFaulds the type hinting (± as like in your RFC) might actually happen sometime…
@NikiC it's dark outside, yeah, but is anything before 22:00 night?
 
@bwoebi I'm going to port the RFC to ng and put it to a vote
and give up if it fails
 
that's fine.
 
Because while I wanted to try a different way, this is actually more practical
 
@AndreaFaulds what way?
 
6:53 PM
@bwoebi Change what zpp does then make matching userland ones
But I'm not going to succeed there
 
@Leigh As gravitons are bosonic and chargeless, discovering the anti-gravition is the same as discovering the graviton ;)
 
@NikiC get back to your CERN-cave!
 
@bwoebi I think it's okay to call it night if it's dark
 
but you're also proving my point, you're basically savant ;)
 
Otherwise we'd also have to say that days really start only at 3am
@Leigh meh, my understanding of the standard model is very cursory
 

« first day (1428 days earlier)      last day (3538 days later) »