« first day (1822 days earlier)      last day (3119 days later) » 

1:00 AM
Morning's
 
 
3 hours later…
4:26 AM
hi
any one there?
 
4:38 AM
good morning
 
morning Orangepill
 
@samayo why is using a CMS better than rolling your own PHP for the backend?
 
5:23 AM
It's better than pi!
3.141592653589793115997963468544185161590576171875
hmmm, need more precision :/
I wonder why they wouldn't use a fixed size font to do that?
heh
 
I think I saw somewhere one page with pi which froze my chrome
 
hey
 
@SergeyTelshevsky Not hard to imagine. I think they've computed up to 12 trillion digits so far.
Or something like that.
 
why is <embed> not working in safari and says missing plugin
 
@Sherif I'd say the other way - you don't need much info to freeze chrome.
 
5:31 AM
It's probably the dev tools that freezes it.
 
last week I checked on linux, a tab with a google result page ate 400mB
 
The syntax highlighting and all that DOM stuff tends to take up quite a bit of CPU cycles.
 
um, but if they are closed?
 
It's not rendering the UI that's costly. Parsing a DOM can be expensive.
 
400MB google result page? Seriously?
 
5:33 AM
Although I'm pretty sure Chrome has a stream DOM parser.
 
It's down to 200 currently
dunno why
 
Who cares about memory. 400mb is nothing.
 
For a tab?
 
Buy more ram
 
I have 8GB
 
5:34 AM
That's not much these days.
 
Not too few too
 
No, but these days 16GB is almost necessary for any serious person.
Chrome is currently at ~2GB, but FF is at 3.5GB with fewer tabs open.
heh, memory optimizations my ass
Mozilla is thrifty when it comes to web cache too. They tend to keep a lot of the cache mmaped.
Whereas Chrome only stores the temporary cookies in memory and just dumps everything else to disk.
 
yeah, like Opera iirc
Anyway, I just can't understand how a page with links, almost no images and not too much dynamic stuff can eat 400mBs
 
I don't know about Opera. Don't use it much.
It's probably not. Have you actually profiled the memory or did you just look at top?
heh
;)
 
Fek, I was playing world of warcraft a few years ago on a machine with 750MB of memory
 
5:39 AM
Also whether you're running it on Windows or linux or OSX makes a difference.
 
as I have said, I'm on linux, and it's down to 200 currently
 
That's for a single thread?
 
ps aux|grep chrome and pmap <pid>
You'll probably see that a lot of that memory is just shared linked libraries
Which means it's not using nearly as much memory as you think.
virtual memory is weird. like that.
 
5:41 AM
will do it a bit later, not on linux currently
 
I thought you just said you were running Chrome on linux?
 
yeah, on my job, I'm off to a meeting :(
bb soon
 
@winresh24 I'm going to venture a wild and crazy guess that the plugin you're trying to embed is not installed in Safari.
 
@Sherif but it not showing anything to download
just keep on saying missing plugin
 
@winresh24 I guess you're forever stuck on this unsolvable mysterious enigma that cannot be unraveled :/
There's just no possible way to look at the HTML and figure out what plugin it's trying to embed in order to install it.
Sorry.
 
I don't know where Mozilla pulls these stats from, but I find this hard to believe areweslimyet.com
Unless I'm just doing something wrong here and/or lost all cognitive function overnight.
 
Abe
@Sherif doesn't that actually say that the memory consumption is increasing
 
@Abe Yea possibly. Although, evidently not by much. But who know how accurate any of this data really is. My understanding it's benchmarked by every release from the team responsible for memory optimizations in FF.
I'm sure somewhere in here it can be argued that memory consumption is reduced overall as new features are added, but I haven't bothered to dig that deep.
 
Abe
6:06 AM
have you guys tried electrolysis nightlies ?
 
FF's biggest problems have to do with memory leaks anyway.
@Abe Never even heard of it until now. What do you use this for?
 
Abe
it's a project that was started like 10 years ago and finally landed :P
it's multiprocess firefox
wil ship with firefox 45 or something
it is a huge improvement
 
Multiprocess firefox? You mean they just caught up to Chrome 3 years ago?
 
Abe
why 3 years ago?
 
> Chrome, 3 years ago
Multiprocess browser makes as much sense to me as multiprocess PHP, really. Just seems obvious.
I guess it wasn't obvious when they started working on netscape like 20 years ago, but whatever.
 
Abe
6:13 AM
yeah but since it's firefox it took 15 years to make
 
0
A: Has anyone got memcached to work on Laravel Homestead php7 box?

Joe WatkinsThe work on php-memcached for PHP7 is not yet complete, not all tests pass; You can use everything but JSON serialization, I think. There is no pecl support for PHP7, so right now you need to install extensions manually, like this: git clone https://github.com/php-memcached-dev/php-memcached cd...

me, saying things ...
morning all ...
 
Abe
it is a huge improvement though. but firefox is still not nearly as fast as chrome
 
morning
 
Abe
switching tabs takes ages sometimes. wonder why...
 
@Abe IIRC, someone had explained this to me before. FF has lots of memory fragmentation issues from legacy code that Chrome doesn't suffer from so it tends to run into places where the GC has to play catch up and that tends to cause of a lot of re-allocation, which is slow.
@JoeWatkins And mornin' :)
Memory management is hard stuffs :/
 
Abe
6:17 AM
@Sherif but i don't understand. till firefox 3.5 it was doing fine. i believe the problem is the new code, not the legacy one :P
 
Well, you don't tend to see the negative consequences of legacy code until it's coined "legacy"
 
Abe
eheh
to me the biggest problem is the renderer
 
Anyway, garbage collection is not always trivial, memory management is complicated, and technology always breaks. Another day another dollar...
 
Abe
when they switched to that third party whatever it is called svg renderer, it started performing shit
happened around firefox 4
cairo
 
cairo renders a fair amount of unix desktops and has done for more than a decade ... it's pretty stable stuff ...
 
6:21 AM
The things we use the web for today ... it's no wonder browsers haven't seen more problems.
 
Abe
@JoeWatkins but maybe it's not suited for a browser... frequent repaints / layer merging etc
 
I'm not buying it ...
 
Abe
is "i'm not buying it" an idiom for "i don't agree" :P
 
If Google proved anything it's that the one place where we really did need to "start over" was in the browser.
 
yeah
 
Abe
6:24 AM
reinvent the wheel, sometimes!
 
it won't be the lib, it could be misuse ...
 
I'm OK with reinventing the wheel when the current wheel just doesn't cut it for new terrain.
Clearly we've paved ways on the web that IE and older browser technology just wasn't meant for.
 
Abe
don't reinvent the wheel, they said #programming #programmers #dev #devs #developers #developer http://t.co/RiWgcHeDI6
 
reinvent != do any old crazy thing that's different
 
#hash #tag #hashtag #spam #hashspam #tagspam #hashtagspam
 
Abe
6:27 AM
@PaulCrovella #thatstwitter
laters. time to start working. i have float(Infinity) amount of things to do
 
posted on October 12, 2015 by nlecointre

/* by The coding love */

 
hello everyone
i've a problem. wish anyone can help ?
0
Q: php script facebook (#100) No permission to publish the video

kabiri'm trying to upload video on Facebook page using this code. I have added all the compulsory credentials to add video. but when i select video and click upload button it json request says you dont have permission to upload video. I tried to debug this problem but couldn't succeed. please help me ...

 
7:08 AM
mondays should really be forbidden by law.
 
the first 5 days after the weekend are always the hardest
 
true there should be atleast 2 weekend in a week
 
we could switch to venus' time ... we'd have ages to adjust to the idea that soon it's going to be monday ...
 
haha :D
 
@JoeWatkins How soon is soon?
 
7:22 AM
@Epodax read about venus, it is truly fucked, spins backwards, day longer than year ... somewhere between 142 and ~240 days in the answer ...
 
@JoeWatkins s/multi-threading //
 
yeah and that ... I'm not sure what it's for ...
 
7:42 AM
morning
 
morning
 
guys pls solve my problem
i'm working on my deadline
 
@kabir NO
@kabir you didn't really try very hard ...
0
Q: Uncaught OAuthException: (#100) Invalid parameter thrown while create event in facebook using graph api

DeeKayI am getting below error while trying to create event using graph api Fatal error: Uncaught OAuthException: (#100) Invalid parameter thrown in C:\xampp\htdocs\fb\base_facebook.php on line 1267 Can anybody help me on this. Below is my code:- <?php include_once("facebook.php"); define("FACEBO...

 
@kabir nice :)
 
@JoeWatkins i have seen this post b4. but its not helping me
my error is permission problem from facebook
 
8:02 AM
Arn't we al working on a deadline?
 
I don't really do deadline ...
 
@kabir if facebook insists you don't have permission to publish the video, what do you expect us to do about it exactly? maybe should be asking their support folk
 
the way the api manages exceptions doesn't really help the programmer very much ...
they are always thrown from the same place ...
silly ...
 
8:19 AM
@JoeWatkins I'm making progress with my ext. Tests passing mirrored. Still a long way to go though.
 
I'm still watching ... very cool ...
/me squishes last detectable race condition in pthreads v3
 
c'mon guys..
ok tell me how to get rid of "facebook sdk require php version 5.4 or higher" , but i cant upgrade php on my linux server
 
Shut your eyes really tight.
 
then you cannot use facebook's SDK
 
my php version is 5.3.29
 
8:25 AM
Mornognsd
 
The poor man's solution to fixing bugs.
 
@kabir why can't you upgrade?
 
because i'm not authorised
 
well, then tell your boss, that you cannot add facebooks functionality, because your server is outdated
 
he told me to find some other solution b4 deadline
 
8:30 AM
then use javascript SDK
or tell him that there is no solution to be found
 
u know how boses r ? u just cannot convince them
what i can do is try javascript sdk
 
no, that's not how it works
if you are hired as a professional, then your opinions on the professional subjects should be good enough
 
posted on October 12, 2015 by nlecointre

/* by Dimfacion */

 
developers.facebook.com/docs/javascript and go to javascript chat room
 
@kabir Part of your job is explaining to your boss how things work or why they won't work.
Upgrade your PHP version for security reasons alone
 
8:36 AM
the current php primary version is 5.6
in about 4 months it will become the "legacy version", when 7.0 is released
 
Explain all you want, but sometimes they still just say no. If you're not given the power to dictate an upgrade then there's not much you can do but speak your piece and make do with what you can.
 
.. and then you start looking for a new job
because that company will be going down soon enough
 
You'd be surprised.
 
Not to mention to be asked to code around requirements.
 
Good morning
 
8:43 AM
Morning Alma
 
o/
 
hello everyone
i need help for "magento"
anybody know ?
 
@PaulCrovella do you know about it ?
 
I don't know about it, no.
 
8:45 AM
you were given a link
 
@PaulCrovella I wouldn't books.google.com/…
I don't know about the rest of the world, but at least here, a culture of NO in the technology space is a disaster for that company.
 
magento is a color of sh*t, isn't it? (I'm not too strong in colors definitions)
 
@AlmaDo no, it's "more-pink shade of purple"
 
That's Magneto
 
moin new peepz
 
Morning.
 
Mornjoe
PHPH'ing this week?
 
9:16 AM
What can I do when I'm creating a CSV file from user data, and the user includes the delimiter in their values?
 
@Porlune Also tab delimited text > csv
 
Thanks Paul, unfortunately this is in javascript (I guess I should ask the other room, but I prefer this room).
Thank you PeeHaa :)
hmm, looks like open office is putting values in quotes when they conflict with a delimiter
 
@PaulCrovella trivia: I prefer SplFileObject over fputcsv/fgetcsv
 
@PeeHaa tab-delimited, or tab-separated?
 
9:23 AM
@salathe In this context same thing? But the actual term is tab delimited
 
isn't that the same thing?
 
@PeeHaa I R GUD ENGRISH :)
 
@Gordon I'll add that to the deck for Gordon Trivia night.
 
:D
 
anything else on the list yet?
 
9:25 AM
Nothing I can share in polite company.
 
Why do data don't show when I convert the
$dFrom = date('Y-m-d',strtotime($_GET['dFrom']));
$dTo = date('Y-m-d',strtotime($_GET['dTo']));
To
$dFrom = date('m-d-Y',strtotime($_GET['dFrom']));
$dTo = date('m-d-Y',strtotime($_GET['dTo']));
the date format on my database is Y-m-d
 
Recommendation: Use PHPs DateTime
 
@Gordon also: who the hell still works with csv files often enough to have a preference about this??
 
@PaulCrovella @Gordon does :)
 
ruined
 
9:33 AM
lots of marketing systems hand out csv databases still ... product db's and what not ...
I prefer not doing any of that and relying on IMPORT ...
php is too slow when the csv's get massive, and or are poor quality (lots of dups) ...
 
Yeah, INFILE is no fun either.
 
I have a spreadsheet on my website, and I want to be able to copy the values a user selects into their clipboard so that they can then paste it into excel or open office.
 
that's it, load data infile ...
thankfully don't have to deal with this any more ... so thankfully ...
 
I'm happy with it so far :)
 
must resist urge to reply
> Does it violate best practices to write a trait
yes
 
9:39 AM
Hello Everybody
I need an help
I've an PHP application
it has PHP core code. no cms or no framework
 
@ripa Remove your PHP application.
Problem solved.
I helped.
 
lol
 
But sometime it giving 503 error ....
 
so does anyone have any idea on this...
 
9:42 AM
What you've said is effectively "My car makes an odd noise sometimes, can you help?"
 
"it doesn't work"
 
Try narrowing down your problem
 
@ripa checkupdown.com/status/E503.html <== read that :-)
 
user5020521
may I ask you why is this index undefined?
 
user5020521
<?php
    //call the connection file
    require 'connessione.php';
    //errors enabled
    error_reporting(-1);
    ini_set('display_errors', 'On');
	$myId = intval($_POST['idRecord']);
    try {
		$dbh = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
        // set the PDO error mode to exception
        $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        $len = count($myId);
		$del = $dbh->prepare("DELETE FROM tagesroma WHERE id= '" . $myId . "'");
 
user5020521
9:44 AM
where the hell am I wrong?
 
"this" index.
 
$_POST['idRecord']
only index
 
@Riccardo990 Read about prepared statements
 
what line number is it having the error on?
 
Index undefined means that the index in the array being called isn't there.
So above the index 'idRecord'
is not being set BEFORE the script is being ran.
 
9:45 AM
308
Q: PHP: "Notice: Undefined variable" and "Notice: Undefined index"

Pekka 웃I am running a PHP script, and keep getting errors like: Undefined variable: user_location in C:\wamp\www\mypath\index.php on line 12 Line 12 looks like this: $greeting = "Hello, ".$user_name." from ".$user_location; What do these errors mean? Why do they appear all of a sudden? I used to u...

 
We cant retrieve user's email from twitter API is it?
 
@rlemon ping
 
use isset() to check if the value is set before trying to grab it.
 
user5020521
this is the error Undefined index: idRecord on line 7
 
Busy Monday aye.
 
9:46 AM
as @PeeHaa said, learn how to use prepared statements...
 
yah, so you aren't actually posting that name/value pair then.
 
user5020521
so the problem is within the prepared statement
 
Why so dark?
 
I'm glad I have that koala guy on my ignore list
 
@Riccardo990 no, read everything, start again ...
 
@Fabor those flood gates opened wide today
 
this is line 7:
$myId = intval($_POST['idRecord']);

idRecord isn't being posted. You can check this by dumping the header.
 
user5020521
I read@JoeWatkins now I know what to do
 
use var_dump($_POST); before calling idRecord and see if it's there.
100% sure it isn't :-)
wanna bet? ^^
 
9:47 AM
you can't be 100% sure of anything, that's irrational ...
 
user5020521
the hell you're right @MikeM.
 
user5020521
it's not there
 
the error already told you that @Riccardo990
 
pretty sure if you call idRecord returns an index undefined, it's not there ^^
 
could have been an index in another file ... stuff is included ...
 
user5020521
9:49 AM
I've just tried to dump it and the result is what you expected
 
we weren't told where the error was were we ?
 
He said line 7 of that file :P
 
user5020521
that's not all
 
oh did he, I failed to listen properly ...
 
3 mins ago, by Riccardo990
this is the error Undefined index: idRecord on line 7
 
user5020521
9:49 AM
I am attempting to pass a variable from ajax javascript to php
 
user5020521
so idRecord should be a parameter used in a js function
 
if it weren't so boring, maybe I'd listen properly ... I get frustrated when someone comes along and says what does "Error Type: quite clear error message on file:line" mean ...
 
@Riccardo990 I need to know something - is the error message you got unclear? Is there a way it can be improved to get its message across without needing help?
 
user5020521
@PaulCrovella I have been trying to solve it for days
 
What is your AJAX Call type:
 
9:51 AM
@JoeWatkins Aye. Mirror-care
 
@Riccardo990 That's not an answer to my question.
 
@JoeWatkins It is frustrating, simple google could have answered it.
 
user5020521
@MikeM. do you need to see the way the async request is made
 
user5020521
@PaulCrovella the answer is this all I wanna avoid is to piss you off
 
reading the message could have @MikeM.
 
9:52 AM
Indeed
WARNING JAVASCRIPT INCOMING!
 
user5020521
so might I ask you what to google?
 
@Riccardo990 just read the message in the error ...
 
$.ajax(
{
type: 'POST',
 
user5020521
the type is post
 
user5020521
I've told so in the request
 
user5020521
9:54 AM
and then in the open I have the url and the boolean async parameter set to true and then in the send I have the idRecord parameter
 
@Riccardo990 I'm not pissed, I'm genuinely curious. This question comes up so often from people we have a big fat canonical question & answer here to point people to. It's hard for me to understand as the message seems clear as day to me. So I'm trying to figure out where the disconnect is.
 
what did your var_dump return?
 
user5020521
this
 
user5020521
array(0) { }
 
yes you're pissed
 
9:55 AM
then nothing is being sent.
 
user5020521
this dum is set before the definition of that variable
 
user5020521
may I show you the way I try to send idRecord from JavaScript to Php?
 
user5020521
I won't show you a wall of code just one line
 
Show me the data: part
 
@Riccardo990 can you look at your browsers network request to see if it actually is POST?
 
user5020521
9:56 AM
ok man thank you
 
241
A: PHP Constants Containing Arrays?

AndreaSince PHP 5.6, you can just do this: <?php const DEFAULT_ROLES = array('guy', 'development team'); Or even: <?php const DEFAULT_ROLES = ['guy', 'development team']; Once PHP 7.0 is released (ETA November 2015), you'll finally be able to do this with define(), too: <?php define('DEFAULT_ROL...

 
user5020521
xmlhttp.open("POST", url, true);
xmlhttp.send("?idRecord=");
 
this answer, it's the gift that keeps on giving...
 
why the question mark?
 
user5020521
9:57 AM
I thought it was needed in order to send some
 
user5020521
hey I'm not using jQuery
 
user5020521
it's all pure javascript
 
user5020521
all the request is made in pure JavaScript
 
must resist urge to troll @Andrea and upvote answer with runkit in it ...
 
jquery is way eassier for ya, look into it :-)
 
9:58 AM
@JoeWatkins hahahaha
 
user5020521
since I'm a fucking beginner it should be clearer to me
 
it opens another world for you.
 
yup
 
user5020521
I'd like to handle it in pure js before and in jQuery later
 
jquery for beginner
 
9:59 AM
hmm
what if objects could have instance constants
 
Keep that fucking out, we don't need that kind of messages here :-)
 
like, having $foo->bar be a constant
 
user5020521
that kinda message is for myself
 
only doable once namespaces merged obvs
 
@Andrea if constant, why is it different for class/object ?
 
user5020521
9:59 AM
i'm just offending myself for being a beginner this is it
 

« first day (1822 days earlier)      last day (3119 days later) »