« first day (1944 days earlier)      last day (2987 days later) » 

6:04 PM
its quiet here... WHY????
 
@GourabNag Because he just found another bug in PHP. We're all rethinking our choices in programming languages right now
 
:P PHP is awesome as it is... :P
 
@PaulCrovella Looks like the last definition wins. I suppose it makes some sort of perverted sense. Well, it's PHP, so yeah.
 
@Charles That's how JSON works, tho. JS also takes the last definition. The catch with PHP is that it turns "" into "_empty_" which is one of those gotchas in coding
 
Yeah, the _empty_ thing is just ... what...
 
Wes
6:18 PM
@PaulCrovella #fail :P
 
could've thrown some null bytes in to really fuck with people, I guess
 
6:34 PM
@NikiC okay, that's a great idea then
 
@PaulCrovella WAT the fuck
@Andrea inorite
 
evenin'
 
enin @Ekink
 
Hiiii
 
@FlorianMargaine you have a moment?
 
6:38 PM
I'm tired of writing too much code for creating a simple website. I was thinking about using Drupal. Anyone knows about it?
 
e'nin
 
no?
 
@user3002233 that's a funny train of thoughts.
 
@FélixGagnon-Grenier what do you mean?
 
6:42 PM
if my problem is I want to write less code to create a simple (what's that? a one html page?) website, I'm not sure I'd use heavy handed full featured frameworks like drupal
 
@Gordon he's using regex to tokenize, not to parse html per se
@PeeHaa not really, but shoot
 
@FlorianMargaine sure that you can't parse HTML with regex?
 
@FlorianMargaine Do you have some simple JS project somewhere which is not crap and which I can use to glance over on how to not write crap JS without drowning in a huge library?
 
@FélixGagnon-Grenier not that simple! i mean, many people create a good, simple website with a cms like wordpress. they change it a little bit and then post and ... work with it. that seems simple. but it's not if someone wanted to write it from scratch, with PHP.
I think i'm just moaning!
 
6:50 PM
Welp, I just got laid off.
If anyone wants to hire a senior PHP dev, remote style, hit me up.
4
 
Expected or surprise?
 
lol that featured first comment
 
Why? Who do they think can manage that legacy code base now?
 
That sucks.@Charles
 
@Danack I've smelled it coming for a while, but today was a surprise.
@PeeHaa Nobody. They're screwed. I've agreed to do some contract consulting stuff for them if needed in the future, but I doubt I'll be touching that codebase.
 
6:53 PM
Wow
 
They've been doing a bunch of business-centric departmental reorg stuff. I suspect they tired of the remote aspect.
They haven't really embraced it as much as other departments have.
meh, afk, need to walk this off.
 
Well FWIW. I always thought you deserved better than the horrors stories I have seen from you
 
Who is unemployed here?
good
 
@PeeHaa All legacy codebases are horrible. The differences are just in what makes them horrible.
 
Being unemployed is good?
 
7:01 PM
@BobNocraz no. it's good that nobody answered to that question.
 
Ah, okay
 
Just because no one answered doesn't mean there aren't unemployed/funemployed people here.
 
@jbafford I can just ask!
 
Why are images uploaded via mobile not appearing in the proper orientation with this code? pastebin.com/b42qejKp
 
7:12 PM
 
Maybe the mobile is held at the wrong orientation? Haven't looked at code yet
 
@PeeHaa Epic road rage fail
 
@BobNocraz potentially. I know that iPhone/Android save pictures as landscape and then add exif data that make them appear as portrait when viewing
 
That laughter is just price less
 
Which the PHP upload doesn't see, which is why i'm trying to use a class that is supposed to correct the Exif orientation; a var_dump shows that the Exif is being read, but my method of changing the orientation via image processing commands doesn't seem to be working
I want to upload the image, rotate it, and then process it further (by adding text)
 
7:24 PM
@YamiMedina "doesn't seem to be working" - You mean it sits at home eating doritos and playing Xbox? If you hope for anyone to help you, describing what you are seeing in place of the expected result would be a good idea.
 
@Charles hm, how did he get his @php.net I wonder
 
@Leigh Dunno, but he's insane so who knows. I mean, in addition to the fraud at Mt Gox, he wrote both SSH and DNS servers in PHP.
 
@Danack when I upload the image via mobile phone, it is rotated improperly.
 
@PeeHaa sad how some things are now apps and apps only
 
That said, the leaked code from Mt Gox was also horrifying...
 
7:25 PM
Looks like PECL stuff
proctitle and wddx
 
@YamiMedina Do you think describing it as "improperly" is clear to anyone else?
 
@Danack maybe not, let me upload a visual example
 
No - just describe it clearly.
 
@Machavity pfff… there just will be a jump sometime when carbon nanotubes are production ready… :-D
 
@bwoebi But not in 2 years :P
 
7:27 PM
no. 3. =D
 
This is what I mean; the left is what it looks like on my phone, the right side is what the output ends up being
It's off by 90 degrees I think?
 
IBM has actually made 7nm chips... they just can't mass produce them
 
@YamiMedina so what is the exif orientation set to when that happens?
 
@Danack according to my var_dump, the exif orientation is 6
 
@bwoebi Maybe nanotubes will help increase the speed of processors... Personally, I'd put my money on more cores and specialized cores, the way we see GPUs doing computationally intensive tasks directed by the CPU.
 
7:30 PM
@YamiMedina Which seems correct when looking at your image
Just rotate it 90 degrees
 
What happens when you don't rotate it at all?
 
But that'd take developers learning how to parallelize more tasks... :P Not easy.
 
@BobNocraz the image looks the same. it's as if it was never manipulated.
 
I wonder how much penalty there is on x86_64 CPUs due to the 8086/8088 BC baggage.
 
@YamiMedina its not only off by 90 degrees. it also looks like a … penis?!
 
7:31 PM
That's was what I was thinking, but was afraid to say :)
 
@PeeHaa I am rotating it, but it doesn't seem to be rotating pastebin.com/b42qejKp
 
You are rotating it how?
 
Lol @Gordon I thought the same on my phone screen
 
@Gordon lmao I was trying to make a simple face to show something that is easy to tell when it's rotated wrong
 
@PeeHaa I hate to say it but I thought the same thing lol
 
7:32 PM
@PeeHaa let's hope I still have some mod creds left to get away with it ;)
 
@YamiMedina You say you are rotating, but that image penis tells another story
 
@YamiMedina either your code isn't being run - or something else is happening that is making the result be unexpected.
 
The pastebin shows how i'm trying to rotate it
 
No it does not
 
I'm using the WideImage library to add text to the image after it is properly rotated
@PeeHa I thought that's what the switch function execute was doing?
 
7:33 PM
the pastebin doesn't show the 'execute' being called, and I suspect it isn't being called.
 
if the orientation is a certain value, do this, etc..
 
What mr @Danack said
 
You're probably right...I thought you called it with the class, like so $image->exifOrient($ort)->saveToFile($imageWithText);
 
That should be easy to find out
 
let me try
 
7:35 PM
By the looks of it you just have some random class somewhere in a file and that's it
 
@YamiMedina you really ought to learn to debug your code by stepping through it with a debugger. That will show you what it is actually doing, rather than what you hope it is doing.
 
@Danack are there any PHP debuggers you recommend?
 
Even an echo should give you info
 
@YamiMedina yeah - PHPStorm with Xdebug youtube.com/watch?v=LUTolQw8K9A
 
okay thanks
I tried $image->execute($ort)->saveToFile($imageWithText); and it said "Fatal error: uncaught exception with message Can't load Execute"
["Orientation"] is int(6), as I found out before
 
7:38 PM
When internals is discussing a new feature
Oh damnit chat you suck
> Failed to upload image, please try again!
There a new style gif
 
@Charles hit me up florian@platform.sh I may have something... no guarantee
 
@PeeHaa err... ask in the js room, I haven't done js in a while
 
opinion based too broad\
ugh. I'll just try to get JS in here instead :P
@rlemon git over here
 
wat
 
7:42 PM
@FlorianMargaine Will do, many thanks.
 
56 mins ago, by PeeHaa
@FlorianMargaine Do you have some simple JS project somewhere which is not crap and which I can use to glance over on how to not write crap JS without drowning in a huge library?
 
ha! you want my advice over florians?
 
He failed me
 
opens github, looks at people I follow
 
waiting patiently
 
7:45 PM
thank you guys for your help! i'll download PHPstorm and Xdebug and debug that way. :)
 
yea I got nothing
well, specific
you could read through TJ's code, and Raynos's code
both is well received, so is probably good?
 
Any not too overwhelmingly large repo you suggest?
 
are you just looking for a js style guide?
 
I think I am looking more for a "how to structure a project / lib" kind of thing
 
8:27 PM
@PeeHaa I guess github.com/ralt/pastie is a better contender
@Charles we're an all-remote team, so this side isn't an issue. The issue might be more around what you do/want to do :-)
 
@FlorianMargaine Yeah. We'll chat. The service you guys provides looks interesting. I'm typing up a small thing now, my head is still whirling and I'd need a bit to get centered.
 
@Charles sure, you don't need to do anything right now, feel free to get yourself together
 
There. OKay, lunch.
 
@FlorianMargaine Yeah that could actually work. tnx
 
9:09 PM
@Charles I hope I didn't sound too sales-y :P
 
9:40 PM
ugh neither sublime nor atom let me open a 180mb sql dump
 
@Ekin vim/emacs to the rescue
probably vim though
 
yep
though sublime never let me down on this on linux, on win7 it always does
 
9:59 PM
@Machavity I didn't gain the impression there was supposed to be some massive disparity, but it looks like less of one than I thought
 
may I ask a wordpress question?
 
@DaveRandom oh christ
 
jises
 
@jbafford good advice generally
@bwoebi fuck it, writing a PHP-to-JavaScript compiler
 
Because JavaScript All The Things!
 
10:02 PM
because I'll be damned if I'm using JS directly
and I don't like TypeScript
what should I name it
I already took ElePHPants Love Coffee for something much shittier
 
PHPScript
 
OOH I KNOW
Elephas maximus sondaicus. or rather, just sondaicus
Google it ;)
The Javan elephant (Elephas maximus sondaicus) was a critically endangered subspecies of the Asian elephant native to the island of Java with the last surviving members found on the island of Borneo after they were introduced there, saving the subspecies from extinction. It is often considered a synonym of Elephas maximus sumatranus, the Sumatran elephant. == See also == Borneo elephant Elephas hysudrindicus == References... ==
 
That's not obscure at all ;P
 
@Andrea anything in particular about typescript? I keep meaning to dig into it, but haven't had much chance
 
My apprentice just patched php-src to accept <?shit. Should I be worried?
 
10:06 PM
@Ocramius I'll write a PSR at once
@PaulCrovella I don't know, it's just... I guess I don't like it because it's still JavaScript at the end of the day
 
And writing PHP and converting to JavaScript is better?
 
maybe it's just because the website is blue and therefore depressing
@jbafford Somehow it bothers me less
 
If you really want to do a translation thing, PHP to Web Assembly might be interesting.
 
not at present
currently it'd be like compiling PHP to C
except with worse tooling
 
:)
 
Hmm
Compiling will be easier if I assume nothing ever changes types
I'm sure that's a safe assumption...
 
it is, if you can detect it
@Ocramius no, you should be proud
 
Another assumption I want to make is that it doesn't matter if some floats magically become integers
Which is safe under PHP 7's strict type checks at least
that way I can just use plain JS Numbers all the time
 
well, that's a problem with PHP -> JS. Different semantics on integers. (JavaScript doesn't have them.)
 
JS does have integer operations, though ^^
function is_int(n) {
    return ((n|0) === n);
}
^ this is my idea
 
10:20 PM
@jbafford you can make them (e.g. |0)
yeah, what @Andrea said
 
well, it has integer operations, but it doesn't have integer storage.
 
@FlorianMargaine well, you get a float which has been converted to a 32-bit integer and back :)
@jbafford exactly
 
So once you get outside of ±2^53, you have a lossy translation.
 
<?php declare(strict_types=1);
namespace ajf\Sondaicus;

// ...or...

<?php declare(strict_types=1);

namespace ajf\Sondaicus;
which should I do?
 
I'd do the latter
I always put a blank line between <?php and whatever comes after it.
 
10:24 PM
a reasonable approach
 
10:34 PM
shit, I'm about to use goto
 
@PaulCrovella having to "go to" is perfectly natural, Paul.
 
There's fewer reasons to use goto in PHP, but there are still some cases where it's handy.
 
it's my first parser... well, right now lexer, but I'm sure the parser will get some too :/
 
lexers are fun :D
 
oof. Almost certainly a parser and lexer's going to have gotos, if it's doing anything complicated at all.
 
10:38 PM
though honestly you should just use regexes and be done
 
hard to regex a stream
 
the first time I did that, I didn't know anything about theory and ended up writing a lexer and parser together... it went quickly unmaintainable
 
heh
 
@FlorianMargaine ditto
except I also did it in C
 
I don't really know anything about theory either, just read the wiki on lexical analysis... decided to do scanning and tokenization in one pass though, gonna kick a token stream to the parser
 
11:13 PM
I love this
 
11:35 PM
wait uh
cute as this name is, I shouldn't reinvent the wheel yet again
I should work on @ircmaxell's Recki-CT
 
@Andrea no, php-compiler
 
@ircmaxell oh god another compiler
 
:)
built using similar techniques, on a far more robust tooling
 
more robust?
@ircmaxell beautiful commit message: github.com/ircmaxell/php-types/commit/…
oooh
PECL backend
 
11:52 PM
yup
 
just leaving this here caltech.edu/gwave
 
so we can potentially see past the cosmic microwave background... that's pretty friggin' neat
 

« first day (1944 days earlier)      last day (2987 days later) »