« first day (2288 days earlier)      last day (2885 days later) » 

15:04
I'm almost done with the PHP course on codecademy :(
@LeviMorrison btw. is there any reason why fn is proposed for short closures instead of just f?
Anonymous
@kelunik That would be confusing, I say fn is generally understood to mean a function and it is already short enough
15:20
@Tiffany You're a crazy cat lady?
@Leigh Getting there. Fred isn't actually mine, he's my sister's, I just included him so the array had more than two items.
Anonymous
@Tiffany Ok, do I really have to ask whats going on?
@samayo @Leigh got it
KITTEHS
Anonymous
What is up with the two undeclared variables?
15:23
I was working on a codecademy problem, and used cats for the problem.
(also, I am the only one who use <br> instead of <br /> ?)
@Trucy <br> is valid in HTML5, but it wasn't in HTML 4 XHTML.
No, because we have HTML5 now
Force of habit for me
It was XHTML that made it self-closing
15:24
That's right.
Or required it to be, or something
something something
@Tiffany It was probably valid in pre-HTML5.
dammit, what's strikethrough?
this
But then again, everything was valid in HTML<5.
15:24
:D
~~this~~?
---this---
markdown :(
Put a space after ---
little pootis (penser here) is right
ah
YAY
15:25
yayifications
someone once ranted to me about <br /> using two more characters, hence making servers across the globe use more energy, hence destroying the climate
2
@FélixGagnon-Grenier WHAT
Must be an js lunatic
@FélixGagnon-Grenier Someone needs a new purpose in life.
@Tiffany As I said, "a js lunatic"
@FélixGagnon-Grenier Something, something, compression makes it negligible compared to, say, using a white background instead of a black one.
15:27
Well, fuck, now I'm finished with php on codecademy. I need an intermediate course now.
@Tiffany You could do a small project
@LeviMorrison mindblown
Truly the best way to learn a language
@Tiffany Implement some simple algorithms
What didn't work Felix?
15:28
you learn the language, and the algorithm :)
@Trucy Technically, yes. I'm already doing that though. I'm more looking for something that fills in the holes of my knowledge and helps prepare my brain for actual work.
Hey Leigh
Hey, you've not died of a tropical disease yet then?
@Tiffany write a javascript interpreter
@Fabor skype. but I am an ok stalker, so I am writing a mail now :D
15:29
@littlepootis ._.
Quite the opposite. Iron stomach now.
Debilitating strains of herpes and whatnot
@FélixGagnon-Grenier lol, no worries. Email works too. Just gmail, not hotmail :P
@Leigh I think I can do that on codewars
Probably
15:29
@Leigh See that simpsons episode where Mr. Burns has so many diseases and illnesses they all block each other? :D
Aye
Where abouts are you now?
Vietnam still?
Yeah, for a while now.
@Fabor "You can't kill what's already dead"
6 months minimum, well that how long the first part of tenancy is.
@Trucy Not the iron islands no :P
15:33
@Trucy you misspelled "what is dead may never die"
!!help
Aliases currently mapped:
 youtube - 'google youtube'
Well that's an awesome fail
:D
@FélixGagnon-Grenier Is this some kind of reference or did I miss an english idiom?
15:34
@jeeves Why does Chris fail so much?
@Leigh <html>
oh dear
@Trucy yeah, that is some kind of Game of Thrones reference
@Trucy Sry, I thought this was where it came from
15:35
@FélixGagnon-Grenier I don't watch/read Game of Thrones, and I don't know where "you can't kill what's already dead" comes from
!!help
There @JoeWatkins ^^ proper-ish help
@Trucy "you cannot kill that which has no life" is from south park
!!admin help
15:36
@DaveRandom I'm willing to bet you may know something about voltage transformers or converters. Maybe in regard to my laptop not charging due to its inability to determin what is happening at the socket. Just this house though, not other places in the area.
@DaveRandom WTF
!!plugin help
!!command help
5 messages moved to Trash
That's cool
!!changelog
15:37
@Trucy Yea saw that (on another site), it prompted me to allow it to make phone calls, I said gtfo
@FélixGagnon-Grenier yet another fanboi
(but I love the boardgame)
(and I loathe 90% of the fans, spamming my feeds with "DON'T SPOIL DON'T SPOIL" all season long)
@Trucy The big one? (I have the 2 player one - but I played both)
@PeeHaa If you look at the actual contents you will see why I felt it was acceptable to use that commit message :-P
15:38
Also haven't watched more than season 1, never read the books :)
Yeah. Already guessed it was something like that without even opening it :P
With a friend we decided to play the spoiler roulette, where we posted "RIP <character>" and ACTUALLY spoiled an episode with this without watching it
@Leigh Yup, the big one, 3 players minimum iirc. I didn't know there was a 2 player one :o
@Fabor Well the place to start would be to determine what the actual voltage at the socket is
Your laptop charger will have a range of acceptable input voltages (probably ~110-~250)
@Trucy true fans actually watch the series
@Trucy Don't bother with the 2 player one, almost as complicated as the big one, but way less fun (and no giant board)
15:40
Then there's phase issues potentially
@DaveRandom Meh, doubt I will be buying any equipment for testing that. Yes 100-240 on the adapter I think
Or polarity sensitivity (less likely)
@Leigh ok, plus I bet it's edited by FFG, which is gradually losing in quality…
@Fabor Chances are you're under 100, you notice the fire if it was enough over 240 to make it not work, probably
Hmmm, under 100 would make it okay to stick a fork in there and see?
15:41
Er... no :-P
Not the volts you need to worry about :p
Have someone else stick a fork in there?
volts hurt, amps kill (yes yes I know, it's good enough). There will be enough of them to do you some damage
(oh god there's a cooperative LCG Arkham Horror game)
@DaveRandom My commit bot would have rejected github.com/Room-11/Jeeves/commit/… :P
15:42
So, any idea what I should try? Keep in mind Vietnam.
@Trucy The reference to your quote is from South Park, the WoW episode.
"You can't kill what's already dead." or is it "You can't kill what has no life."?
user895378
bad news: feeling ill and couldn't go in to the office
good news: get to stay home and leverage the free time to play with amp things
@Tiffany Isn't the exact reference "you cannot kill that which has no life" as @Leigh said?
> 127/220 volts. Plugs A, C & G. You will most likely need a voltage converter and plug adapter in order to use U.S. appliances, even though some outlets will correspond to American plug types and voltages.
127V? ... wat?
15:44
@Trucy Yeah. I didn't read the entire chat. Dealing with a report that keeps saying a server's down when it isn't.
2**7 - 1
clearly
only saw part of the conversation :D
user895378
@FélixGagnon-Grenier That's the same reason why I use ' instead of " in my php code ;)
@Fabor invasion?
@FélixGagnon-Grenier It must be the effective voltage
@DaveRandom Works in every other outlet I tried here. I'll try an electronics store for an answer.
Hello. How can I allow a website (php) to automatically, but safely and securely, create a linux user account. We create testing environments manually for new clients, but now want to automate this process to be triggered after signing up.
(thanks Québec for the grand dictionnaire terminologique :D)
@Fabor well honestly without a voltmeter they are probably not going to be able to help. However, what sort of main lead does the charger take? If it's a fig-8, it's worth trying just flipping it over (i.e. reversing the polarity), although that's unlikely to make a difference
15:48
@user658182 PHP can be uses as CLI scripts
/me goes home
Anonymous
laters yo
I was just reading it somewhere in one of my books, and now I can't find it
@DaveRandom I'll try but yeah fig 8. I'll try later because unplugging turns off my laptop at 1% charge
Words from my CTO:"We don't have any treasurery."
Actually I will try it now, I am intersted
@staabm No idea, you have to look at the commit log for that.
@user658182 Note: I've never used it, never written one, so I don't know how to solve the issue you're wanting to complete. I just know that PHP can create command-line applications.
@Trucy To justify not going HTTPS only?
15:51
@Tiffany Right. I'm using those now actually for the manual process. But once I switch to letting the website handle this, won't I have to give the adduser privilege to www-data?
@kelunik To justify that the payroll will be late
I lied and wasted my own time. It's a triangle thingy shape#
@user658182 Not sure. I haven't done it before. I didn't know if you already knew about the command-line feature, couldn't ascertain that from your original question, so tis why I mentioned it. :P
\o @Fabor, how are things going?
15:52
@Tiffany Ok, thanks for chiming in!
@user658182 the problem is to create a user, the process would need to have root access. From this point on, you have to be extremely careful about inputs. If you can, choose every information for the user, to prevent actually having to concatenate user input in a root access command
Hey @kelunik. Things are good. I decided no direction is a good enough direction in life for me. Currently living the lazy life in a house with 2 Vietnamese girls who seem set on turning me in to a much larger version of myself. :P
@user658182 Can you run it as a cron? Even if it runs every minute, better that than giving your web process root
also, look up escapeshellarg
!!docs escapeshellarg
15:55
@Dereleased Oh, that's an idea. That would circumvent giving www-data adduser privileges
I'd stick it in a queue and manage the linux user creation using something else. Then just fire an event when done if the user requires faster feedback.
done/fail/we
@Fabor +1
@Fabor :D
@user658182 You can build a separate service that listens on a pipe and does these actions.
nah, just setsuid on useradd and exec from web user, no worries :)
@Leigh did you actually just say "no worries". WHERE ARE YOUR WORRIES? WHO TOOK THEM FROM YOU?
16:07
Next to his "F" jar.
Still my favorite 404 page, followed up with [server 500]](bloomberg.com/500)
@Fabor Not sure why I have a jar, it's always empty.
@Leigh lol
I have a project where I put all of my route URI's in a YAML file. OK practice? If not, suggestions?
Nice try @Jimbo ^
16:19
My router middleware would load routes from that file
@Tiffany nobleme.com/pages/nobleme/404 best one ever
i have problem in angular material template to change header menu
(don't mind le french, the message is in english)
i have change text or delete menu in html file but it's cant; work
not change in header part
@km8295 You might want to ask this question in the Javascript room
16:23
thanks @Trucy
@Trucy Pardon your French?
And this just about sums today up perfectly
Defeated US oligarch Hillary Clinton displays customary warmth and gaiety at installation of Donald Trump as Chief… https://twitter.com/i/web/status/822473834653683713
@Trucy such win
@Machavity Pardonnez mon anglais
@Machavity North Korea throwing shade
@Trucy that's beautiful.
@Machavity It took me longer than I'm willing to admit to realize that this was a satire account.
16:36
@Tiffany :P
!!help
!!help invite
@DaveRandom fail
I guess that's a no
@WyriHaximus Uhm... nope. Did you have a look at the thing you just starred? github.com/phps-cans/bridge.psr7-to-reactphp/blob/1.0/src/…
user895378
^ that's the pre-php7 way to maximize entropy
16:51
@rdlowrey It's the stupid way. We have random_compat which provides a proper compatibility layer.
user895378
right ... my point is just that the code linked is how everyone did it before php7 and it just hasn't been updated
It fails completely open, entropy depends highly on installed extensions.
user895378
yup
@rdlowrey No, it's in fact not how everybody did it. Proper code failed closed before, too. It also usually took one of mcrypt_create_iv and openssl_pseudo_random_bytes, but appending it to the output of uniqid and microtime.
Pray for me. I'm currently installing Visual Studio 2015 for Visual C++.
16:54
@rdlowrey In fact, it's been committed 23 hours ago.
user895378
@kelunik I'm not justifying it. I'm saying that before php7 everyone mashed up some combination of "if openssl is available use random pseudo bytes which may or may not be good enough and if not try to fall back to mcrypt"
user895378
and so whomever did that was just copy pasting some solution they saw someone else use
@rdlowrey It even requires PHP 7 in the composer.json, lol.
user895378
@LeviMorrison -__________-
It's about how I feel, yeah.
16:58
@rdlowrey Everyone? No
Yes, Leigh, everyone.
If you didn't do it that way you are no-one.
You're no true Scotsman!
well trump has been president for 5 minutes, and the world didn't end ...
yet
!!lxr uniqid
17:18
@JoeWatkins it takes approx 30 mins for the nukes to travel from the US to Russia and vice versa and he only got the codes now so don't calm down yet
3
lol, true
did anyone already file for impeachment?
ah, not yet: trumpimpeachedyet.com :(
it's funny ... but at the same time it's not funny, because this is really happening ...
it's only bearable with humor, but yes, it's a terrible thing
"From this day forward, it's only going to be America first" ... "today will be remembered as the day people became the rulers of this nation again" ...
17:22
@JoeWatkins very specific people
people ... or more honestly, my millionaire, gun fanatic, science denying friends ...
It got too expensive to keep buying politicians, so they decided to just have the billionaires run the country directly
what is worst is that the people who voted for him and hoped for a change will likely get nothing or even less out of his presidency, while the rich friends of his posse will fill their pockets.
hey, but I had a good day and am not in the mood to let trump interfere with that. I had a burger for lunch, a talisker for dessert, implemented zero config installation of our tracing extension for php-cgi and fixed a bug in our httpd config parser.
and helped a colleague figure out another thing that was bugging us
and I will have sushi for dinner
17:36
Based on what Trump is saying, it seems like he's going to weaken the dollar to reclaim factory jobs that are not coming back. And everything we buy that's imported will be taxed heavily.
I haven't really done anything useful today, because friday ...
!!friday
Anonymous
!!sunday
Anonymous
AH, jeeves should have a remove command
3 messages moved to Trash
17:37
@samayo he does
6 messages moved to Trash
although it seems bugged given that it now only removed 2 messages
Is something like this possible in PHP

$interface = new ConcreteClass();
@hello depends on what you think it does.
the code will create a new instance of ConcreteClass and assign it to the variable $interface. But I am assuming you mean something else, since you named it interface and concrete class
I'm working on a kata in codewars. The problem is "You have to search all numbers from inclusive 1 to inclusive a given number x, that have the given digit d in it. The value of d will always be 0 - 9. The value of x will always be greater than 0. You have to return as an array the count of these numbers, their sum and their product.
WTF is "count of these numbers"?
17:45
@Gordon I have a User interface with some other concrete classes that implements User. And I want to create a bunch of objects from the concrete classes ALL as User.
Something like this (C#)

IUser student = new Student();
Wife: "has anyone tried to kill him yet?"
Me: "no"
Wife: "you would think with the amount of guns in that country, somebody would have shot him in the face already"
@JoeWatkins You're probably on a list now.
Secret Service will be watching you through NSA, or some shit.
@Tiffany You mean KGB?
@hello not sure if sarcasm...
@Tiffany how many numbers you found in the range of numbers inclusive 1 to x
17:49
@Gordon but if there is only one $digit that's to be found in a range, then wouldn't the count always be 1?
I don't like how the problem is worded, it's confusing as fuck.
@hello I don't understand the question. When you got ConcreteClass implements SomeInterface doing $obj = new ConcreteClass will make $obj be an instance of ConcreteClass and it will satisfy any typehints for SomeInterface as well. Is that what you are asking?
My reading comprehension must be shit today.
@Tiffany a digit is not the same as a number. 42 has two digits: 4 and 2. so in a range of numbers 1 to 100, how often do you get the digit 5?
@Gordon 10
er
11
5, 15, 25, 35, 45, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 65, 75, 85, 95
17:53
yeah, my brain is in la-la land
Good film btw, La la land.
I need to work on a programming project, but if I can't figure that out, I think I'm just fucked today.
Just do what artists do.
Draw straight lines and circles.
Drink alcohol
Sounds counter-intuitive in the best way
17:55
@Gordon Already took two xanax today. Maybe I need coffee now.
@Fabor unless you can reach the Ballmer Peak.
Or get addicted to Piano Tiles 2 on your phone like i am.
if it was 0 to 99 all digits appear exactly 20 times
Yeah, my brain was interpreting "digit" as "integer." And after reading Gordon's answer, I have no idea why that was happening.
Because I KNOW this, yet... la la la la
bbl
user895378
@Trowski @bwoebi @kelunik the amp2 version of this will use a stream emitter instead but any issues with this API for event listening in the amp1 version (code follows)?
user895378
<?php

use Amp\Stomp\Client;

run(function () {
    $client = new Client(...);
    while (true) {
        yield $client->connect();
        do {
            $msg = yield $client->read();
        } while ($client->isConnected());
    }
});
18:03
this doesn't make too much sense
it may still throw inside read() returned promise
but it looks pretty because daniel wrote it
lul
user895378
@bwoebi good point ...
user895378
updated:
user895378
<?php

use Amp\Stomp\Client;
use Amp\Stomp\ConnectionException;

run(function () {
    $client = new Client(...);
    while (true) {
        try {
            $msg = yield $client->read(...);
        } catch (ConnectionException $e) {
            // handle
        }
    }
});
user895378
18:05
where the connect is transparent
user895378
(you pass in relevant info like URIs to the constructor)
yeah, that, or while (yield $client->waitForNewMessage()) { $msg = $client->getLastMessage(); } (do not look at the naming)
18:30
Hello. I'm researching what the best approach would be to allow a PHP based website to safely and securely create linux users and interact with the environment. I have asked the question here askubuntu.com/questions/874244/…
.. if you have experience doing this, would appreciate any feedback either there, or here if chat is preferable
I have experience doing this but...
IMHO you seem to be trying to solve ssh with another tool
Our "clients" actually use SSH and whatnot. Since yours will never access the machine... you probably want another tool.
Anonymous
@Gordon you did !!remove 2, that would remove the last two messages?
Another tool to create the users you mean? Well, I'm not ruling out that they will never user SSH or FTP, was just trying to start simple and build from there.
18:34
@JayIsTooCommon no, I did remove 3 and then remove 6, which should have removed the message about the removed 3 and a few above
As an example, I recently signed up for a hosting account with Bluehost. Once I was finished, I immediately had access to my new linux account and /home/user/public_html was setup and ready for me to upload files into. I'm trying to recreate something like this
@JayIsTooCommon yes, and scroll up to where it did that
@LeviMorrison ok! good point
Anonymous
@Gordon you want it to move 'moved to trash' messages?
18:43
@JayIsTooCommon yes, I assumed it would remove everything up to my !!friday message
Anonymous
No, because technically Jeeves didn't post the 'moved to trash' messages, SO did. So there's no ID stored for it
Anonymous
Know what I mean?
hmm, apparently I cannot even do it manually
strange. I was very sure I was able to do that in the past
maybe mods can?
Anonymous
@MadaraUchiha get yo ass in here!
Anonymous
:D
@MadaraUchiha can you/mods move the two message moved messages?
Probably, but not from mobile
Anonymous
Kids these days
Evenings
@JayIsTooCommon but if its skipping the moving messages, it should have removed even more messages
18:57
Did the kid screw up again?
@PeeHaa might also be a brainfart on my part
I am confused by transcript
lemme test
yes, I am too
!!uptime
!!youtube firday
!!caniuse stuff
!!google wat
3 messages moved to Trash
3 messages moved to Trash
18:59
Nope. Seems to be working fine
!!remove 7
@LeviMorrison I don't have any messages stored for this room, sorry
see
not working

« first day (2288 days earlier)      last day (2885 days later) »