« first day (2314 days earlier)      last day (2638 days later) » 

4:00 PM
yeh works for me now
 
@JoeWatkins Yes, thanks!
 
#teamwork :D
@PeeHaa so just holidaying ?
 
@JoeWatkins why are all you LAN connections 100Mbps?
I mean not that i really matters but I assumed everything would be gigabit
 
well, does the router switches into the lowest speed available on all connections ?
wait ... I mean is max speed of router determined by lowest speed connected to lan port ?
 
no it's independent for each port
What's connected to LAN1?
 
4:03 PM
that's desktop, should be gigabit
 
what does the desktop say?
 
the server is only having 100mbps because crappy usb2 to ethernet adapter
 
I'm wondering if the web interface is lying to me
@JoeWatkins wut :-P
How does a server not have built-in giga LAN?
 
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
aww
 
interesting
 
4:05 PM
@DaveRandom it does, it has two 10gigabit SFP connections ... but I didn't get hold of transceiver yet
 
I wonder what's going on there
 
so do I ... that's strange
it's okay, you will fix it ...
don't do anything that might knock me offline until after 5 though
of course I can't actually use 10gbps connections ... so I think the transceiver(s) I need is this one ... amazon.co.uk/d/Computers-Accessories/…
but it's a bit of a guess ... because I'd never heard of SFP before ...
 
Hey guys.
 
does it look right to you @DaveRandom ?
 
Morning.
 
4:13 PM
@JoeWatkins no worries. You could try just plugging your desktop into a different LAN port/using a different patch cable first, I'm not aware of any configuration that would cause that. If could be a router firmware bug but I'd be surprised.
 
I've been using terminals too much, I keep highlighting text and expecting it to auto copy :<
 
yo levi
@Sean your windows usage is leaking everywhere ...
 
@JoeWatkins well you'd need a switch that actually has a place to connect the things to...
 
@JoeWatkins GUIs keep me coming back, what can I say.
 
@DaveRandom is rj45
 
4:14 PM
oic
oh right yes of course
 
the 10gbps ones are fibre still, so useless ...
 
Can anyone tell me, what is the equivalent in PHP of "Hello, World!".getBytes() in Java? Thank you. I did look into unpack, but with all those format options I kinda feel a bit lost.
 
@JoeWatkins at the end of the day you probably don't even really need giga. The LAN is still faster than the WAN on 100Mb, unless you are moving loads of data around on the LAN you won't notice a difference
 
@DaveRandom well it isn't ... the WAN is 160mbps using both lines
 
@DaveRandom Totally missed this. I'll get on it, cheers.
 
4:17 PM
also, I'm not sure that usb2 can achieve even 100mbps
there may be a need for big copies also, if ever I get the chance to go back to elephos ...
 
Should I ask it as a question on SO?
 
if there any way i can assign an input submit button a value without it showing on the button anyone please
 
@DaveRandom PS I owe you drinks still for helping with my talk. I might put your face at the end of the slides to say thank you for your input, what do you think?
 
@Eugene PHP doesn't really do bytes ... you were going in the right direction with unpack if you really really want bytes, but you do need to know what endianess and whatever you want those bytes in
 
@Jimbo you don't want to scare people
 
4:22 PM
> Uncaught Error: Call to undefined function session_start()
Whoops... haven't worked with the web sapi for a long time...
 
You're in french news, php-src guys :D (article about sodium being a part of PHP 7.2 core)
 
Fair enough. When I put @rdlowrey's face on my DI talk, the whole audience jizzed at once and then suddenly was silent.
 
@DaveRandom why don't you clone the repos with git clone --depth=1
 
@FlorianMargaine because I don't know what that does
should I do that?
why?
 
@Eugene why do you want the bytes? Strings aren't really encoded in character sets in php, so a string is just the raw bytes.....which is why we have both strlen and mb_strlen.
 
4:23 PM
what's the point?
what's my name?
 
It doesn't fetch the whole history
Just a checkout of the tip
So... It's much lighter on the hard disk
 
Anonymous
 
It's also much faster to clone, obviously
 
@FlorianMargaine then you won't get the history-based functionality on OpenGrok though
 
Ah, opengrok has that?
 
4:24 PM
@Trucy Yet to be seen whether the work gets done
 
Although I'm going to start doing that locally
til
 
does blaming and stuff @Florian
 
@JayIsTooCommon thats not an input thought
jsfiddle.net/00fknsnh/1 thats what i have but dont want it to have the words in the button
 
I really want a cloud stuff that clones projects and generates tags and lets you navigate... I want to use that kind of thing so often
 
Anonymous
@RachelDockter <button> behaves the same AFAIK
 
Anonymous
4:27 PM
 
oh yeh lol thankyou
 
@JoeWatkins I was just looking through Java code and one method there specifically returned byte[], not String. So I thought to reproduce same in PHP I need to have same approach.
 
@FlorianMargaine if you want to bugger about with opengrok locally/privately, get an Ubuntu 14.04 instance, clone github.com/Room-11/lxr-tools and run github.com/Room-11/lxr-tools/blob/master/opengrok/…. You can just clone things into /srv/sources and index it with the scripts that are placed in /opt/room11-opengrok/bin
 
@Leigh It's just a matter of time isn't it? They "just" have to merge libsodium code in the core right?
 
Evening room.
 
4:30 PM
@DaveRandom nah looks like opengrok sucks
 
@Trucy No :)
The vote was to de-namespace it from it's current form
 
I'll just restart work on github.com/ralt/dpsv and add support for ctags... I think...
(the site has been down for a while...)
 
@Eugene it looks doubtful you really need bytes ... likely it will be returning bytes because lots of lower level stream funcs in java only accept byte arrays not strings ... the same is not true in php ... you could show me some code if you wanna be sure ...
 
@FlorianMargaine If you wanna figure out how ctags works and build some better static analysis for PHP that would be great. Any time this week is fine.
I expect it on my desk by Monday.
 
@DaveRandom ctags is not that hard
the format is actually pretty simple
 
4:31 PM
fine, make it Friday morning
 
it's one line per identifier, fields separated by comma, and the fields let you know in which file and line the identifier is
and it has different lines for usage/declaration
plus, the file is stored in sorted order, so that binary search is easy
 
well I have no idea what you are talking about but that sounds lovely
 
@DaveRandom ever heard of ctags?
 
I have heard of it, I know that universal ctags is a maintained fork of the unmaintained exuberant ctags, I know that there are no releases, not even pre-alphas, of universal ctags, I know that despite this is builds fine from master.
 
it's a file that vim and emacs usually use to have the "Go to declaration" feature
it's a simple format, like this: {tagname}<Tab>{tagfile}<Tab>{tagaddress}
 
4:34 PM
I don't actually know what it does, I only know that OpenGrok needs it to work, so I know how to install it
 
one per line
@DaveRandom opengrok uses it? cool
@DaveRandom it scans the whole project and generates a list of identifiers, this is how opengrok knows the link between an identifier and in which file it is
 
hello
all
need help
 
@FlorianMargaine Oh right so it's basically just a lexer?
 
@JoeWatkins yes kinda. Ask @Ekin
 
@JoeWatkins as an example (it uses Apache Commons library)
gist: d18395b7f99aa2bfea950da92158fcdf, 2017-02-15 16:36:17Z
public static byte[] calculateDigest(byte[] dataToDigest, String algorithmName) {
  return DigestUtils.getDigest(algorithmName).digest(dataToDigest);
}
 
4:36 PM
@DaveRandom yeah
 
@Ekin what is @PeeHaa doing in Turkey, he seems unsure ?
 
@FlorianMargaine Ah k
 
@Eugene yeah you don't need bytes for that, equivalent functions in php will just accept and return strings
 
upload multiple image in codeigniter is not working properly on live site. on local host is working perfectly.
 
we were looking for a way to get OpenGrok to understand e.g. method references in PHP
 
4:37 PM
so if you just clone the repo's tip, generate ctags out of it and parses this file, you get an interface
 
!!docs openssl_digest
 
[ openssl_digest() ] Computes a digest
 
which obviously requires some pretty hefty static analysis, like PHP Storm does
 
@DaveRandom for projects written in php?
 
yes
 
4:38 PM
!!docs hash
 
[ HASH Message Digest Framework ] HASH Message Digest Framework book
 
@DaveRandom for ctags, there's a --languages option...
 
Anonymous
@PaulCrovella you could upload your talk here @Jimbo
 
@FlorianMargaine yes, universal ctags has a very large file called php.c or something, it knows a lot about it
But I have not begun to find out what it does and frankly I don't plan to :-P
I was am going to make Bob do it
 
upload multiple image in codeigniter is not working properly on live site. on local host is working perfectly
 
4:42 PM
@Jeeves ah, yes ... that's much better ...
 
Can anyone of you reproduce bugs.php.net/bug.php?id=74071? I can with 100% reliability locally, but I can't on Nevis.
 
@JoeWatkins would that be an equivalent then
gist: 53b66f276474d35d3b510aed3c668980, 2017-02-15 16:42:36Z
<?php

/**
 * @var $dataToDigest string
 * @var $algorithmName string
 * @return string
 */
public static function calculateDigest($dataToDigest, $algorithmName) {
  return hash($algorithmName, $dataToDigest);
}
 
2048/4096 RSA or p256?
 
@Eugene looks same to me
 
Okay. Thank you.
 
4:45 PM
public static function calculateDigest(string $dataToDigest, string $algorithmName) : string
 
@kelunik that's not a segfault :P
 
yeah, it's not ... but it still crashes php in debug mode ... failed assertion ...
 
@FlorianMargaine Indeed, I just read "Speicherabzug geschrieben".
 
@kelunik you've built the PHP binary on nevis with --enable-debug?
 
it may be related to the RC=1 changes that niki merged into master
 
4:49 PM
@JoeWatkins it IS related to it
but why does the ht have RC≠1??
 
@bwoebi Yes, same build script as locally.
 
@bwoebi no idea
 
during composer update…
  [RuntimeException]
  Could not delete /Users/Bob/amp-artax/vendor/amphp/loop/.git/objects/0b/e9916617f3f81c81cbcc57fcffd0bf429b78eb: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but ple
  ase set date.timezone to select your timezone.
lol… I should stop using my php 5.6 system binary :'-D
@kelunik I can.
 
@DaveRandom I also wonder if ctags can't be improved...
like, is it reading all the files concurrently?
surely using an event loop would be optimal
 
5:06 PM
@FlorianMargaine no idea
 
Wes
 
oooooh
 
@Wes oooooooooooooo
 
Wes
cc @kelunik
 
nice elephant ^^
 
5:14 PM
@DaveRandom yeah the whole thing is synchronous...
 
oh.. @Jimbo, is your stalker going to be around? :D
 
@Wes omp
 
Wes
yeah i should hide the m behind the a :P
 
@JoeWatkins wellll that's where @Ekin lives. Just unsure about the just holidaying label
Kinda I guess. Wouldn't label it work no
 
so you went to see Ekin ?
 
Yes
 
is she any good in real life ?
 
@PeeHaa how cute.
 
I like the pink one
 
@JoeWatkins not pink enough imho...
 
5:26 PM
@JoeWatkins she is watching me right now so I have to pick dem words carefully
 
Wes
magenta is such an underrated color
 
@JoeWatkins not at all obviously
 
Yeah she is @JoeWatkins
 
@Ekin hehehe
 
Ugh, are content security policies cached or something? I've whitelisted a site but it's still being blocked, and the console log shows a totally different CSP
 
5:30 PM
@PeeHaa I'm sure she is ...
is it nice there this time of year ?
looks it
 
@JoeWatkins city is nice, all is nice
 
@tereško Not how I actually planned. As always. But I still am hopeful
 
Weather at night is... chilly
 
Yeah it is
 
day time temp?
 
5:32 PM
@Ekin shit.. cigs, scoth, fair weather, not a single cloud.
I am totally not jealous
 
yeah me neither ... I got rained on twice today ...
 
15-17°C
 
that's pretty comfortable
 
it's like -30 here
 
@FĂ©lixGagnon-Grenier well, mine is a single barrel bourbon but.. oh well :-)
 
5:34 PM
out of the scoth... into the bourbon (something like that ;)
 
lxr.room11.org/xref/PHP-MASTER/ext/standard/streamsfuncs.c#982 @kelunik well, there we have the culprit
 
(btw @Pee I'm totally cool about questions on transgenderism and all (I've just read my SO notifications))
 
@bwoebi should be dup ?
 
@bwoebi subject to interpretation
I'd say that code is correct and places modifying the options are missing SEPARATE_ARRAY
 
@NikiC or well, we do not copy_ctor the value upon modification
yeah
 
5:36 PM
@Leigh Luckily not, although I did receive a message asking if I was in London. Wait, which one? The one I asked for friends to come and distract last time or the actual stalker?
 
oic
 
@Trucy glad hear to hear, but it kinda annoys me @Ekin won :p
 
what did ekin win ?
 
@NikiC I.e. adding array separation to php_stream_context_set_option should be enough… or is it modified somewhere else too?
 
@JoeWatkins argument about whether I'm a guy or a gal
 
5:38 PM
@Jimbo Not sure
 
@bwoebi I have no clue
 
One of those
 
this is streams code
 
@Trucy I ... don't understand
 
Damn, Peehaa is old.
 
5:39 PM
Yeah, PeeHaa is old.
 
@JoeWatkins PeeHaa and Ekin were debating if I was a boy or a girl. Ekin bet on girl and PeeHaa on boy. I said that I'm a girl; thus, Ekin won
 
@PeeHaa @Ekin why didn't you both come to London instead. That's where the cool kids are going to be this weekend.
 
@Leigh untrue, I'll be home
 
@JoeWatkins Cool kids, not cool grandpa
 
/me sulks
 
5:40 PM
Ok that was mean, <3
At least you're still cool!
 
@Leigh Anything special in London?
 
Nah, PHPUK, literally not special
 
@Danack SHE TOLD ME THAT'S A LIE ALL CAPS BECAUSE YOU REACHED THE POINT IN YOUR LIFE YOU ARE HAVING HEARING PROBLEMS
 
Given that @JoeWatkins is a cyborg sorcerer, isn't his age relative to life cycle fairly low?
 
I got a free ticket, so I'm going to go, if I had to pay I wouldn't bother
 
5:42 PM
lol... no way I would say something alike :P
 
@Dereleased I choose this
 
I was in transit, then getting married, for several days since the discussion. What was the verdict on that bike?
 
ah, I went and test rode it ... didn't like it, felt heavy and hard to manoeuvre ... and in the bends (was wet) just didn't feel very planted ...
looks nice but needs to be useful too ... was supposed to be winter bike ...
going to test a thundercat tomorrow, more hopeful about that, closer to what I'm used too ...
 
good luck!
 
grats on getting married :)
 
5:50 PM
I got to say, Patrick's no-framework-tutorial isn't that easy to follow
 
Thank you sir! Truth be told we got married in late 2015, but it was literally just the two of us, a preacher we hired, and her cousin who just sort of ended up on this journey with us, in a small town in Georgia. Saturday was the big event with family and food and too much money being spent, thankfully mostly by her parents =)
 
@Trucy He accepts pull requests :)
 
@Leigh I'll pull him some requests then :D
 
@Dereleased me and wife done the small thing too ... having all of my family in a single place will result in the police cars and ambulances usually ... one of my brothers hasn't talked to me since, what can you do ...
(6 brothers and sisters, they all hate each other ... I can't get along with most of them either)
 
I had a few friends get offended they didn't get invites, but mixing some of these people was simply not an option. It'd be like mixing someone who has a religious opposition to brass with someone who exclusively eats doorknobs.
 
5:54 PM
@JoeWatkins and I thought my family meetings were rock and roll
 
mmmm, doorknobs
 
@Dereleased feels like vegan vs meat-eaters debate :)
 
@Dereleased yeah, same sort of thing ... I just had my mother there in the end ... if I had invited any of them, it would just be another reason to hate on each other ...
 
@FĂ©lixGagnon-Grenier you're canadian. It's all sorry and excuse me
 
@PeeHaa yes indeed, sorry
 
5:55 PM
And I'm not your friend pall
 
@FĂ©lixGagnon-Grenier Absurdity factor too low. I can see both sides of that issue. The brass/doorknob-eating one though, yeah... I don't know why some of these people are so hardline it-has-to-be-this-way
 
@PeeHaa my feels. they hurt
 
And a random moose
 
the funny thing is.. I've never seen a live, authentic moose
these things are huge
 
does anyone know why this doesnt work, it doesnt even seem to be going in the loop
 
5:57 PM
what does an unauthentic moose look like ?
 
<?php
		$usernames = $_SESSION["xAxis"];
		$emails = $_SESSION["emailsArray"];
		for ($index = 0; $index < sizeOf($emails); $index++)
			{ ?>
				<tr>
				<th><? $usernames[index] ?></th>
				<th><? $emails["emails"] [index] ?></th>
			</tr>

		<?php }

		?>
 
@JoeWatkins it's like a deer
 
@RachelDockter formatting messages
 
Youre doing it wrong
 
5:57 PM
'
 
there thats readable at least
 
@FĂ©lixGagnon-Grenier i call bullshit
 
@PeeHaa shit. I thought I'd get off with it. ok, only once or twice... when visiting the north wing of my igloo house
 
lol
 
@FĂ©lixGagnon-Grenier :P
 
5:59 PM
@RachelDockter stuff like <? $usernames[index] ?> should be <?php echo $usernames["index"] ?>
 
or =
 
even if its an array?
 
mixing code with markup is nasty
 
but if it's not going into the loop at all, add a var_dump(count($emails), $emails); somewhere
 
or <?=
 
6:00 PM
@JoeWatkins <?= ? Is that somehow not deprecated?
 
???php???
 
It's deprecated already?
 
@Dereleased no, is fine
 
@Dereleased that is actually becoming the preferred way.
 
For realsies? I just can't keep up with the trends
 
6:02 PM
fo realsies
also var_dump($emails) would show what count would return
 
doesn't that rely on short_open_tag?
 
you would think so
 
@JoeWatkins good point, I was initially going to just have the count dumped, then added the content at the last minute.
 
ok so its going in the loop the correct amount of times, but its not drawing the table for some reason
 
6:03 PM
waiting for my boss to get back from a trip so I can immediately go start making lunch
 
even when i put echo in front of the variables
 
$usernames[index]
read it again ...
 
i did echo $usernames[index]
i cant see whats wrong
 
read it again
 
$...
 
6:04 PM
erm
 
I don't need life, I'm high on drugs. Time to eat...
 
i still have no idea lmao
 
lol
 
its an array
so [index] is right
ohhh
$index
im a genius
oh it still dont work
 
welcome to the devs emotional rollercoaster
 
6:06 PM
@Dereleased yes, but since short open tags really is not hipster anymore, we can safely ignore it
 
@FĂ©lixGagnon-Grenier just ran this: var_dump(ini_get('short_open_tag'), PHP_VERSION); ?><?="welp";
got this:
string(0) ""
string(5) "7.1.1"
welp
 
@RachelDockter 3v4l.org/LNlZt
 
oh, by rely, I meant rely on short open tags being not activated
when short open tags are activated, it messes up the short echo syntax
 
@JoeWatkins thanks im gonna use this
 
btw, idontknowwhatimtalkingabout.gif
it's just stuff I think I've observed
 
Wes
6:10 PM
@Ekin dat ginger hair at the sunset :P
 
@FĂ©lixGagnon-Grenier I tried it on 3v4l which has short_open_tag on, it worked fine. Probably because the lexer cares about the first byte immediately following <?php (should be whitespace) so I assume something similar happens with the short tag too
 
<?= doesn't rely on short open tags
is separate token (T_OPEN_TAG_WITH_ECHO)
 
softwareengineering.stackexchange.com/questions/151661/… <-- my source or relative certainty that I can use <?= without problems
 
Wes
@Linus ahahaha
 
:P
 
laters, standup
 
Reading that answer that @FélixGagnon-Grenier posted... You're not going to sell me on final closing tags.
 
@DaveRandom lexer is not included in symbol search
 
6:21 PM
The only way I'll use closing tags (outside certain weird templating scenarios) is as follows: for ($i = 0 ?><?php $i < A_BILLION ?><?php $i = ceil($i + sqrt($i ** 3)) ):
 
@Dereleased omfg
 
@bwoebi I consider that an honor
 
Guys, how valid is this SecureRandom generation approach? stackoverflow.com/questions/1182584/…
The comment with some rep near confirmed answer raises some questions
 
6:37 PM
@Eugene which of them?
 
Not clear on question.
I was referring to confirmed answer.
 
What's the meaning of "just fine" ?
- it is fine, but not very
- it is fine too
 
@Eugene the answer is fine
both random_bytes and openssl_pseudo_random_bytes are suitable
 
Wes
@Shafizadeh "just fine" means "at the right amount fine" "perfectly fine" or "not better nor worse than fine"
something like that :B
 
oh :-)
 
6:46 PM
@Dereleased I never used a final closing tag since I learned we can leave them off
 
@NikiC can sha512 and base64 algorithm results vary between programming languages or if input is the same, then result should be as well?
 
Hi mates
 
@Eugene sha512 won't vary. base64 may vary for invalid inputs
But just to be clear, the methods in the answer are fine, not the method in the question
 
wats uuupppppppp
 
@Eugene for base64, some things (like perl's MIME::Base64) may like to include newlines after a certain number of characters, by default. So, not counting whitespace, should be the same.
 
6:49 PM
yo
 
@NikiC yes yes. That is clear now. I just thought since we are on topic, then would check with you about those sha512 and base64. I'm just seeing different result for same operations in Java/PHP.
 
Security, mysql, hashing question.
What you prefer pro and con.
If there is input what will be used for query, came from php. Filtered, regex checked, stripped and/or slashed, after all, do you prefer to md5hash pair in the database or just directly use it?
E.g.: select table.mycolumn from table where input="$input";
OR
select table.mycolumn from table where md5(table.input) = "' . md5($input) . "'
?
 
@Dereleased and some implementations don't include padding
 
@NikiC Other implementations, like .NET, will shit a brick if you don't have padding chars to keep the length a multiple of 4
 
6:53 PM
I've actually come across the padding problem before, and was just reading, the spec says it's required, so any correct implementation should include it ...
but I know in the real world they don't
 
@JoeWatkins IIRC the spec has a provision for certain applications stripping the padding
And I do remember that there was some specific case where base64 padding is indeed not used
 
@huncyrus I think if you search a bit then it is common knowlegde not to use md5
 
you're right, mail headers at least
 
use the password_hash and password_verify
 
Implementations MUST include appropriate pad characters at the end of
encoded data unless the specification referring to this document
explicitly states otherwise.
 
6:58 PM
Interesting question from SO. I worked up a demo. Why is the unix timestamp wrong?
 
@huncyrus actually neither, IMO. In the first case you should be using prepared statements besides whatever filtering you're using. The second case is just "expensive" as you're md5ing twice unnecessarily
 

« first day (2314 days earlier)      last day (2638 days later) »