« first day (1777 days earlier)      last day (3163 days later) » 

12:01 AM
go for xeon if you like to run lots of VMs
 
good night
 
nn
 
But yeah, good idea
 
1:41 AM
that remnds me. VSCode has node debugging. I've been meaning to give that a try.
 
2:14 AM
> The word ampersand is a corruption of the phrase "and (&) per se and", meaning "and (the symbol &) intrinsically (is the word) and".
Today I learned
 
2:34 AM
Does MySQL have a thing where it alerts you of new rows?
 
2:45 AM
user image
3
Cute
 
@SomeKittens why can't you fire off an event in your DB interface when you add a row?
 
@ʞɔᴉN assume I have no control over the inserting code
 
ooh
 
3:04 AM
Great naming of the day: sndtimeo
 
 
1 hour later…
4:21 AM
0
Q: Calling JavaScript functions between script tag blocks

gsunnicI have two sets of <script> tag blocks containing JavaScript functions and have put them in priority orders. One of the tags contain a src to another external .js library file as shown below. <script src='libtest.js'> function helloworld() { alert('hello world'); } function ...

Downvoted the correct answer and event without comment
 
5:04 AM
This framwork looks awesome idangero.us/framework7/#.Vd_r2NOqqko
 
@Mr_Green Oh wow that does look awesome
 
yeah
 
HELLO ALL
 
@SonuSandeep Welcome to the JavaScript chat! Please review the room pseudo-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.
 
Maybe I can convince my boss we don't need individual native solutions for both platforms...
 
5:07 AM
jsfiddle.net/epeu8kcz
 
@DanieClawson I hope I could do the same :)
 
@SonuSandeep Might be better off asking over at chat.stackoverflow.com/rooms/29074
 
@SonuSandeep nothing is highlighting here even on chrome
Please explain the problem in detail and post the relevant code
 
Yeah, nothing highlights for me either.
 
5:44 AM
phantom lemon?
 
6:04 AM
Time for 2 flags
I flag 2 posts in th' morning, I flag 2 posts at night. I flag 2 posts that time of day, and then I feel allright :D I flag 2 posts when I am bored, and flag 2 posts when not. I flag 2 posts before I flag 2 posts, and then I flag 2 more! — Cerbrus 13 hours ago
 
hola
 
user3119231
7:06 AM
morning
 
user3119231
damn you @Cerbrus :D
 
user3119231
@FlorianMargaine Cerbrus was faster.
 
7:51 AM
@Cerbrus Links in chat doesn't have http:// in their text
You fail at life.
 
I can see rebecca.blackfriday below when I hover those links
 
@Mr_Green Always be suspicious of any and all links posted in this room on a friday.
 
haha
 
Also, always be suspicious of any and all requests which were starred
 
I actually first clicked it and then said the same thing to myself
 
@MadaraUchiha: Someone fell for it
I call that a success
 
@mido22 What the hell do I even close this as?
Or shall I just flag a mod?
 
@BenFortune guess, off-topic is the closest...
 
Sweet
 
8:14 AM
@rlemon That was great!
 
List of all awesome things: github.com/sindresorhus/awesome
 
Programming languages -> PHP... That list lost all it's credibility.
 
You should contribute it to make it better
 
<-- lazy
 
user3119231
Is there a mathematical function which lets you calculate x and y to display some divs in a "circle" ? something like pi * height/width
 
user3119231
8:23 AM
I want to create a loading indicator - circle style
 
@Maurize 2 * r * pi?
 
Math.PI ?
 
user3119231
@BenFortune I know. But how to calculate the position?
 
user3119231
let me draw example for you
 
Use an angle
Step the angle through 0 to 2*pi
 
8:26 AM
@BenFortune it tells about the conversion to HTML5. But what with ads which is already HTML5 ? would it be paused too ?
 
Calculate x and y using trig
 
@KarelG Nope, they're actively converting flash ads to HTML5
If they're still in flash, Chrome pauses it
@Maurize (x, y) = (r * cos(θ), r * sin(θ))
 
ah, that text you have placed is a bit confusing
 
user3119231
 
also, for a circle sector you need a radius and an angle
 
user3119231
8:27 AM
@BenFortune Thanks, this should make it :D
 
morning dudes!

I done a search for <script in this site and got 440 hits, this is scary
 
@Maurize There's a brilliant answer for it here
 
In that video, lea did something similar as your requirement
 
user3119231
@BenFortune wow, smart! Will read this. and @Mr_Green This is a woman. U serious she knows math? :P
 
@Maurize wow
 
8:29 AM
haha unfortunately, more than us
 
user3119231
joking my friend. :)
 
I know
 
I used to think I was good at maths, then I started A-levels
 
whats a good alternative to magento for a ecommerce site for millions of users?
 
@SuperUberDuper Drupal?
 
8:31 AM
@Maurize watch from around 30 mins in that video
 
No, I'm thinking CMS
I'd keep to magento tbh
 
I heard open cart, but will go with magento
 
opencart is fucking dire
 
user3119231
yeah my last company used magento. Is good to extend and stuff
 
opencart, zencart, prestashop
all terrible
 
8:33 AM
tbh, magento is not good but the only option which is near to good
 
I went through each of them, had to keep with prestashop
Which is just awful
 
i found that a poor joke
 
you going backward
 
magento is like the titanic
really is it our only option?
 
user3119231
Nah, you could create your own shop system
 
8:41 AM
we already have
 
why don't you use it then ?
 
we do, its just rather complex
 
You want something that's not shit, magento.
 
I like the platform amazon use
 
Good luck getting your hands on that :P
 
8:47 AM
Why can't the code work?
https://html.spec.whatwg.org/multipage/interaction.html#dnd
 
@ZhengquanBai Look at the console...
 
@BenFortune The console doesn't say anything
 
@ZhengquanBai It sure does, try dragging something.
 
@BenFortune really, nothing
 
1
Q: Typeahead custom item on top always

Please TeachI am implementing custom template of typeahead, but I would like to add a always on top suggestion, http://twitter.github.io/typeahead.js/examples/#custom-templates Like this, This is what I have tried so far, http://jsfiddle.net/tvp9Q/172/ Markup <div class="outer"> <input type="text...

I will give 50 reputation for a acceptable answer for above question as well after bounty time starts
 
8:53 AM
Is there anyway to prevent scripts loading on a page that you don't have access to, but report a 200 for each of those scripts?
 
@BenFortune Flash needs to die from the world.
 
@BenFortune Could you please help me?
 
@MadaraUchiha I would help you killing it
 
@ZhengquanBai Your DOM isn't ready.
Your function isn't available
 
@BenFortune I put scripts after the whole body.
 
8:58 AM
I have a doubt, is there any way to make internal request with nodejs, I have a use case where I have to do it, it is a get request, one way is using http.get(url, callback), I believe there must be a more efficent way
 
is there anyway to generate a tree of all the third party scripts that are used across a site?
 
@mido22 Too broad, can't you just access your model?
 
man working on this ie8 issues make me seem silly, but really I am a good coder
 
@SuperUberDuper Uhm, you can scan a HTML document for all script tags.
 
it takes ages to fix these bugs, must be %60 of my well paid time
 
9:01 AM
@SuperUberDuper But then all dynamic injected scripts aren't there yet :P
 
right
 
@BenFortune I am just looking for an idea, use case: you get one request in api, with data as an array of x get requests to other direct api, my api would make n collect the results for all, aggregate them and respond
I can easily do it with a http.get(url, ..) but thought there must be a more efficient way to it, since all the urls are gonna hit the same server anyway.
 
some sites implements open source script libraries or frameworks like jQuery
it the source is on a different server
just scan all documents for <script> elements and statements which imports scripts
 
"Just scanning" for statements that import scripts is really, REALLY complicated.
 
@KarelG Good luck with that
 
9:08 AM
you don't have to scan libraries ... only your own documents
shell script on server ?
 
what can you add to a page in8 that is going bat@£$@£ crazy
to help debug, firefox lite didn't help
I wonder if the is a version of chromium for low performance computers
 
my wallet is happy
 
@KarelG twitches
 
9:17 AM
I wonder if there is a safe version of chromium that would make the IT dept happy that like to LOCK down ie8
 
i have that as bookmark because i sometimes have to check backwards compatibility. ... i didn't understand the upper level management.
i argued that it's not reasonable, but they said that my team should do that when he asks to verify the backwards "compatibility"
 
i microsoft would just go away
@MadaraUchiha what was it you said about sanity + ie8 + ..
2 out of 3 aint bad??
there must be a locked down version of chrome for corporates that runs on ancient computers.. no??
 
Why bow and arrows?
 
9:33 AM
@SuperUberDuper No, they use IE
 
@JanDvorak : florian's input reminded me of something i have seen before. Maybe you would like it more: pic
it would suit you well
 
I kinda like the bow and arrows, actually
 
no one knows nothing about autosuggetions no one ever used them ??
 
@PleaseTeach There might be someone who knows nothing about autosuggestions, why?
 
I am badly stuck with this question, I tried using few libraries nothing works for me
1
Q: Typeahead custom item on top always

Please TeachI am implementing custom template of typeahead, but I would like to add a always on top suggestion, http://twitter.github.io/typeahead.js/examples/#custom-templates Like this, This is what I have tried so far, http://jsfiddle.net/tvp9Q/172/ Markup <div class="outer"> <input type="text...

I tried typeahead, selectize, select2, choose
nothing exactly works for me
and I am not able to hack any successfully
 
9:39 AM
your question is not a question
you don't say what you want to achieve. You only have shown your effort
 
@KarelG sorry but i think i did that
i am going to check if i can improve question
changed title to this - "Drop down with a custom template + search + Add new (always on top)"
i am open to any library
 
why would firebug lite give this issue when clicking scripts:
Access to restricted URI denied.
 
@SuperUberDuper did you ever heard about google ? in some countries it's pronounced as Gooooogleeeeee
!! tell@SuperUberDuper google Access to restricted URI denied.
 
@PleaseTeach Command access does not exist. (note that /tell works on commands, it's not an echo.)
@PleaseTeach That didn't make much sense. Use the !!/help command to learn more.
 
!!/help
 
9:54 AM
@PleaseTeach That didn't make much sense. Maybe you meant: help
@PleaseTeach Information on interacting with me can be found at this page
 
@PleaseTeach hey did I ask you
 
@PleaseTeach That didn't make much sense. Use the !!/help command to learn more.
 
@SuperUberDuper oh sorry, who did you asked then ?
 
user3119231
	search.onkeydown = function(e){
		console.log(search.value);
	}
 
user3119231
returns only last value?
 
user3119231
9:59 AM
btw it is an input
 
Is... that a question?
 
user3119231
No, forget it. Got it.
 
oh my days
 
I'm desperate enough to start spamming chat with a question (with rep!):
2
Q: Push message for Windows Phone (WNS): Blocked channel URL

Roel van UdenI have a Windows Phone application running on a Windows Phone 8.1 device, and I am using Windows Push Notification Services (WNS) to deliver a push message to the device. Delivering push messages has worked for approximately 8 days, until I received WNS headers in the responses similar to these: ...

Seriously needs more attention
 
10:15 AM
bounty it
 
It is.
 
@RoelvanUden reached limits ?
 
Still only ~20 views with 2 upvotes. Nobody gives a shit about Windows, I figured as much, but the amount of response in that question is just... staggering.
 
@SuperUberDuper I feel your pain! I am stuck with IE8 too!
 
10:18 AM
@moonweazel Welcome to the JavaScript chat! Please review the room pseudo-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.
 
@moonweazel you just entered this room and already read something from the top history and even able to reply to it, Wow
 
@moonweazel yeah but the money is worth it, companies pay the big bucks
as they dont want to spent millions upgrading hardware
 
@PleaseTeach - that a good thing? @SuperUberDuper totally agree! we might be getting IE11 soonish which would be awesome!
 
lucky u
@RoelvanUden have an upvote
 
@SuperUberDuper it has taken awhile to even get to this point. when we upgraded from IE6 to IE8 - it was a total headache! We needed IE8 due to getting sharepoint 2010 but a load of legacy stuff wouldn't run on IE8! i think that the same is going to happen this time!
 
10:23 AM
@SuperUberDuper Who's u?
 
@moonweazel no that sounds fishy to em...
@JanDvorak fake account
@JanDvorak to me seems like moonweazel is his proxy account too...
 
ie8 to 10 is easier than ie6 to ie10
 
@PleaseTeach why fishy? i scrolled up to see what was being discussed and IE8 is a hate of mine.
 
@moonweazel in couple of seconds ? lol
 
@PleaseTeach i am also my own person and not a proxy or bot!
@PleaseTeach i also read quite quickly!
 
10:25 AM
@PleaseTeach How do you know how long it took him to read it?
 
@PleaseTeach the welcome message only comes up once someone speaks, if that's what you're basing it off...?
 
are there any songs about ie8
 
@phenomnomnominal he was agreeing to me as well, he didn't said anything :L
 
yesterday I had 3 windows vms running
 
@PleaseTeachi wouldn't say agreeing; more stating a point :)
@SuperUberDuper IE8-er Boi? A take on Sk8er Boi maybe?
 
10:41 AM
in chrome what is the best way to block a script?
 
GOOD MORNING
 
user3119231
so I have the problem that I get an error near console.log(match.length). Can't figure out why it does not work...
 
user3119231
(function(){
	var keys = ["business", "unit"];
	var search = document.getElementById("searchbar");
	search.onkeyup = function(e){
		input = search.value.toLowerCase().trim();
		values = input.split("");
		searchElement = 0;
		searchMatch = 0;
		for (var i = 0; i < keys.length; i++){
			for (var v = 0; v < values.length; v++){
					var match = keys[i].match(values[v]);
					console.log(match.length);
				if (match.length > searchMatch){
					searchMatch = match.length;
					searchElement = keys[i];
 
user3119231
I think this is self explaining
 
user3119231
"TypeError: match is null"
 
10:45 AM
@SuperUberDuper adblock
@Maurize Indeed. It is self-explaining. Match is null.
 
user3119231
@JanDvorak And I just want to know why?
 
!!tell maurize mdn match
 
user3119231
And there we are again Mr. RegEx
 
i giveup on JS
 
11:00 AM
@PleaseTeach Your loss. :)
 
what would you think of $600 a day for supporting ie8?
 
I'll take it.
I'll only work 8 hours/week though.
 
not 35?
 
I'll do it for tree fiddy
 
11:20 AM
 
@SuperUberDuper support like what ? feeding it with milk ?
I can do that
well am already developing for it
 
would you support ie6 for $1000 a day?
 
@SuperUberDuper depends on what support means...
 
git the site working
as per requirements
 
If you are lonely, dim all lights and put on a horror-movie. After a while it won’t feel like you are alone anymore.
4
 
11:25 AM
so according to dev.modern.ie/ie6countdown China would be the best place to start if you did want to support IE6 sites.
1000 USD would be a good wage for that but can you image the butt ache in having to sort out IE6!
 
@KendallFrey That's genius! :D
 
hi anybody there
 
@SunilPachlangia Welcome to the JavaScript chat! Please review the room pseudo-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.
 
Alright. Time to fix all the things I wrote when I was retarded last year
5
 
@SuperUberDuper Absolutely! I'd work with any ancient technology provided you'd pay me $1000/day. THATS A MASSIVE AMOUNT TO GET PER DAY. :P
 
11:28 AM
what about $850?
lowest bidder for ie6 please
 
10 Shekels
 
@SuperUberDuper what are the requirements though
 
One monkey patch down! 26 to go!
killme
 
@SuperUberDuper you are under arrested for modlesting ie-6
 
10/10 consistency past self
 
11:32 AM
theoretical
 
there is any way to move php to javascript development for a developer
 
@Cereal ._.
 
@BenFortune Agreed
why are all the functions prefixed with an underscore!?
 
@ShailendraSharma Did you mean move variables or arrays from PHP to javascript?
 
...are they private?
 
11:35 AM
@BenFortune They sure are
 
no from php developer to javascript developer
 
But that's not the js convention
 
@ShailendraSharma phpjs.org
disclaimer: it's a joke, please don't do this
 
I monkey patched a startsWith function for a single use in the entire project
wtf self
 
i know how stuff work in javascript , but my relevant experience is in php, what i suppose to do to get a job in javascript
 
11:38 AM
Fake it til you make it
 
Been learning/using JS for just over a year now
 
eek
 
I'm pretty sure all my code is bad
 
it's Friday, and Rebecca owns your soul.
 
11:39 AM
@KendallFrey eh?
ah! i get that now!
 
I haven't written coffeescript in so long. This is so weird
 
Oi, Rebecca, I've already split my soul into waaay too many pieces but clicking "Accept" on those terms and conditions. Congrats, you've gotten one of many tiny snippets of my soul.
Hah.
 
@Cerbrus That sounds like something Tom Riddle would do.
 
I'd satan her backseat if you know what I mean
 
11:50 AM
@KendallFrey I knew it!
 
i want to get an index of an array that isn't the first element
and came up with Math.floor((Math.random() * (points.length - 1)) + 1)
is that the best approach? :s
points being the array
 
@Cereal Is there much difference in coffee and ES6 now? Is there any actual reason to still use coffee?
 
@RoelvanUden : wns is just not used often. I have passed your question to a co-worker of our company's branch which does win phone applications.
 
@AaronHarding points[1]
;)
@BenFortune No idea
 
@KarelG Thanks man! I appreciate it a lot!
 
12:03 PM
he's the only in our company doing win phone
 
@Cereal Tried googling it, the only results are articles on how to migrate from coffee to ES6
 
@BenFortune If you like the syntax of coffee, it's much nicer to use.
If you don't mind either way, you'd use ES5~7.
If you have a fetish for brackets.. well.. coffee is not a good thing to write.
 
does this room supports welcome animations ?

When I come in, I want to you guys to see some animations like there's in wrestling WWE
 
@Mathematics WWE?
 
HAHAHAHAHAHno.
 
12:07 PM
World Wrestling Entertainment?
 
Yes
 
WWE is just fake as Trump's hair
 
@KarelG Pretty sure people watch it for the storylines
 
@KarelG ok animations like UFC then ?
 
Drama for guys or something
 
12:08 PM
"storylines" IMO
 
@BenFortune Poor lady
 
@BenFortune haha
who is champ? :D
 
@KarelG Please tell me the Undertaker is your archnemesis
 
12:21 PM
i have to google with what you mean with "the undertaker" ....
never heard of him, so my answer is certainly "no"
 
AND HIS NAME IS JOHN CENA
 
user3119231
was wondering if something like setTimeout(paused = false) is possible=
 
user3119231
is there something like this?
 
The first time I watched it, I laughed so hard my nose started bleeding
 
@BenFortune that was one of the few funny prank calls I've come across so far, haha
 
12:23 PM
@KarelG do u even wwe bruh
 
@Maurize Never tried as what you are trying to do. I use a function. According to the doc it is not recommended.
off // watching movie
 
@KarelG This, it uses eval to execute the code
@Maurize It'd have to be setTimeout('paused = false', ...)
But don't.
 
user3119231
@BenFortune oki doki
 
12:51 PM
What the shit
 
Use:
setTimeout(function() {
    paused = false;
}, ...);
 
@Cereal mirror.co.uk
why are you reading that ):
 
I followed a link
 
fair enough :c
:p
 
user3119231
how about:
 
user3119231
12:55 PM
sx = 0;
sy = 0;
window.onscroll = function(e){
	if (Math.random() > 0.9){
		sx = e.pageX;
		sy = e.pageY;

	}
	scroll(sx, sy);
}
 
MaaaaaAAaaaAAaAAaate
 
Best prank
 

« first day (1777 days earlier)      last day (3163 days later) »