« first day (1402 days earlier)      last day (3546 days later) » 

5:04 PM
 
@Fabien I can see my apartment and my office :-D
 
Any ideas how it was taken?
 
also, that picture is between 5 and 13 years old
@Fabien Helecopter, or airplane...
see the cluster of buildings just on the other side of the river in the upper right? (The tallest building on the right side of the river), I live about 1/4 mile to the right of that
 
@NikiC The vote being sandwiched is still weird, please move it
 
@ircmaxell Yes, rub it in our poor faces.
I'm kidding, you totally deserve it :P
 
5:10 PM
Is it still considered manhattan?
 
:-P
@Fabien no, Jersey City
 
If Sex and the City has taught me anything, it's that Manhattan > Jersey.
 
I'm more troubled with the first part of your sentence.
 
@webarto ?
Oh, @Fabien's sentance
 
About Fabien watching Sex and the City :P
 
5:13 PM
@Fabien there are pros and cons
 
I want to create a system to replace images so I have a form with multiple input files associated with one ID element in the DB each.
how can I associate the retrieved $_FILE with the modified image identified by its ID in the DB?
As I can only pass one single value in the input file...
I could rely on the order the inputs are submitted, but not sure if that would be the best or only option
 
emm .. wat
you mean like <input type="file" name="upload[13]" /> ?
 
@NikiC I don't think there's been a vote in recent history that I'd want to go through as much as this one.
+100000 internets to you.
 
@tereško but then how do you retrieve the upload[13] if you don't know which ID is inside [] ?
 
emm .. wat x2
 
5:18 PM
in PHP
how do you get the $_FILE['upload[13]'] if 13 is unkown
 
It would translate.
$_FILE['upload[$x]'] ?
 
what is unknown
 
I think that's how they taught us in school.
 
@Alvaro You would have an array of uploads
 
@tereško 13 would be the ID of that image in the DB, that's what you don't know when you get the $FILE input, you are just getting the value for the new image.
 
5:20 PM
@Alvaro please do var_dump($_FILES) after using the above mentioned input element and stop making shit up
 
@te
@tereško yeah right. :D
 
@Alvaro Oh, you should put separately what fields the form contains as a separate hidden field e.g. <input type='hidden' name='imageIDs' value='1,2,3,13,18,23' />. You can get that first, and then know what the other fields will be.
 
@Danack FTR, you can also do multiple <input type="hidden" name="id[]" value="{value}" />
<input type="hidden" name="id[]" value="1" />
<input type="hidden" name="id[]" value="2" />
<input type="hidden" name="id[]" value="3" />
 
Wouldn't image[13] be $_FILES['image'][13] sort of?
 
@webarto Should be. Wait... I dunno.
 
5:31 PM
who cares
when in doubt: var_dump()
 
@ircmaxell "I think we have to refuse that question"
 
the whole thing is painful
 
Yea, it's ... getting worse.
 
@ircmaxell hahahahah almost better than looking at a gathering of people from religion x
(almost) :P
 
5:34 PM
conference panels are tech support
 
We.. we'll take the card.
 
Le wild Stop appears.
 
That's awesome
 
@webarto HAMMERTIME
 
Also, I no longer need a calculator widget. If I need to do a sum, I open up the dev console on a random web page :p
 
5:41 PM
Hammertime indeed!
 
@AndreaFaulds about:blank -> -> begin client-side development
 
heh
@DanLugg I also use php or python on console sometimes
 
Yea, I php -r a lot of things.
 
@webarto nice
 
I use sapi/cli/php -r all the time when developing PHP
As in, the PHP runtime
Also I don't get the selfxss thing on Firefox
only Chrome
 
5:48 PM
friends don't let friends use firefox
 
Firefox is the best browser :(
 
iceweasel!
 
lynx!
 
definitely lynx
 
5:52 PM
Firefox > Chrome, screw Google
 
@ircmaxell that video killed all my will to even try minecraft again...
 
:-D
 
@AndreaFaulds Both of them have been screwing their browser up. It's just that firefox had more time for screwups. Chrome will get there though I am sure
 
Not that
Mozilla believe in the open web... mostly.
 
I prefer wget and looking at the raw markup!
 
5:54 PM
eih
 
@bwoebi wget? telnet port 80
 
@AndreaFaulds They can believe all they want, but if the product sucks more and more users will walk
 
@PeeHaa Firefox doesn't suck, it's better than Chrome in many places
 
pipe the markup through say! :)
 
5:56 PM
@salathe nope: it's busy reading a book right now
 
@Ocramius that's okay, say two things at once :)
 
@AndreaFaulds done
 
@NikiC Thanks, sorry for bugging you about it
 
@AndreaFaulds I switched the moment FF got to the huge slow memory hog it was / is
Also: BROWSER WARS!!!!!eeneeneenelf :-)
 
5:58 PM
@PeeHaa Hah, FF runs my app faster and more memory-efficiently than Chrome
Also Chrome is a huge memory hog...
 
@DanLugg why?
 
@NikiC Because of it's potential; it makes possible some features (that I'd like to see) that would've been otherwise impossible.
 
@JoeWatkins \o/
 
@ircmaxell That's pretty awesome.
 
6:06 PM
@MilesHughes It's misguided, by the way. Author has at least put a decent amount of work into it.
 
@DanLugg does that mean that you're after LINQ?
 
@NikiC *shifty-eyes* Mmmmmaybe.
I've got a weird obsession with seeing expression decomposition in PHP.
 
@AndreaFaulds :D I haven't touched people.php.net at all, fortunately.
 
@LeviMorrison hurt, but didn't fall over, and worked ...
 
6:17 PM
\o/
 
@NikiC It would be possible, correct? At least, closer to being possible. Since we don't have first-class expressions, we'd need to decompose closures, but it's still a step in the right direction.
 
Yes, it's possible
(Well, I don't know what expression decomposition is, but it sounds possible :D)
Only decomposition I know is partial fraction decomposition
 
Expression decomposition gave my head a picture of thousands of smiley faces, rotting away in a garbage dump.
 
6:25 PM
not much, relaxing, reading some code
 
@NikiC If we had "expressions" as a first class construct (facilitated through single-statement lambdas, like $x := $x * $x) the AST API would allow the traversal and transformation of them.
 
clone a remote repositery always failed with a 401 error in smart git
 
I mention single-statements, because typically that's the expectation, and that one wouldn't need to traverse a function.
 
@DanLugg so, I have that currently in my IR :-)
 
@ircmaxell Yea, I recall you dumping those :-)
 
6:27 PM
wasn't difficult at all to transform the AST into expressions...
a few parts are tricky
 
hi @Gordon do i need to add ssh key to clone a repositery from springloops to smartgit? it always fails with 401 error
 
@ircmaxell I honestly believe much of my desire to see first-class lambda expression constructs is because of syntactic brevity. They're unnecessary from a technical standpoint.
 
well, if you got to a CFG based compiler, then, no, they are necessary
 
@ircmaxell I don't know as much about compiler construction as I'd probably need to know to understand why.
 
CFG == control flow graph, basically an expression-by-expression graph
 
6:31 PM
@ircmaxell when I first saw it, my immediate thought was "they have no idea what that song is about"
 
@tereško yeah, same here
 
@ircmaxell ^^ Right, I know that. I meant, why would you need to disambiguate single-expression constructs from arbitrary functions?
 
... then again, it made me end up in this playlist
 
she sings it like she's happy, not she's depressed
 
46&2 is not really a sad song either
 
6:32 PM
@tereško ummm... it's a dark song, no?
@DanLugg well, for basic optimizations, you don't. But for things like constant propagation and common-subexpression-elimination, you do, since single-expression constructs are always idempotent, where as arbitrary functions are not always...
 
@ircmaxell the song is based on different theories from Carl Jung
 
or at least you need a way to pre-compute expressions, and determine idempotency
 
@ircmaxell Ah, gotcha. Decomposition really just needs the original expression(s) though, for the purpose of transformations. It's just code-as-data.
 
46 & 2 itself is allusion to the next stage in human development as Jung understood it
 
You don't want to optimize anything away.
 
6:35 PM
ans "stepping through my shadow" refers to Jung's description of human mind
 
The way I've always interpreted it is as someone struggling with depression and contemplating suicide, but deciding to push through it and open his eyes to the possibilities in front of him
 
In Jungian psychology, the shadow or "shadow aspect" may refer to (1) an unconscious aspect of the personality which the conscious ego does not identify in itself. Because one tends to reject or remain ignorant of the least desirable aspects of one's personality, the shadow is largely negative, or (2) the entirety of the unconscious, i.e., everything of which a person is not fully conscious. There are, however, positive aspects which may also remain hidden in one's shadow (especially in people with low self-esteem). Contrary to a Freudian definition of shadow, therefore, the Jungian shadow can...
 
actually, there is a quite good article on wikipedia which explains the basic themes of that song
 
what is in $_POST["img"]? is it really a valid image data? — bansi 13 hours ago
Oops.
0
Q: PHP Photo incorrect format

Destiny DawnI'm trying to upload a photo using a PHP HTTP Post but I'm getting the following error: Warning: imagecreatefromstring(): gd-jpeg: JPEG library reports unrecoverable error: in /home/randomma/public_html/RandomMash/Web Service/Main.php on line 205 Warning: imagecreatefromstring(): Passed data...

 
user895378
6:42 PM
@DaveRandom and @PeeHaa sorry for being awol last week. Sometimes I have to unplug. Totally forgot about the room11 online meetup though. Sorry I missed that :/
 
@rdlowrey I changed my Closure::call RFC, does it having the scope of the passed $newthis work for you?
 
@rdlowrey heheheh no worries man. As long as you don't go splat on us it is all fine :)
 
user895378
@AndreaFaulds Umm, gimme a bit to re-read and re-digest. I haven't been at the computer at all in the last five days or so. Wading through a backlog of stuff right now. I will ping you with thoughts later (though you may be asleep by the time I do it from this side of the pond).
 
I have the same problem with uploading photos that I did yesterday
 
OK :)
 
user895378
6:48 PM
Also, did somebody with a high-profile say something about artax? It got way more stars last week on github for some reason. Maybe if took more breaks my work would be more popular :)
 
Okay, now i'm more lost than ever.
 
@rdlowrey I'm always plugging your stuff, although I'm not what one would say high profile :P
What did you do the last week? Anything fun?
 
user895378
Yes. Girl-related. Made working at the computer seem somewhat ... unattractive ... by comparison.
 
@AndreaFaulds Replied.
 
@rdlowrey :-)
 
6:58 PM
@rdlowrey :D
Eventually I hope you hit the sweet spot where you find both options to be attractive (but in very different ways)
 
user895378
I should probably do more of that. After my other sister gets married next month I'll really be in the hot-seat from my mom in the "need a grandchild" department.
 
What's wrong with this?
SELECT a.a,a.b,a.c,
	a.d, b.a, b.b, b.c FROM
	a LEFT JOIN b ON a.a = a.b WHERE 'identity'
	IN (1,2,3,4,5,6) ORDER BY a.d DESC
 
Is that SQL?
 
the stupid names
 
7:05 PM
I keep getting Warning: oci_execute(): ORA-01722: invalid number
 
Your problem is Oracle. Please go shoot the database server in the face and try Postrgres instead.
 
@BDillan Yes, Oracle SQL
@Charles Unfortunately, i have no other option and must work with Oracle.
 
Ask a SO question?
 
Could you use $HTTP_RAW_POST_DATA to like $_POST?
 
I'll get downvoted for some stupid reason
 
7:07 PM
Hey guys, I am having an issue you probably all encountered before.

My server is located in Oregon and I am located in New York. How do I sync the clients time with the server time? Is it stupid to hold a session variable that extrapolates the client time via JS?
When I make server calls it is relative to the servers clock. I want it to be relative to my clock
 
@DemCodeLines identity is a literal, no? So 'identity' in (1,2,3,4,5,6) should be an error, since you're asking for a string comparing with an integer, no???
12
A: sql error "ORA-01722: invalid number"

BryceAtNetwork23An ORA-01722 error occurs when an attempt is made to convert a character string into a number, and the string cannot be converted into a number. Without seeing your table definition, it looks like you're trying to convert the numeric sequence at the end of your values list to a number, and the s...

first result on google...
 
@ircmaxell Well, for one, I change the field names here.
So those are not actually the field names, but I am aware of the restricted names that can't be used and that isn't the problem.
 
When a user posts a submission on my site a PHP script calls $now = new Datetime('now'); And puts it as a TIMESTAMP on the database but it still is the servers time
 
@BDillan y u no utc?
 
@DemCodeLines you're 100% sure? Because that sure looks like a string literal, which means it's not a field name, but a string, and it makes sense based on the error presented...
 
7:13 PM
$current_date = new DateTime('now', time());
$current_date = $current_date->format('Y-m-d H:i:s');?
date_default_timezone_set("UTC");
 
@ircmaxell It's actually 'tag' IN (1) ORDER BY...
 
Same issue ^
 
And 'tag' is an integer field, but then again, I could completely be misunderstanding the point you're trying to make.
 
Strong suggestion, NEVER use hostagator.
*hostgator.
 
@DemCodeLines dude, it's not a field, it's a string
try removing the quotes entirely
 
7:16 PM
I wrapped the numbers with single quotes and the error went away.
 
/me face-palms
/me head-desks
 
@BDillan What is the specific issue?
 
Wait, are we sure? Some databases treat certain types of quoted things as identifiers. ANSI SQL does double quotes as identifiers for example.
 
ok ok
 
@Charles single quotes are strings in this case
 
7:17 PM
@ircmaxell If you know this about Oracle I'll take your word for it.
 
@PeeHaa Getting users time via PHP
 
> A quoted identifier begins and ends with double quotation marks ("). If you name a schema object using a quoted identifier, then you must use the double quotation marks whenever you refer to that object.
 
user895378
@AndreaFaulds Looks good to me. Anything that avoids the unnecessary additional instantiation is a win from my perspective.
 
@ircmaxell Good'nuff, thanks
 
7:17 PM
@ircmaxell Same result as wrapping the numbers in single quotes. The error goes away, however the rows aren't actually returned.
 
@BDillan You cannot know the user's time using just php without the user providing it
 
whatever, I'm not going to argue
 
@ircmaxell is that to me?
 
.-.
Is it a bad idea to pass a users time via a SESSION variable?
 
2 mins ago, by PeeHaa
@BDillan You cannot know the user's time using just php without the user providing it
 
7:20 PM
OH MY GOD
 
You can only do some geolocation magic and guess it or ask the user to provide it or guess it using javascript
 
Here is the actual query unchanged:
 
Why is:

echo '<script type="text/javascript">
var x = new Date()
document.write(x)
</script>';

Considered a bad practice?
 
SELECT questions.id, questions.question, questions.author, questions.datetime, answers.answer, answers.usr, answers.ansdatetime FROM questions LEFT JOIN answers ON questions.id = answers.question WHERE tag IN (1,2,3,4,5,6) ORDER BY questions.datetime DESC
returns 0 rows
when it returned 5 in mysql
 
@BDillan You actually only need the timezone, not the actual date
 
7:23 PM
@tereško audio quality is abysmal...
 
@rdlowrey Ah, good. I was worried about it in case there might be a use case for someone where they need a different scope to the class $this has
 
@AndreaFaulds telnet? Write a kernel extension which directly hooks in at the ethernet layer.
 
@bwoebi Kernels? We don't need no stinkin' kernels!
 
So it turns out that even though I migrated the tables between servers and changed stuff from mysql to oracle, I forgot to add the necessary data in the tables, which explains why nothing was returning...
 
ok, so renting cars in one-direction in Argentina is expensive as balls...
 
ThW
7:32 PM
@BDillan yes, document.write() is bad practice.
 
$1000, just making it one-way...
$250 for the car, $1000 for the "drop off charge"
 
Re-open votes needed. Incorrectly closed question:stackoverflow.com/questions/25370277/…
 
@AndreaFaulds oh, true. We build our own little device to sent zeroes and ones. And use a lamp to display the response.
 
@bwoebi 3lowlevel5me, I just use a microcontroller
 
haha ;-D
 
user895378
7:34 PM
@ircmaxell lol sounds like the "lab fees" I paid for my english classes in college.
 
@DarylGill why is that incorrectly closed?
 
One question guys | Why Facebook Login Integration on Website does not work for private emails?
 
@ircmaxell Closely related to SQL Injection, more over an improperly formatted code
 
the reason the question exists is taht the code is vulnerable to SQLi. If it wasn't, the problem literally wouldn't exist
 
7:47 PM
wow, that question has a ton of FUD in it: stackoverflow.com/questions/25370277/insert-character-in-sql
 
7:59 PM
Man, I love NetBeans, but why the shit can't it get multi-line statement formatting correct?
 
@DarylGill While the question is not an exact duplicate, the answer demonstrates how to solve the problem.
 
return $expression1
    || $expression2
    || $expression3;
 
arg, got disconnected from freenode due to a netsplit
 
It always single-line's it, or effs up the indentation, or just does something stupid.
 
@DanLugg phpstorm also needs A LOT of tweaking there before it does it right
 
8:01 PM
phpstorm always getting my indent levels wrong is my only major complaint about it...
 
then again our codebase is weird and we outdent comments
 
That's one thing I like love about VS2010/2012's formatting algo; it seems to know when to and when not to format your shit.
For "Binary Expression Wrapping", if you choose "Never", it'll just single-line it. If you choose "Always" it does exactly that, and is terribly stupid.
$a
= $b
+ $c
- $d;
Like, fucking seriously?
 
@ircmaxell yeah =/
but I like the cover versions and the originals anyway
 
definitely
I plugged in that song into Google Play music, and created a radio station, and have been amazingly happy ever since
 
8:09 PM
Anyway, I think I will go and play some Deus Ex
(the first one)
 
@DanLugg NetBeans is slow :/
 
Maybe if you're running it on a toaster. It used to be bad, IIRC, but it's far better with 8.X
 
It is, but still feels kind of slowish
 
Meh, it might periodically hang, but I'd say that's because Java.
 
and it's not specifically targeted at PHP
universal IDE
 
8:14 PM
Yea, which I don't mind. You can do multi-environment dev in it.
It has good XSD modelling tools.
 
mronngsi
@rdlowrey no worries :-)
 
(just kidding!)
 
oh … you just were kidding :-/ It looks good. Better than current php.net.
 
...maybe you have it cached.
...or maybe your view of current php.net is just so low...
 
I assume it is mobile view… so shrinked window…
 
8:25 PM
Nah, I basically ripped out all the layout styling.
 
Headers still need a bit work, but for everything else, nice
^^
 
E_WAY_TOO_MANY_OPEN_BUGS
 
? Ocramius?
@bwoebi I ripped out all the IE stuff I could find too
 
@LeviMorrison That's progress!
 
@LeviMorrison random rant
 
8:28 PM
At least you have solved bugs ^^
 
@LeviMorrison no that just were the Not-A-Bug reports.
 
RESOLVE AS INVALID ALL ZEH THINGS!
 
Morning
 
9:01 PM
@PeeHaa lolwut
 
ThW
9:41 PM
libxml does some weird stuff
@ircmaxell got a google cardboard, too. It's awesome
 
@rdlowrey so.. I've landed on stream options needing to have a "family" (i.e. 2d structure), reason being that if you don't then each area of streams has to pay attention to not having any naming collisions
I'm currently using strings for keys, I'm too attached to that but I'm not sure there's any value in int constants, it's still just strings
@ThW It does, what specifically have you run into?
I really want xpath2 support, it's on my list of things to try and figure out, pretty sure it's a long way beyond me though
 
ThW
the 'default' namespace prefix
 
Oh? Not come across that one...
 
ThW
even if you have defined a namespace prefix for your default namespace (for attributes), libxml just changes it,but it really depends if the node is already appended and voodoo like that
 
@ThW Sorry what, it changes it by itself?
 
ThW
9:52 PM
yeah
 
Actually now you say that I vaguely remember having a wtf along those lines, I forget the specifics though
 
lolwut
There must be some work around for that
 
@ThW WAT
 
ThW
the fun thing is that sometimes it starts using that default prefix for elements, too.
 
10:00 PM
o.O
 
ThW
that broke the attribute ...
appending the element before adding the subnodes helps btw eval.in/private/d7493f97fed2c0
Yeah, all hail to the edge cases :-)
INeedMoreAlcohol
 
@ThW Pretty sure everyone here implements that
 
ThW
10:18 PM
changing the prefix is one thing, but removing it from an attribute is broken.
 
ThW
10:29 PM
I need to change the headline for FluentDOM
 
@rdlowrey The code:
$client = new \Artax\Client();
$result = $client->request("http://www.google.com");
echo "Result has type ". get_class($result);
 
@Danack Of type Future?
 
is giving the output: "Result has type After\Future". Is that something intended or a bork bork bork?
 
@Danack no, it's correct. Use ->wait() on $result.
That's mainly for async use why this returns a Promise.
 
10:35 PM
jup.
@Danack btw. if you get Future, make sure to update first your local clone…
 
@bwoebi I have. rdlowrey/artax => dev-master d0d48b1 and rdlowrey/acesync => v0.2.4
 
oh, I've confused something.
Promise is the interface, Future the class.
Sorry for that.
@Danack Everything is correct, you just always have to use ->wait() on the returned object if you want to fetch it in a synchronous way.
 
Oh, Future implements Promise
 
A few hours later:
 
I see, you had had some fun ;-D
 
ThW
10:50 PM
@Ocramius good work
 
I mostly did:
 
Hi every body, I need your help
I have this code

<?php
class Messenger extends WP_Widget
{
function Messenger()
{
$widget_ops = array('classname' => 'Messenger', 'description' => 'Displays messages for users' );
$this->WP_Widget('Messenger', 'Messenger', $widget_ops);
}

public function form($instance)
{
extract($instance);

?>
Title
<input class="widefat"
id="<?php echo $this->get_field_id('title') ?>"
name="<?php echo $this->get_field_name('title')?>"
value="<?php if(isset($title)) echo $title; ?>"
/>
<?php
}

public function update()
 
user895378
@Danack yeah what Bob said. Future implements the Promise interface
 
user895378
11:06 PM
Just call $future->wait() to synchronously block until the result is ready.
 
user895378
Note that if the request fails then the wait() call will throw the relevant exception.
 
user895378
@DaveRandom constant names for ints start to get long and annoying. I'm kind of fine with strings like family.option ... haven't given it tons of thought but that makes sense to me.
 
@rdlowrey Oooh yeh actually I like family.option
 
user895378
I haven't looked at your streams repo since last week. Will try to provide some feedback in the next couple days.
 
As long as it's easy enough for core devs to avoid naming collisions without having to look at every far reaching area of streams
@rdlowrey I've not done a lot of work on it tbh, and every time I come to it have a new perspective
I've dropped the GenericStream interface in favour of a base Stream class this evening, but I have to say that the inheritance is getting a bit insane, not sure how that's going to work out
class StreamPeerSocket extends StreamSocket implements ReadableStream, WriteableStream, EncryptableStream <-- that feels wrong, although it definitely does make sense
 
ThW
11:15 PM
good night
 
user895378
Makes sense to me.
 
user895378
@ThW 'night
 
11:29 PM
Oh @rdlowrey here's the other thing I've been kicking around in my head: the API for non-blocking streams (assuming a hidden libuv impl underneath) is fundamentally incompatible that that for blocking streams. As such, I'm wondering if the ability to change the blocking mode of a stream makes any sense, or whether non-blocking streams should be a different class hierarchy?
it's mostly that read()-like methods seem to conflict with an evented model
Food for thought, not expecting a response any time soon :-)
 
11:54 PM
@rdlowrey hey, welcome back :)
 
Should I restart the Clousre::call() vote already?
 
morning room
 
Hello guys, I hosted a project in a free hosting service for testing and I'm having an error when I try to access my project, "This webpage has a redirect loop." Has anyone had this error? Do you know where I should start looking for what is wrong?
 
@AndreaFaulds When was the last major edit made again? I recall seeing some clarity questions...
@Marby Pop open your browser's network inspector, set it to keep recording across pageloads, and watch what happens. Redirect loops are often going from URL A to URL B and then back again, and that'll be the first thing to check for.
 
@Charles I got rid of unbound scoped closures (the most controversial part) and made ::call use the given scope not longer after voting started and cancelled it
 
11:58 PM
@AndreaFaulds Might just want to announce that you think it's ready for voting again and see if anyone pipes up within a day or two, just in case...
really need to formalize how soon to put edited RFCs up for vote...
 
Thanks for your answer Charles. That option is in wich tab? Network, Timeline, Resources, ... ?
 
I wonder if setting a fixed time period is really a good idea, 2 weeks for initial discussion is too long for some things and too short for others
 
@Marby Network.
 

« first day (1402 days earlier)      last day (3546 days later) »