« first day (2434 days earlier)      last day (2739 days later) » 
00:00 - 16:0016:00 - 00:00

00:32
Unary operator expected error on line 3472 when configuring – #74761
01:28
0
Q: How to avoid the redirection to index.php when trying to access non www urls

ValentincognitoI have a Laravel website in production and here is my problem explained with 4 simple url tests: Access: https://www.my-website.kr/ Result: https://www.my-website.kr/ (all good) Access: https://my-website.kr/ (home page again but without www Result: https://www.my-website.kr/ (all good, redirec...

morning
 
2 hours later…
03:07
ftp_connect makes php break with RID error – #74762
 
1 hour later…
04:13
hey
04:58
morning
Can I ask a JQuery question here because there's nobody in the JQuery room
o/
you can try @Tucker
How do I paste code again?
I just want to add attribution to an element, but not sure how to
I want to disable the 'submit' button while the function is doing its thing and then enable it when the function completes.
That's all.
Oh. I see.
05:11
you solved it ?
your indentation is hard to read
what you want is a callback after your post function ?
yeah.

I haven't solved it, but I placed the attr in the wrong places
the re-enabling of the submit should be inside the $.post request
no ?
Yes
That's what.
moin o/
moin @Akshay o/
Wes
Wes
05:52
@JayIsTooCommon was that a random ping
Apparently with type submit, you cannot use attr and must use prop.

Never knew that.
06:13
ok
Solved.
Wes
Wes
06:25
o_0
@Wes is that like PHP meets Debian?
Wes
Wes
06:58
07:08
Stop trying to make Amp look easy to use!! It's hard! :D
(PS before I get flamed I'm still waiting for time to look at the EL impl. but I will)
!!dad
Dad, did you get a haircut? No I got them all cut
moin o/
mornin
\o
07:48
mornin
They're all super simple avoidable recursive calls
But sure, it'd be nice if they didn't allow it
Anonymous
mornin
Anonymous
@Wes I wanted to know if you were alive
Wes
Wes
@JayIsTooCommon <3 i am alive
08:02
Mornigns
Anonymous
pie
Wes
Wes
\o
Mornings lads
o/
Wes
Wes
@PeeHaa Hooo
do you like the logo
08:20
good mrognin
Wes
Wes
i've just found out that if trump is impeached, pence will be president. so you can cheat on the election results and still remain in power even if they find out. what the?
08:38
@Wes Better not ask :P
Wes
Wes
CAN SOMEONE PLEASE KILL ME
whats wrong with it
:(
Anonymous
It looks like your advertising a nursery :( Go back to being mean and scary.
That ^ for one
But more constructive to the new logo:
That crack is weird
That thing behind its head
@Wes it's a blue mustache
Anonymous
ah dear.. now I can't unsee a moustache
08:44
the left part just looks out of place, doesn't really belong to an elephant
Wes
Wes
@PeeHaa "that thing" ?
it's the bloody ear of the elephant @Patrick
Anonymous
Also...
Anonymous
Anonymous
:D
lol
08:45
So much that
It's the disney? moon
Anonymous
but apart from all of that @Wes, it looks great :B
agreed. it's just the "ear" that ruins it
Anonymous
Also @Wes you smell bad.
Anonymous
if we're just giving general feedback
08:56
But as said earlier. Just let the amp people pick one and ship it.
Wes
Wes
you forget that it is a logo, not a 1:1 3d rendering of an elephant head :B
Anonymous
now it's a dolphin :P
Anonymous
with a horn.
it's just that the shape is off. the ears don't point backwards
Anonymous
dolphinMoustacheMoon
Wes
Wes
08:59
@Patrick that's the space i have
has to be round
@JayIsTooCommon hahahahah
IT IS!
flipper
FWIW @Wes
Just remember we all love you
Wes
Wes
i can't love you back right now
how the fuck you see the dolphin
What?
How do you not see it?
Wes
Wes
i see an elephant
09:03
The nose on the left side misplaced eye htough
and this is why I became a developer
Wes
Wes
@Patrick yeah that's useful
:B
Anonymous
Feb 1 at 12:24, by JayIsTooCommon
well if you get desperate https://sketch.io/render/sk-9f45a16aca65d54616c7500ea5d213cb.jpeg
just trying to explain what I mean with the ear :D
@JayIsTooCommon Why did you draw a face on that penis?
09:07
@MadaraUchiha He didn't
Clearly he drew a penis on a face
Anonymous
user image
2
Anonymous
<3 you @Wes
Wes
Wes
i'm out
sorry @kelunik
13 mins ago, by PeeHaa
But as said earlier. Just let the amp people pick one and ship it.
Anonymous
this has made my morning :'). To be fair @Wes you asked a bunch of pedantic ass holes for feedback. I'm sure any average person wouldn't look twice at it. ^ Just ship one already :P
Wes
Wes
09:18
you said looks like a fish. in my mind dolphins and elephants don't look similar :B
(i will spit in the eye of the first that says that dolphins are mammals)
:B
Anonymous
Wes
Wes
that looks so cheap now
and it's angry
Anonymous
s/angry/powerful
Wes
Wes
you don't need to convince me :B
i like it powerful/angry
Anonymous
saucy.
:D
Anonymous
@MadaraUchiha this @Wes.
Wes
Wes
what's supposed to mean
09:39
After that mustache feedback i can't unseen that! :p
Anonymous
@Patrick oh my lord.
09:57
mornes o/
@Wes Why not the previous ear stroke to make it clear it's an ear?
10:42
@Wes It's angry!
11:20
non-anime-watchers'-problem
11:36
@Jimbo I've figured out how you can overcome your dislike of Doctrine. Just spend a few weeks using Eloquent and Doctrine suddenly seems like a draught of clear spring water.
user924016
jmorn
\o
dunno why I even bothered but this on valgrind just crashed everything :P
@Danack Wait, I don't have a dislike for Doctrine? I use it all the time, it's awesome!
I only slate it because @Ocramius sees the tweets
In that case, start telling him that eloquent is better.
12:11
I will die before I do this
:P
12:23
whenever I introduce a new thing to my coworkers, they take it a little too far...
value objects
return new IndividualCourseRequest(
$this->createCommonRequestData($row),
new IndividualCourseDateRange(
new \DateTimeImmutable($row['start_date']),
new \DateTimeImmutable($row['end_date'])
),
new IndividualCourseOrganizer($row['organizer']),
new IndividualCourseTitle($row['title']),
new IndividualCourseMotivation($row['motivation']),
new IndividualCourseLocation($row['location']),
new IndividualCourseDescription($row['description']),
new IndividualCourseLink($row['link']),
new IndividualCourseCoach($row['coach']),
2
Anonymous
hahahaha
@Patrick Not far enough
Clearly link needs to be broken up into uri parts
user924016
the rows def needs abstraction too
user924016
.. new Duration($row['dur ..
Also WTF is DateTimeImmutable. Those all needs to split up into separate objects (Day, Month, etc)
Anonymous
12:28
also CourseDuration. I want durationAmount and durationUnit
12:52
Huh, anyone else realise bob is on the PHPNW splash?
@Sean Jay and some handsome dude is also on it
Some handsome dude? Man that could be any one of us
Anonymous
@PeeHaa two Jay's!? impossible.
Yes, only one of us can be that
Anonymous
Jun 6 at 9:45, by JayIsTooCommon
@PeeHaa @bwoebi http://conference.phpnw.org.uk/phpnw17/ we're famous.
12:54
you all must be talking abt Jimbo :P
Anonymous
if you want my autograph @Sean, just ask and then pay
Anonymous
aw @Jimbo, @Linus has a crush on you.
@JayIsTooCommon you >.<
Oh, I think I'm also there! last row 3rd on the left :D
aw @JayIsTooCommon, @Linus has a crush on you >.<
:P
Anonymous
12:57
@PeeHaa that's just immature.
I learned from the best son
Anonymous
:B
:P
:P
@Patrick Date needs to contain new Month and new Day
12:59
31 mins ago, by PeeHaa
Also WTF is DateTimeImmutable. Those all needs to split up into separate objects (Day, Month, etc)
morning to you too
@PHP_CEO or SO user:
> WHAT I SUPPOSED TO GET IS THAT SHOW ALL RESULT FROM QUERY ON HTML TABLE BY LOOPING IM NEW TO CODE WORLD. I THENK I DONT EVEN KNOW HOW TO ASK PROPERLY JUST IF MY QUESTION IS NOT CLEAR TELL ME AND I WILL IMPROVE IT
yeap :)
0
Q: WANT show more than one row results on html table using mysqli and php it only shows the frist row BUT i havent seen error on my code THANKS

iwant2bhackerIM ONLY GETTING THE FRIST ROW FROM DATABASE <?php require('testconfig.php') ?> <html> <head> </head> <body> <?php $sql="SELECT * FROM item "; $sqlll=mysqli_query($conn,$sql) or die ("cant fetch data"); $result=mysqli_fetch_assoc($sqlll); ?> <table border='1'> <tr> <td>r.no</td>...

Hate it when the frist row shows
Damn frist rows
user1804599
If I open php://memory twice, do I get different streams?
13:11
@rightfold you should do, I think.
R.P
R.P
any suggestions on user in group with role accessing (view, update, delete) resource (also checking that resource is valid etc.)?
13:40
o/
user1804599
LDAP.
user1804599
That's because tabs don't work in Haskell. :trollface:
@rightfold orly?
That's like the first solid argument in favor of Haskell I've heard
What are some good interview exercises (whole day)?
user1804599
Indentation is significant, and has rules like these: the body of a let must be indented beyond the name of the variable.
14:12
Applicant has WP and Laravel experience ^^
@NikiC Concurrency without worrying about data dependencies is another one (with Haxl).
user1804599
@Patrick Write a constant-space du(1) using a hylomorphism.
user1804599
@kelunik That's just applicative functors, you don't need Haskell for it. :troll:
user1804599
user1804599
I should port pursuit.purescript.org/packages/purescript-fetch to PHP using applicative functors.
14:15
@Danack Eloquent is surely much better (at marketing)
function concat($a) {
    return fn($b) => fn($c) => "$a$b$c";
}
function concat($a) {
    return { ($b) => { ($c) => "$a$b$c" } };
}
user1804599
:)
@LeviMorrison ^-- brace style looks ugly if you chain functions
user1804599
function concat($a)($b)($c) { // :trollface:
  return "$a$b$c";
}
function concat($a) {
    return { $b => { $c => "$a$b$c } };
}
@NikiC Nobody wants these inner parens. :P
user1804599
14:19
Add special syntax for currying: return { $b => $c => "$a$b$c" };.
@kelunik Doesn't change the fact that you have to write :: A -> (A -> (A -> A))) instead of :: A -> A -> A -> A. That's the ugly part
user1804599
-> is a right-associative type operator.
@NikiC That's a good thing, makes writing bad code uglier and thus prevents it maybe.
nothing bad about that code :P
@NikiC Except for too short variable names? :P
user1804599
14:22
The variable names are fine.
user1804599
What else would you name them?
@rightfold $argumentNumberOne, $argumentNumberTwo, $argumentNumberThree of course
user1804599
function concat($firstString) {
    return { $secondString => { $thirdString => "$firstString$secondString$thirdString" } };
}
@rightfold $first and $second are better there IMO.
user1804599
I'm leaving the bikeshed.
14:26
$argumentTheFirst, $the2ndArg, $AnAdditionalArgComingThird
user1804599
That's the PHP spirit!
Additional arguments will just be an increasing number of i's, i.e. $i, $ii, $iii, etc
I guess $_, $__, $___ are also fine.
@kelunik NO. NOOOO. NOOOOOOO. Those belong to Perl
@rightfold But really, your function should be called concat3. :P
user1804599
14:29
No, it should be written in Hack and have a type annotation.
user1804599
Then the type tells you what it expects.
@rightfold It still conflicts with concat / concat2.
type annotations should become part of variable names. $(int)i. brb drafting rfc
user1804599
concat ∷ ∀ a. Semigroup a ⇒ a → a → a → a
concat = ((⨁) ∘ _) ∘ (⨁)
user1804599
mah language :drool:
14:31
Wait, you can put expressions in the type definitions?
user1804599
Fun-fact, given just these two things, you can infer the definition of concat:
user1804599
concat ∷ ∀ a. Semigroup a ⇒ a → a → a → a
assert (concat "a" "b" "c" == "abc")
user1804599
There is only one possible terminating function that has that type AND passes that test.
user1804599
concat _ _ _ = "foo" doesn't type-check, concat a b _ = a <> b <> b fails the test, etc.
function concat(string ...$bits) {
    static $progress = "", $final = "";
    if (count($bits)) {
        foreach ($bits as $bit) {
            $progress .= $bit;
        }
        return function (string ...$bits) { return concat(...$bits); };
    }

    if (!empty($progress)) {
        $final    = $progress;
        $progress = "";
    }

    return $final;
}

echo concat('foo', 'bar')('baz')();
user1804599
14:36
That special-cases the empty argument list, making it difficult to use with varargs.
user1804599
For example, concat(...$xs)() won't work if $xs happens to be empty, which is incredibly annoying.
user1804599
Rather, do this: concat(3)($a)($b)($c).
user1804599
Or: concat($a, $b)($c)->get().
Can also just force the minimum of 2 params via concat($a, $b, ...$c), then do what you just did via currying instead
user1804599
Currying and varargs don't work well together.
14:38
Unsure if I understood why 3 params are needed
but I saw that in Wadler's stuff recently, didn't follow along yet though
@rightfold currying a vararg should produce another function with varargs anyway, no?
user1804599
When will it stop currying?
@rightfold when va args is empty?
It won't - infinite amount of args, each curried version forcing more params
user1804599
@bwoebi That makes unpacking annoying, because you're special casing empty arrays.
user1804599
Don't special-case empty arrays. It's super annoying and causes terrible bugs.
user1804599
14:42
@Ocramius Without side-effects, this will never be useful.
user1804599
You'll always get a new function back, with no other output. :P
user1804599
You can do coroutines, though.
@rightfold I have no better ideas though
user1804599
@bwoebi If you make it a class with an __invoke method, you can do currying, and then to signal "I'm done", you have a different method get.
14:43
if it's a class, yea
user1804599
@Ocramius newtype Coroutine i o = Coroutine (i -> (o, Coroutine i o))
user1804599
Infinite amount of arguments, with an output for each one.
How does Laravel does not store authenticated user cookie data in database?
Does it store in $_SESSION?
@AbrarAhmed uses an encrypted cookie
@rightfold I... am not sure I can follow the reasoning there - no base type?
well, no base constructor?
@Ocramius
@Ocramius I myself store the cookie along with the user_id in separate table.
I cant understand why laravel does not to that.
*do that
14:55
Why aren't you just using sessions?
@PeeHaa You mean $_SESSIONS ? They cant be used with multiple servers
user1804599
@Ocramius it's infinite
user1804599
So there's no base case.
@AbrarAhmed Sure they can
user1804599
However, it is safe, because this is corecursion, not recursion.
user1804599
14:56
And it is productive, because every coiteration must produce an output (of type o).
user1804599
Even without lazy evaluation you can implement this, because it's a function type. :)
@PeeHaa Oh! Yes you're right they can be used on multiple servers.
But Does laravel used the $_SESSION
*use
I guess so. But why does it matter?
user1804599
You can generalize it to any binary constructor, not just (->): newtype Coroutine c i o = Coroutine (c i (o, Coroutine c i o)). This way you can use it with Kleisli arrows for example. 😻
Also I'm sure laravel also supports jwt
or whatever you want to do
Anonymous
15:02
!!wotd
trothplight: engagement to be married; betrothal.
Anonymous
@PeeHaa will you trothplight me?
Anonymous
1 message moved to Trash can
Anonymous
@Dereleased your lack of a pastebin almost ruined my joke
@Dereleased -1 point for not using an anonymous class.
@Trowski Initial version was echo (new ...)(..., when I added function concat( I thought about using an anonymous class, but then I was lazy, and, well, here we are
@JayIsTooCommon RO abuse!!!! such flag!! very abuseful!! Wow!!
@Trowski I updated my paste, how do you like it now?
Anonymous
@FélixGagnon-Grenier i would have trashed it with or without my hilarious joke :B
@Dereleased Oh god, that's not what I meant at all, lol
I know =D
@PeeHaa Sorry for the late reply. Thank you
Anonymous
@PeeHaa thank you.
@PeeHaa Does it support uninstalling laravel?
15:10
5/7 would copy the wordpress uninstaller again
@FélixGagnon-Grenier your memes are on point
@Trowski If I made it an anonymous class, how would I typehint the return of __invoke?
@Dereleased self should work.
mm so it does
15:17
@NikiC It's not that bad.
function concat($a) {
    return {$b => {$c => "$a$b$c" } };
}
Looks a bit better without those extra parentheses.
user1804599
@Dereleased nice
Most examples I see of arrow functions within arrow functions are convoluted or utter nonsense.
That example is easily both. I doubt embedded arrow functions will be a common enough use-case to even care what they look like.
echo (fn($a) => fn($b) => "$a $b")('nope')('wrong');
Bug report: strange error message when declaring a return type on a constructor.
Expected behavior: message reading "lmao u wild, that don't work tho"
Actual behavior: message reading "Fatal error: Constructor class@anonymous::__construct() cannot declare a return type in /usr/local/var/www/htdocs/_e/index.php(69) : eval()'d code on line 2"
user1804599
constrluctol
hi all
i am using datatable with this i am facing that error because of that i can not load data table properly because of that it can not place page number button poperly

(1)dataTables.bootstrap.min.js:5 Uncaught TypeError: Cannot read property 'defaults' of undefined
at dataTables.bootstrap.min.js:5
at dataTables.bootstrap.min.js:5
at dataTables.bootstrap.min.js:5
(2)dataTables.bootstrap.min.js:5 Uncaught TypeError: Cannot read property 'defaults' of undefined
at dataTables.bootstrap.min.js:5
at dataTables.bootstrap.min.js:5
i am facing that problem with boostrap
Anonymous
15:31
> Cannot read property 'defaults' on undefined
Anonymous
@PrashantBhatt have you googled?
user1804599
@PrashantBhatt This is not about PHP.
user1804599
Please ask about JavaScript in chat.stackoverflow.com/rooms/17/javascript or on Stack Overflow.
@JayIsTooCommon yes but i am find any solution
Anonymous
!!? bootstrap Cannot read property 'defaults' of undefined
15:34
Search for "bootstrap Cannot read property 'defaults' of undefined" (https://www.google.com/search?q=bootstrap+Cannot+read+property+%27defaults%27+of+undefined&lr=lang_en)
• DataTables: Uncaught TypeError: Cannot read prope… - 2 okt. 2014 - The problem is that dataTable is not defined at the point you are calling this method… (https://stackoverflow.com/questions/26165263/datatables-uncaught-typeerror-cannot-read-property-defaults-of-undefined)
• Cannot read property 'defaults' of undefined - po… - 16 jan. 2014 - Cannot read property 'defaults' of undefined - poshytips #496 …. com/ajax/libs/
that's a cute hankey @crypticツ
Anonymous
$args = debug_backtrace()[0]['args'];
Anonymous
why ..
so that you can do list($args, $stuff, $whatever) = debug_backtrace() ?
hmmm nvm
@JayIsTooCommon that's actually sensible... each first level element is a step of the backtrace? what do you mean?
Anonymous
15:45
hm maybe I'm missing something in this spaghetti mess.
posted on June 15, 2017 by CommitStrip

00:00 - 16:0016:00 - 00:00

« first day (2434 days earlier)      last day (2739 days later) »