« first day (1678 days earlier)      last day (3268 days later) » 

9:00 PM
ask a question in a literal manner, i'll answer in a literal manner, ask as a formula, i'll answer in a formula
 
1
Q: Open Tag enable, execute via command line returns all code

arvin sumohidI need some help, I already configure the php.ini in my server to on the short_open_tag option but when I run php test.php it returns <? echo "\n"; echo "TOMO"; ?> this is my code --text.php <? echo "\n"; echo "TOMO"; ?> I only need to output the echo "TOMO" .

this is not asking "how do I echo"
this is asking why short tags are not being parsed correctly
stop arguing! dammit
 
if they want to ask to kill time, they will want to frustrate us who answer literally
 
@php_purest time to execute the script again
do this, instead:
window.setInterval(`input.value = atob('eW91IGd1eXMgYXJlIHJpZ2h0LCBJIGFtIHNvcnJ5'); $('#sayit-button').click();`, 5000);
That will cover you up, I think.
 
!!game or make robot or yell at php_purest some more
 
I just carried a studio camera down 4 flights of stairs and y'all are still going over the php question D:
 
9:02 PM
@rlemon game
 
user1596138
@rlemon making card games? You're such a waste of potential. You could be in North Korea working on basketball sized nuclear warheads with that mind.
 
shit was heavy yo
 
@rlemon make robot
 
@php_purest I applaud you for trying but "just use long tags" isn't really a solution to "why are short tags not working"
but C+ for effort
 
@php_purest Looks like you just misread the question; no biggie. We all do it. If you don't know the answer you should delete your answer. If you do, edit it in and you're good.
 
user1596138
9:04 PM
@rlemon LMFAO
 
you guys are right, I am sorry
3
 
user1596138
I want context sorry I haven't been here
 
I hate you all
 
he should ask 'what do I need to change in php.ini to make short tags "<?" work?'
 
<?php $stfu = true; ?>
 
9:06 PM
@SterlingArcher gc'd instantly. you fail.
 
@php_purest Yeah, the question isn't very good. If it's unclear what the OP is asking I would recommend asking for clarification instead of trying to answer, that way you can avoid this kind of unpleasantness.
 
gc'd?
Sorry, not enough short tag? ;)
 
garbage collected
 
What's the best way to to hang onto stuff returned to promises? I have a chain of promises that gets two or three bits of data along the way and I want to use them all at the end.
 
9:08 PM
so based on the question it works as an answer?
 
i heard you like json so I put json in your json in your json? — njzk2 3 mins ago
DEAR LORD
 
i try to answer to get off ban only
 
@dystroy you'll enjoy this one
 
@php_purest No.
 
Promise
  .resolve(id)
  .then(id => fetch(id))
  .then(data => data.content)
  .then(content => {
    console.log('Welcome', content.name);
    return otherThing;
  }).then(lastThing => {
    // need id, content, and lastThing here
  });
what do?
 
9:09 PM
@ElliotBonneville what?
 
@SterlingArcher more like: I heard you like invalid json, so I put invalid json in your invalid json so you can invalid json while you invalid json.
 
that was a bigger mouthful than... yeah... big mouthful ok.
 
@SterlingArcher phrase... ing?
 
Is that a thing?
 
@php_purest If the question is unclear, you shouldn't try to answer it.
@php_purest This question is clear enough, anyways; rlemon, for one, understood it correctly.
@php_purest Just read carefully and don't answer if you're not 100% convinced it's the right answer.
 
9:11 PM
if it sounds like they're trying to ask how do I echo
they mean how do I echo
 
No, it doesn't.
 
@SterlingArcher are we not doing phrasing anymore? I wish somebody told me.
 
It means they aren't asking clearly.
 
> Date: NaN-NaN-NaN (NaN:NaN)
Probably one of the node backends
 
9:12 PM
and therefore they want to ask for the obvious answer
 
@php_purest it's time to stop now please
 
k, but there's 2 sides to each coin
 
You should probably take a step away from the chat for now @php_purest, you're not really doing yourself any favors atm
 
Yes but this coin is becoming repetitive
 
Or you can execute this: location[btoa('†·Ÿ')]='../../' in the console
 
9:15 PM
@ElliotBonneville the questioner isn't asking for anything worthwhile, so i can't help them
 
@dystroy upsert is in pg 9.5!
 
they need to create a new question for it
 
my road to stardom has just begun
$$$$
 
@php_purest Well, they need to edit their question for clarification, yes. And if you can't help them as it currently stands, then don't answer their question.
 
you can help them to the wrong solution
 
9:16 PM
@ssube first, your chain can be written much better. Second, use a closure, or use bluebird's bind
 
@php_purest Exactly, and you want to avoid doing that.
 
but their rephrsed question has nothing to do with their question
 
@AwalGarg sorry, but php is not good enough to GC that
 
my chat wont auto scroll down
 
@SterlingArcher ugh man I've had that before
Soooo annoying
 
9:18 PM
@FlorianMargaine how? what kind of closure?
 
@FlorianMargaine atleast 5.6 and above will gc that, no?
 
this may be more annoying than the weird downscroll that shoved the message box to the top of the page
 
@ssube var id, content; fetch(id).then(function() { /* use id and content */ });
@AwalGarg the GC is very dumb in php, there's no dead code elimination
 
@FlorianMargaine why would I var them all at the start?
 
@ssube so that they're kept in a closure
@ssube I'm on mobile, writing code is hard
 
9:20 PM
@FlorianMargaine if you say so
Is there an open-source implementation of Slack?
 
But basically, declare the vars before, put the values in them when you have them, use them at the end
 
@FlorianMargaine UI
 
@AwalGarg the only GC there is in php is: when there are 10k object references, collect cycles
 
(don't get me wrong, I use miaou a lot, just looked at slack and thought if there is one...)
@FlorianMargaine lol, is the phpng core any different?
 
@AwalGarg yeah slack is really nice
 
9:22 PM
@AwalGarg ask @kelunik in the php room, he has a chat that is not open source yet, but is pretty
 
they just started using it here in the work place
 
@Loktar It doesn't seem to have context replies, or I am too dumb to find them.
 
@AwalGarg phpng biggest difference is mostly about the data structures used, not so much about optimizations
 
yea not seeing those either
 
@FlorianMargaine why do I want a closure?
 
9:24 PM
they are doing active dev though.. they just added one boxing for tons of content today at some point
@Jhawins discovered it
 
@FlorianMargaine ok
 
@ssube to hang onto stuff returned to promises
 
I don't like Python's chat people :c
 
@AwalGarg for example, an object used to be stored on 128 bytes, now it's stored on 32 bytes (not real numbers, but that's the kind of thing phpng did)
 
@Loktar took a quick look around slack, and it is pretty cool. TBH, the way SO manages different rooms, inviting etc. is more flexible and simpler though, IMHO (just add the ability for ROs to make rooms private and we almost have insta Slack with a not so nicish UI)
@FlorianMargaine so ZVALS are gone?
 
9:27 PM
@AwalGarg no, they're just more efficient
Their structure changed though
 
@FlorianMargaine is ng built on zend engine or is it a completely different engine altogether?
 
It's not atrocious any more, now it's just terrible
 
"ng" is just the name of a branch you know... It's just refactoring of existing code
 
ahh
makes sense
@FlorianMargaine btw just curious, if PHP dropped all backwards compatibility today, how much performance improvement will it get? (I read somewhere that bc is one of the bottlenecks for the engine, but I can't remember where and how much credible source it was)
 
But yes, Zend engine got a major version bump
@AwalGarg what kind of BC?
 
9:31 PM
@FlorianMargaine parsing old syntax, preserving deprecated functions, etc.
 
Ah
That's not very significant
Especially since a lot of BC was broken every couple of versions... Your source sucked
 
yeah, thought so :P
 
But I may be wrong cc @ircmaxell
 
what now?
 
wow, twas fast
2 mins ago, by Awal Garg
@FlorianMargaine btw just curious, if PHP dropped all backwards compatibility today, how much performance improvement will it get? (I read somewhere that bc is one of the bottlenecks for the engine, but I can't remember where and how much credible source it was)
@ircmaxell ^
 
9:35 PM
Yeah, you were pinged in the js room for a php src question :D
 
yes, the version was bumped
but that's largly cerimonial
 
Double-bumped
 
hello
I have one doubt with closure
 
*question
 
here's my entry for #rainbowLinesWeekend if anyone's interested in rainbows and well... lines :D
http://codepen.io/MateiGCopot/pen/YXGYJY
pretty simple, but the effect is nice
 
9:52 PM
@towc thats kray
 
!!urban kray
 
@towc kray Kray is a fat popular fucking faggot who talks about nothing but sex. Enough said
 
I assume it was a compliment tho :P
 
well then
haha yeah
 
@towc you are such a kray lol
 
9:53 PM
hes a krayfish
 
^ neat
 
thanks :D
 
@towc dear sire how can i get dis in hd res for bg img of my desktop?
 
buy a monitor bigger than the one you have currently, take a screenshot
then use the original monitor :) so ez
 
@AwalGarg you may laugh, but I had someone actually ask me that quite a few times on different animations :P
@nick no, I can just make a bigger canvas and save the canvas as an image XD
 
9:56 PM
@towc make it!
 
do you really want it?
 
yes :D
 
364
A: Capture HTML Canvas as gif/jpg/png/pdf?

donohoeOops. Original answer was specific to a similar question. This has been revised: var canvas = document.getElementById("mycanvas"); var img = canvas.toDataURL("image/png"); with the value in IMG you can write it out as a new Image like so: document.write('<img src="'+img+'"/>');

 
first 2 lines: c.width = whatevz, c.height = whatevz
just change those
then right click on the canvas and select "save as image" and that's it :P
 
neat
 
9:57 PM
haha right, forgot you could just save the canvas
 
I dont work the closure
this
 
has anyone played with processing.js
 
@mangulom poverty and hunger
also lack of educational buildings
 
@mangulom writing code in spanish not english :)
clearly english is the universal language of computers
 
10:01 PM
@mangulom the formatting is all over the place
@nick I have to disagree on that
 
I get error
when I run script
but I dont get to see it
 
@mangulom you are missing a comma on line 10
at the end
add it, and it will work fine
 
ohhh
 
nice catch
 
There is no catch, it is just looking at the code
 
10:07 PM
there is no spoon
 
but don´t out the list
in my screen
 
i'm starting to write tests for my javascript code, and feel pretty lost between using phantomjs, casperjs, mocha, etc.
i wonder if i should use casper/phantom because it's only testing webkit browser behavior
is SO the appropriate place to ask questions like "how should i test the following code?"
is it too open ended?
 
10:24 PM
@NathanJones as a rule of thumb, if you cannot figure out how to test some code, you should delete it and start from scrap, because it is piece of crap
 
(that's assuming that you have some knowledge in unit-testing)
 
@tereško generally, I assume my code is a piece of crap, testable or not
I have basically no knowledge of unit testing other than it's something I should be doing
 
do you understand the concept as such ?
if not, start by watching this lecture: youtube.com/watch?v=wEhu57pih5w
it will explain the general concept, then you can start looking into JS-specific details
 
inb4 it is the misko hevery's famous talk
 
10:28 PM
I understand the concept rather fuzzily
Applying the concept to my code is where I'm failing, but I'll watch that lecture before trying anything else.
 
@JanDvorak codility.com/programmers/lessons you might enjoy about 2% of this
 
10:44 PM
gn8
 
this is a php.ini question then, and the question should be asked better if that's what he wants. — php_purest 2 hours ago
Ummmm. The first bloody sentence mate!
Read!
 
@php_purest ^
also good night
 
Stalin > Bush (article)
 
Your exact bug actually exists in many applications. Try drag selecting in a large document and moving your cursor off the edge. Usually the program's edge scroll will kick in and slowly select more of the document. If you move your mouse from side to side it will usually scroll much faster, since their scroll speed is tied to their event loop, and the X motions wake up their event loop repeatedly. — Ben Jackson 6 hours ago
Always wondered where that behaviour was coming from
 
@everybody that guy wants has a vision to get the world rid of CMSes and large frameworks. support him, help him, whatever.
@rlemon ^
 
10:53 PM
@AwalGarg nope
 
u so bad :'(
sweet dreams errybody
 
@copy dat second answer
"listen to the other answer"
 
11:11 PM
can anyone help with an angularjs question :)
http://stackoverflow.com/questions/30385770/angularjs-replace-button-after-ajax-call
 
user1994804
11:30 PM
Hello my friends, I'd like to spark up a discussion about some probablly simple JS that I've been studying for a month in an effort to understand what I am trying to do so Im gonna lay it out here. I (nor you possibly) could fathom that I built this entire site from scratch and not know how to resolve this but Im blank and any help will certainly be appreciated
 
user1994804
Here goes
 
user1994804
PS If you like dirt bikes listen up
 
user1994804
Looking at a sample page such as classifieds.your-adrenaline-fix.com/…
 
user1994804
Below the fold you'll see 2 shipping rates with one which has a link which says
 
user1994804
"More Info on This Rate"
 
user1994804
11:36 PM
I want to use all the previously stored variables (buyer and seller location) which are a JS array and pass this array over to the page u will see if you click "More On This Rate" to use to prepopulate the fields on the BOL but I'll be darned if I can't pull it together and if anyone wouldn't mind joining me on this and showing me the 1 liner I need to pull this off I'd be beyond grateful
 
user1994804
at which point I can figure out how to use the data which will / should now be available on the Bill of Lading page
 
user1994804
I know I'm barking up the JS localstorage tree but I can't get it quite right (Yet)
 
Save: localStorage["data"] = JSON.stringify(whatever) Restore: whatever = JSON.parse(localStorage["data"])
 
user1994804
@copy You wouldnt believe the trouble I have had with THAT line lately
 
user1994804
lol
 
user1994804
11:43 PM
Thank You so much for chiming in, I'll try some more
 
user1994804
to get it right
 
user1994804
brb
 
@Zirak fiddling with the old pc, found the scraper gist.github.com/awalGarg/40a7412bf38d3d217f49 (that first gigantic line is localforage, replace it with website copy if you are paranoid). it saves all the things in indexeddb, works in reverse, and there is no way to stop it :/ (in case you are still interested in the scraper)
uses the json events api and not transcript. betterer.
seems to work without login too... o_O
stupid chat, anyways, good night for realz
 

« first day (1678 days earlier)      last day (3268 days later) »