« first day (2025 days earlier)      last day (2926 days later) » 

1:04 PM
guys :\ my cron keeps running at the wrong time on deployed environment, but works perfectly well locally. Anyone know what the deal with that would be?
 
need to reboot
caps going down for a few
 
@KarelG LOL omg
That one of pam killed me
 
 
hi all
 
@IbrahimAlkan Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
1:13 PM
o/
 
So i have a question but i dont know how to tell it...
Lets think about we have a html page with iframe
Can html javascript and in iframe javascript blocking each other ?
 
a js error in the iframe could
right?
 
so they are asyncronous ?
 
guys
 
my understanding is the iFrame consumes the url so if there is an js error wouldnt that stop the engine?
 
1:16 PM
var array = [][];

array[0][1] = "blabla";

alert(array[0][1]);
where is the problem ?
 
I have a website and there is too much thing changing in page with javascript and page some times lagging
 
@gtzinos you tried defining two arrays in a row, instead of a nested array
[][] is just [] followed by []
 
so how can i do it ?
 
so i thought maybe i can get some content in iframe for performance
 
[[]] maybe
 
1:17 PM
there are animates ajax loadings ETC
 
or [] and initialize it yourself
 
var array = [];
array[0] = [,"blabla"];
alert(array[0][1]);
:D
 
@SterlingArcher ^_~
 
@KarelG yes I'm happy, it was all tasty :P
but vegan food is healthy
 
@IbrahimAlkan Yes, the internal iFrame JavaScript can block the outer
For example, the parent's onload won't fire until all of the iframes fire theirs.
 
1:34 PM
so what can i do for performance in javascript ?
i mean for that situation
 
onload waits for iframes now?
since when?
 
Wait, are we talking about the frame loading, or the frame's DOM?
 
@rlemon Since always
@SterlingArcher DOM
@IbrahimAlkan Do you have control over the iframe?
 
Yes i am
 
Have the iframe load lazily
Starts blank, fires ready, then starts actually doing stuff
That won't block the parent's code that's under onload.
 
1:37 PM
Radiohead fans are freaking out so bad right now
 
hmm
so i have a socket connection
 
Radiohead's deleted their social media accounts and their website's blank (it faded away slowly)
 
and its changing too much area
and there is animates in page
when i get too much data or start to change too much thing my animate is stutter or somethings getting odd etc
actually i want to eleminate this
i think maybe iframing some content will work better but it seems its not a solution
 
@SomeGuy because this is the type of thing they do in anticipation of an unannounced album
Radiohead is weird that way
 
Haha yep
It's pretty hilarious seeing how cult-like their following is too
 
1:40 PM
isn't that most bands?
er, the ones that have been around that long
 
I can give page link if its not against rules
 
mongo is weird. how you gon import and call it json when you don't have valid json?
 
Not to bash radiohead specifically, but no doubt that it is all the work of a viral marketing campaign
 
anyone ?
 
@rlemon what does that mean?
@IbrahimAlkan Can you use some kind of debounce or throttle or lock to prevent it?
 
1:54 PM
guys
i would like to send multiple ajax request into a loop
but the responsed data are always the same
why ?
 
@corvid docs.mongodb.org/getting-started/node/import-data their primer dataset indicates some fucked up format is allowed. which after testing it does work.
{...}
{...}
{...}
is not valid json
 
not json i valid
 
@gtzinos Because it's an asynchronous operation. Try using Promise.all or Promise.map in order to run them in the correct way.
 
<- Valid Jason
3
 
      for(i = 0; i<selected_users.length; i++)
      {
          user_results_array[i] = String($("#questionnaire-members-dropdown option[value=" + selected_users[i] + "]").text());

          //users.push({ "id" : this.value });
          $.post(webRoot + "ban-user",
          {
            "user-id" : selected_users[i],
            "action-type" : action_type
          },
          function(data,status){
            if(status == "success")
            {
              alert(data);
             }
 
1:58 PM
guess cause it´s async
 
can you help me change with your way ?
 
@gtzinos yeah, I will show you in a pen really quick
 
Can someone helps ?
 
@Loktar god dammit
 
2:15 PM
-1
A: embed javascript in json

Praveen KumarI made a simple PHP Script that outputs JavaScript Code inside a JSON this way: <?php $arr = array( "text" => 'function alert() { console.log("Hey! How are you?"); }' ); die(json_encode($arr)); And the output I got is a Valid JSON: {"text":"function alert() {\n console.log...

Praveen is at it again
 
saw that a minute ago
 
Using MDL and Bootstrap together is possible?
 
@GandalftheWhite not really
 
Imagining UI is one thing and then putting hat in place is another
I am so bad at it
:l
 
What is MDL?
 
2:16 PM
Material Design Lite
Bootstrap like CSS engine
 
@ssube <3
 
@SterlingArcher and now they deleted the post.
 
@corvid so you try to map an array with an array of results ?
my urls are all the same
 
@MadaraUchiha ^ Praveen constantly deletes answers after 1 downvote.. is there anything that can be done about that? It seems like extreme rep farming
To the maaaaaaxxxx
 
lol, they deleted it after I flagged one of the comments, so that got auto approved
 
2:18 PM
@gtzinos I changed it a bit, but it's just the basic idea for controlling an asynchronous flow. What do you do with each result?
 
@SterlingArcher Unless they repost the answer in hopes of not getting downvotes again
They aren't doing anything wrong
Just talk to them.
 
@PraveenKumar ping
 
@MadaraUchiha You can't ban people for treating every other tag as a PHP question?
Surely there's a specific rule against that.
 
@ssube Does he do that often?
 
2:21 PM
@corvid each result is a code (0 => success 1=>error)
 
Not sure, but it is PHP. The US doesn't nuke Japan "often," but it was still kind of a big deal.
 
that's a ridiculous comparison
 
So... you just want to see if you can get the resource?
 
PHP is the language equivalent of a dirty bomb, guys.
 
2:22 PM
Oh omg... I read that as "every once and a while we nuke japan" and I was like wtf
@ssube don't hate! PHP7 is actually good!
 
@MadaraUchiha is there an answer ban? too many deletes of -voted answers?
 
Hate PHP developers, not the language :D
 
@rlemon Yes
 
kinda would be funny if 80K user got answer banned for rep farming and deleting -1 posts
 
@SterlingArcher the problems are with the language and 7 didn't do much.
 
2:23 PM
But an 80k something will never reach that.
 
@SterlingArcher you disgust me
 
why not? maybe lay one down forcibly as a point?
 
is php done and dusted?
 
@MadaraUchiha do you think it would be worth a meta post (not doxxing him) to point out the issue?
@GandalftheWhite PHP is one of the most popular server languages for websites last I heard
 
@SterlingArcher I feel like it's rare enough to not really be a problem
If you think differently, feel free.
 
2:24 PM
For some reason every PHP developer I met is super avid on using ONLY php. One guy I used to work for re-wrote an entire existing code-base (originally written in python) as php.
 
@SterlingArcher Because WordPress
 
@MadaraUchiha isn't the point of meta to make edge cases sound like big deals? :P
 
@SterlingArcher Not really. Java and C# are huge, just not as publicized.
PHP devs share their code and Java devs don't.
 
@ssube That.
 
2:24 PM
@MadaraUchiha well I see two on a single question -- you are in the position to actually check to see if it is a regular activity
 
@rlemon Link?
 
I've been using bleeding edge PHP and I've actually learned a few good things about it
 
@MadaraUchiha the one sterling is talking about and linked
 
Like PHP uses destructuring, which is cool, and building an API is actually easy
Not python easy, but still easy.
 
@rlemon one of those is just JS, though (bad JS, but still)
 
2:26 PM
@ssube the point isn't the answers, or the downvotes themselves, it is how often he nukes his answers if they are taken poorly.
 
Aside from the obvious, why don't you guys like PHP?
 
peer pressure
 
I don't like that it's too easy to write shit code -- but I don't know jack shit about performance or anything so that's about it
 
@SterlingArcher PHP's only advantage over anything else is that it's approachable.
 
You're approachable <3
 
2:27 PM
Don't get me wrong, I mained PHP for a long time, I know (or used to know) it inside out.
 
@SterlingArcher the stdlib is inconsistent
 
idk what the stdlib is
 
@SterlingArcher inconsistent behaviour and naming conventions. Everything about php is inconsistent, because a team of separate monkeys all threw their poo at it at the same time.
 
And PHP makes some hard beginner problems very easy
 
standard library
 
2:27 PM
But at the cost of costly scale and advanced stuff.
 
@ndugger what do you mean?
 
@SterlingArcher strtoupper vs bin2hex
@ssube Do you know why the naming is so inconsistent? cc @ndugger
 
why? no
!!afk standup
 
@MadaraUchiha some of the functions mirror posix, some c++, some seem random
I don't know if there's some specific reason why
 
Because back in the day, they didn't have a proper hashing function for function names, so they lazily used strlen as a hashing function
In order for there to be a relative equal distribution, they made the function names so that each length has ± the same number of functions.
 
2:29 PM
no
that is so utterly lazy
> Hey, so we're gonna sacrifice any usability or long-term value so we don't have to write a string hash.
 
I feel like that's a good, objective argument for the language being poorly designed (or not at all) and why you shouldn't use it.
 
It doesn't help that PHP started as... I think like a crud templating language? (correct me if I'm wrong)
 
@SterlingArcher That's exactly what PHP started as
 
Personal Home Page [tools]
ohhh the days
 
2:32 PM
was CRUD a thing back in the early 90s?
 
PHP is a good starter language
 
Anyways, every language has its pitfalls, but I think for the most part PHP's issues is the developers that jump in and don't know good practices
 
Many programmers are where they are today thanks to PHP
 
@MadaraUchiha I think Python is an equally good one, now.
 
@SterlingArcher same with js...
 
2:32 PM
It's installed everywhere.
 
@SterlingArcher Wasn't it originally made, at the very beginning, to make counters on old 90s websites?
 
@rlemon exactly!
@corvid yup!
I wouldn't be an engineer if it wasn't for PHP and PhantasyRPG
 
@rlemon The difference is that if you want to build web applications
 
And guest books
 
You have no choice but to use JavaScript
PHP has alternatives.
 
2:33 PM
@MadaraUchiha sure you do
 
@SterlingArcher Since when are you an engineer?
 
just no one will use them
 
@rlemon What alternatives do you have for JavaScript on the client-side?
 
@KendallFrey it's in my job title, so hush lol
 
And if you say asm I'll smack you.
 
2:34 PM
@KendallFrey He's an eyebrow engineer.
 
Dart!
@ssube LOL fuck off >:(
 
flash, java, everything done with http interactions
few more
1 min ago, by rlemon
just no one will use them
 
@SterlingArcher if you weren't an engineer, it would be |:( instead of >:(
 
@SterlingArcher >¦:)
 
@rlemon activeX
 
2:35 PM
^
 
I hate you all
/me goes to cri
 
activex was the best. It combined the usability of COM with the clarity of the web.
 
I told my GF about your brows
she's already making up jokes for when you visit
 
@SterlingArcher you act like we don't all do some brow maintenance
 
I don't like my forehead being an island above my face
so fuck yea I groom
 
2:37 PM
I'd look like a caveman after a month if I didn't clean up the middle
 
@ssube Yeah
Website wants to format your PC? No problem! Just use ActiveX!
 
so there are alternatives to js on the client, they just all suck :D
 
@rlemon It's not that they suck, writing a client in python or Java (lol) could potentially be better than writing in JavaScript
But as you said
 
well they suck for the same reason flash sucks
 
4 mins ago, by rlemon
1 min ago, by rlemon
just no one will use them
 
2:39 PM
I need to install an interpreter
no one will use them === they suck
 
@rlemon Not necessarily, depends on the purpose
 
be more pedantic.
the masses will not use them if you need to install something
proof in case: flash
 
@MadaraUchiha does it matter if those two deleted answers were on a question they voted to close?
 
@rlemon Flash was very widely used in the past, so did Java
They died out mainly because of security problems with the plugins
(And mobile)
 
@MadaraUchiha until js got capabilities and it was no longer required to install a plugin
 
2:41 PM
JS would have had a really hard time killing Flash.
But mobile offed it pretty quick
 
^
And Flash still exists for browser games
 
if they baked flash into mobile browsers (and Apple wasn't apple) flash would be alright.
@MadaraUchiha with a fraction of the market share
 
@rlemon Of browser games?
 
HTML5 games are being adopted a lot faster than I would have expected
 
Looks like it is not worth answering this question. It is doomed with downvoters. — Praveen Kumar 11 mins ago
 
2:42 PM
@rlemon I've yet to see good ones
 
answer adding PHP, get DVd, delete, answer with bad JS, DVd, delete, comment bitching, then close vote
that's gotta be against the rules
 
@rlemon @ssube you're talking to the man who discussed manscaping at the bar with a lady on several occasions. I'm not scared to talk about grooming lol
I just don't groom tha brows :(
 
It's okay, brow
3
 
pun of the day
 
well played
 
2:45 PM
@SterlingArcher mmkay bud. you wanna blow smoke go have a dart
 
is that british for go fuck yourself or something
 
@SterlingArcher you need to watch more Letterkenny
 
2:47 PM
@AwalGarg Go away
 
@MadaraUchiha It is not blackfriday... I don't play stupid 5yo pranks
 
@AwalGarg you'll get there in a few years
 
because you're a sad boy with no sense of humour
enjoy your heart attack at 31
 
Savage
 

« first day (2025 days earlier)      last day (2926 days later) »