« first day (1809 days earlier)      last day (3155 days later) » 

12:00 AM
Hmmm spread operator
[...nodes].forEach
that's v.nice
 
12:16 AM
@towc grats
16th place for mobile not bad at all
 
12:34 AM
Riot ruined Fiora... the bastards.
 
1:23 AM
Is Fiora the HP CEO who is running for president? When was there a riot?
Do you mean in Ferguson?
 
1:50 AM
Hi All, I would like to ask a question. Does the Jquery compatible with Samsung Galaxy S2?
 
@NurWafiqa 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.
 
@CapricaSix Sorry, may you explain?
My question is it not suitable?
 
2:01 AM
Does javascript communicate with DOM via CSS technology only(for ex getelementbyid())?
 
nice work, google: Google Search: react.js size I asked for the size, and got it.
ohh, i see. it pulled that value from the wikipedia sidebar.
 
you thought it achieved consciousness?
 
2:15 AM
@overexchange not necessarily; childNodes, parentNode, nextSibling, etc. However, yeah, most of how you'll target the dom is via an HTML ID, a classname, etc.
 
2:31 AM
ok
html id?
you mean ID selector?
Does Responsive Wen Design Fundamentals and Responsive Images totally depend on CSS?
 
yes.
 
ok
Is this the best resource to go thru CSS before applying it?
 
MDN is a good resource, yes..
 
thank you
 
Has anyone on here ever connected up to a PostgreSQL server?
 
2:36 AM
i think there is nothing much to learn about html elements unless you apply it in some application
so am not going thru html tut before hand
 
yes, html elements just describe the structure, the css describes the appearance and the js describes the behavior
 
I think having thorough knowledge of JS and CSS would help in writing better web code
 
Also important is to gain experience, usually by writing shitty code and learning from your mistakes.
 
I swear some asshole keeps following my questions and downvoting them regardless of what I ask
 
2:40 AM
code snippets, yes am doing that, specially with CSS layouts
 
MDN is like a dictionary. It doesn't make you a competent writer. Writing does.
 
It also helps to read a lot of code too... :)
 
@Luggage yes I understand that, for sure.
 
@Luggage So, what are you working on these days? Just curious...
 
@asolar Do I know you?
 
2:41 AM
@overexchange How about you? I'm kinda curious what others are doing...
 
oops
 
LOL... not really. I'm on here sometimes.. not that often...
 
Ohh. You just asked like you were catching up.
 
Well, I was curious what your working on etc... idea wise...
 
tech-wise i work with postgres / node.js / redis on the backend
knockout.js on the forntned
 
2:42 AM
aah.
Haven't done much with libraries... I usually write most of it myself... :)
Any particular problems your working on?
 
I gave resignation in May, to realign my technical interest towards web technology, today I have an interview scheduled.
 
@overexchange Impressive... getting interviews like that after leaving?
 
after leaving? Is it a sin?
 
no idea... what are you interested in?
 
In my case, agile framework did not let me think about my career roadmap, so I had to wake up one day for thinking about my career rather than employer targets
 
2:47 AM
Yeah, agile is fun!
 
At some point of time, monthly salary is less important than self retrospection
ya fun for mgrs
 
really? why is that?? I've learned a lot from working with others... it helps sometimes...
 
idiots are those who get surrendered to agile frameworks, one had to understand why mgmt introduced agile framework on a technician. It is the technician who actually takes a load of this framework.
If one is a mgr, he would ignore my msg
 
what's your beef with agile?
 
@Luggage I'm also working with postgresql... Its been difficult with some setup... my php code doesn't connect properly... and I would like to understand a clear way to sync cookies with a SQL DB.
 
2:50 AM
Are you talking about agile development or some 'framework'?
 
agile planning for day to day work
 
ah
 
@rism have you read the original Manifesto?
 
@overexchange Don't stress too much about who is in charge of who... that kinda make you into that very person that you complain about...
 
@SomeKittens no.
 
2:52 AM
First line:
> Individuals and interactions over processes and tools
So the term "Agile process" is an oxymoron
 
"do what works, free love"
 
@asolar make you into that person? My director had a chat on offering a mgr position to me 4 years back, I replied saying, let me be a good and honest guy till the day I work in software market. money is not important for me. I can manage to be a beggar.
 
@overexchange Sure, you select the element via a selector, but ID's and Classnames are HTML attributes, not CSS features. CSS just happens to be able to select via them.
 
I support these principles agilemanifesto.org/principles.html
 
CSS selectors are a query language to the DOM.
 
2:55 AM
@overexchange Good points... however, just remember as you get older sometimes family and kids are more important then debating over who is in charge... just saying.
 
@asolar Let me tell you a real story!!! Once upon a time there was a CIRCUS owner in kolkata(INDIA), who had 10 lions and 7 elephants, Indian government has banned on using animal in CIRCUS, so CIRCUS owner could not afford the expense to feed(meat) lions. CIRCUS owner has transferred these 10 lions to Bengal(INDIA) forest. Out of 10, 7 lions died as wild dogs attacked them for food. Did you ever hear about dog attacking lion? so, tell why such situation occured?
 
@Luggage Yeah, if anything, the big problem with agile is that it's put together by smart, proactive engineers who only work with other smart, proactive engineers.
bit of rose-tinted glasses.
 
it occured because India is a backwards, messed up place.
 
@overexchange Well... first off I'm vegetarian...
 
So you don't understand stories involving other creatures that eat meat?
 
@overexchange no it occurred because the animals were captive in the first place.
 
Actually, its kinda difficult for me to understand why people would eat meat.
 
that called progress IMHO not backwards
 
because it's delicious
 
Actually, most of the best tasting food isn't meat... just saying...
 
3:03 AM
because it's delicious, full of protein and nutrients, fills you up, delicious, etc.
 
@Nick This situation occured because these 10 circus lions do not have an habit to hunt and prey since it was long time they stayed in CIRCUS envi, because they were getting ready made meat from CIRCUS owner. They went weak in the forest and could not have the real lion instincts, so wild dogs took the opportunity....
 
regardless, India is a backwards and messed up place.
 
Actually India is pretty interesting...
 
@overexchange is one scrum away from shooting up a mall.
 
@Nick logically the same situation would occur in Minneapolis
 
3:05 AM
@asolar wait, you're arguing that one of the most subjective things of all time (taste) is actually objective?
 
@asolar we get enough Indians in here that tell us how India is... It's pretty messed up
 
we literally call things "a matter of taste" to indicate they're subjective
 
@overexchange Sure, but India is still backwards and messed up
 
could be
 
Well, vegetarian food is basically more complicated and tastes better in my view...
 
3:06 AM
wat
 
@asolar yeah, "I like X better" is fine
 
More complicated, even though you limit the ingredients? That's the opposite of the truth
 
more ingredients are usually used in any dish, even though not all ingredients are valida anymore.
 
wa
t
 
Its not really limiting ... its removing the bad ingredients namely meat since the whole idea of meat is just bad... ;P
 
3:08 AM
so... it's limiting
 
the matter of fact, this analogy was shared with because of this msg chat.stackoverflow.com/transcript/message/25988894#25988894 not sure, if somebody compared a kind of technician with circus lion
 
try it out for yourself.. get back to me?
 
I've had vegetarian food
it's limiting to non-meat based foods.
 
also known as 'food'.
 
@asolar aaaaand now you're back to confusing subjective/objective again
do we need to define them for you?
 
3:09 AM
I'm not saying it's a bad thing, but you seem confused on what the words 'complicated' and 'limiting' mean
 
@overexchange Well, don't be surprised if you become the same person you dislike... its best to like everyone... and realize that if you where in their shoes you would maybe do the same... we are all human.
 
we are all human and made of meat
 
I'm not.
I'm a love robot.
 
I'm a plant-based organism. I'm anti-vegetarianism.
 
(honestly... this is about javascript... its just very theoretically related) JavaScript was kinda a joke language...
 
3:10 AM
and I'm a mormon
 
@overexchange analogy? So you're saying agile is like the Indian governments stance on circus animals?
 
just kidding
I'm scientologist
 
you're a joke language.
 
php?
 
Well, I think a lot of people don't realize things...
 
3:11 AM
You're right. We're all ignorant.
 
I am made of meat, ok.
 
@Luggage Look... I like JavaScript... however, I made fun of it back in the day... and you start to realize this as you get older...
 
and wool.
 
clearly, unless we give up meat and go vegetarian, we're ignorant about javascript
 
I realized the opposite. I hated Js in the past.
then I leanred to write good js
 
3:12 AM
javascript > meat
 
@Luggage I think your getting a bit overconfident...
 
And wool. 🐑 🐑 🐑
 
@rism I say that, software technician is like a CIRCUS lion, when one says, just remember as you get older sometimes family and kids are more important then debating over who is in charge
 
I eat wool, and wear meat
 
@SomeKittens 96% #feelthebern
 
3:13 AM
I think your are making some quick assesments based on my last sentence.
 
@phenomnomnominal you commie pinko liberal
exactly what I got
 
That's a pretty interesting plant. You won't happen to grow on Mars?
 
fuck yeah
 
I love today's Google Doddle. A Mars, animated, drinking water and smile.
 
> We left Pluto with a broken heart,
then Mars's water broke,
followed by a dark, bloody moon.
I'M COMING FOR URANUS.
- The Oatmeal
 
3:17 AM
I still agree with 18% of trump. I must have chosen a wrong answer.
 
only 95%, you fascist.
 
@Luggage You make no sense to me.
 
Is this a second tenure for Obama? Can't he nominate his name to fight in these elections?
 
Give me a break. My father was a republican.
 
@overexchange No, you can only have two terms as American President.
 
3:20 AM
ok
i think he tried closing all the pits dug by Bush
mainly alleviated the tension between muslim countries and US.
killed laden
 
really?
still a bit of tension, i'd say.
 
Trump would create mess on this issue
 
true
 
Trump would create a mess in an empty, sterile room.
 
ew
 
3:23 AM
After becoming a real estate billinaire, one does not understand, what to do? so try for a president election?
Trump is a rogue, investing all his money in UK and CHINA, How can he nominate as President?
Scottish rogue
US citizens should give the same response, that Carlos Slim got on being the most richest person.
 
Hey guys, question, I am trying to use http.request to download a bunch of files referenced from an array. I need to write them to a single file, one after another in the same order they are in the array. But Node's sync nature makes it try to start http requests for all the files before the first one even finishes. So how can I make this go in order? I don't want file 3 finishing and being written to the file before file 1 and 2, for example.
 
Method A: Download one at a time. Simple to do, but sub-optimal speed.
Method B: Cache all the file downloads to disk separately and then combine then when they are all complete.
 
Just spent some time debugging some code only to realize I hadn't compiled the latest version. Modern JavaScript is weird.
!!> [].pop()
 
@SomeKittens "undefined"
 
yes, sometimes my compile-watch-reccompile loop failes and I spend minutes wondering why the code changes aren't taking affect.
 
3:31 AM
well, that's stupid
Speaking of, code review pl0x?
export class Stats {
  stats: EventItem[];
  constructor(public interval:number) {
    this.stats = [];
  }
  add() {
    this.stats.push({
      timestamp: Date.now()
    });
  }
  last30() {
    let eventsLast30 = [];
    let done = false;
    let thirtySecondsAgo = Date.now() - (this.interval * 1000);
    while (!done) {
      let item = this.stats.pop();
      if (item && item.timestamp > thirtySecondsAgo) {
        eventsLast30.push(item);
      } else {
        done = true;
      }
    }
    this.stats = eventsLast30;
 
typescript?
 
yep
 
@Luggage Thanks I think I will go with Option B, wonder if there is an easy to way to do a progress meter when you are downloading tons of files at the same time..... hmmm
 
@SomeKittens just run your TypeScript in the browser with System
@SomeKittens all your function declarations looks like function calls, add some spaces.
 
@phenomnomnominal Javascript? In the browser? These kids and their crazy modern ideas...
This is a node thing
 
3:37 AM
Pshah.
Overwrite require to compile on the fly.
 
@SomeKittens I might be wrong, but does that have the possibility of leaving items int he array if they get more than 30 seconds old before last30() is called?
 
@phenomnomnominal using import, nerdface!
@Luggage it shouldn't
if it does, that's a bug
 
if (item && item.timestamp > thirtySecondsAgo) <- what if it's 40 seconds old?
then done = true, and the .pop()ing stops
 
@Luggage then the class doesn't care.
array should be sorted by newest, right?
 
yes, you start walking from newest (last in array), then stop once you hit 30 seconds
(or whatever interval)
need this.interval = interval; in the constructor
ohh, or is that what public does in typescipt?
 
3:48 AM
yeah
 
Ahh, ok, I missed this assignment: this.stats = eventsLast30;
 
ah, cool
 
Since your passing in the interval (dynamic) maybe not name the methods and var 30secs related? i.e. lastInterval, eventsLastInterval, intervalSecondsAgo instead of last30, eventsLast30 and thirtySecondsAgo.
 
@rism yeah, I added that because I didn't want to wait 30 seconds for each test
should rename things
 
@SomeKittens I think a better way to do this is to use a dequeue and only iterate over the elements outside of the 30 second span
 
4:00 AM
this is for monitoring ongoing streams
 
Yep
 
@SomeKittens I pointlessly wrote it differently.
 
@copy that solution would work?
link to dequeue?
 
hi guys
anyone familiar with angular with require js?
this screwing my mind
i have a config js
 
4:04 AM
ooh, petka
 
1 message moved to Trash can
@EuphoriaGrogi Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@SomeKittens Also, I think yours has a bug. You stop early, which only works if the events are in insertion order. But while rebuilding eventsLast30, you push them in reversed order
 
var require = {
    baseUrl: 'app/',
    paths: {
        'angular': 'vendor/angular.js',
    },
};
this is my code inside config.js
in my index.html
i reference it like this
 
@copy snap, you're right.
 
ohh, I didn't notice the reversing of this.stats..
 
4:05 AM
<script src="app/config.js"></script>
<script data-main="main" src="scripts/require.js"></script>
 
my version doesn't have that issue,t hough
 
@SomeKittens A more efficient way: Group events into buckets (of say one second)
 
angular is undefined in this part
define([], function () {
    var app = angular.module("mainModule", ['ui.router', 'oc.lazyLoad']);
 
@copy wouldn't all the bucket mucking be non-performant?
 
this is the folder structure
app/
	vendor/
		angular.js
	app.js
	config.js
	main.js
index.html
 
4:07 AM
@SomeKittens Only if you have more buckets than events
 
@copy theoretically, I shouldn't and if I don't it's not that big of a deal
 
Exactly
 
wait, buckets or dequeues?
 
One dequeue of buckets
 
Buqueuettes.
 
4:12 AM
@Luggage Saw a film about that once, pronounced a bit differently than it's spelled. Very instructive.
 
what? that's a word? I'll have to google.
 
@copy so I setInterval for creating a new bucket, and all adds just go on the latest bucket?
@Luggage BUKKAKE. THE JOKE IS BUKKAKE. (or however you spell it)
 
ahhh
 
@SomeKittens In add, you add to the last bucket or create a new one if the last one is too old
 
ah, so last30 isn't just "Gimme X buckets"
 
4:16 AM
No, it's almost the same as currently
 
given the additional complexity, how much more efficient will it actually be? over optimizing?
 
Well, the dequeue actually makes the code simpler
 
@rism building this for the long haul.
 
Buckets reduce the amount of memory required from O(n) to O(1)
 
I think the goal is 50k/sec with stats
 
4:21 AM
Since at any given time, you only need a constant number of buckets
You could then make it even more efficient by using a circular buffer of buckets
 
but the simplification comes as the result of a dependency right?
So essentially the complexity is abstracted
(not being argumentative just thinking out loud)
 
Sounds like a win to me.
 
@rism Yes
The dependency is a better data structure for the problem
 
@rism it's not really "abstracted" if it's a different data structure?
 
Nope, will watch
 
tl;dr no one knows what they're doing
 
but what is it then?
 
looks like JS to me
 
var %_Arguments = 'foo' isn't a valid statement
 
4:57 AM
why this error come when calling ajax
Error: Permission denied to access property "apply
0
Q: Permission denied to access property "apply" in WCF Restfull services

Amit KumarIn my solution file , I have added two project, one is WCFService application and other empty MVC application. In WCFService. public interface IProductService { [OperationContract] [WebInvoke(Method = "GET", UriTemplate = "/ProductName/{productID}", BodyStyle...

 
5:25 AM
Good Morning
 
you again
 
Yes, I got JavaScript fever and the only way to cure it is through expressive dance and hanging on this chat
 
5:47 AM
@Loktar 18th*
Thanks man! You totally got ahead of me in desktop tho, grats on your 26th place! :D
It's kinda sad turnometry didn't make it in the top 50, oh well :/
It was a very neat concept
 
Mornin'
-1
Q: Streaming videos while keeping the video URL encoded

David BigaI am dealing with a heavily involved video subscription company and was hoping someone could point me in the right direction on use of encoding a URL. Currently I have a PHP script that uses a Base64 encryption for the actual URL. Which once we receive the hash, we send it through an AJAX call ...

Something about streaming proxies, base64 encryption, iframes, ajax
 
user3119231
6:22 AM
Morning
 
user3119231
A wild cerbrus was spotted
 
0
Q: Microsoft createUseOptions method replacement

HkachhiaI have one JavaScript base Website. its displaying data using SOAP method. But it was designed for IE 6 or higher and Firefox 3 or higher version with IE tab. Its working fine with IE11 with compatible mode but when i try to open in Chrome (latest version) it is give me error regarding createUseO...

 
hi guys
i have a question
 
how to load all global scripts and css using angular with require js and oclazyload
 
user3119231
6:31 AM
 
user3119231
 
0
Q: Trying to learn javascript. Working on retirement calculator. Need Loop advice

Go bucks1Ok so I have a retirement calculator that I have created for some online classes and I cannot get the loop to work. I assume that's what it is. I have verified that the calculator is working and have no other errors but just don't seem to understand how to use the loop properly. Any help would be...

Just look at that garbage...
Goddamn
How do you fuck up formatting that badly?
Original revision:
 
user3119231
I've just marked your message as useful because is not useful-
 
Did you open your eyes before submitting this question? — Cerbrus 7 mins ago
> That's a bith harsh - Jaromanda X (deleted)
@JaromandaX: Did you see the original revision? — Cerbrus 4 mins ago
my bad - comment deleted — Jaromanda X 2 mins ago
Golden :D
 
6:54 AM
/^[\w\.\s]+$/
 
yeah
got it
 
I HATE regex.
But they're awesome.
 
I never
YEP
I love it
@BenjaminGruenbaum u here?
app.service('getDataService', function ($http, $q, $location) {
    var getData = {};
    var getUrl = '';
    this.set = function (data, url) {
        getData = data;
        getUrl = url;
        $location.path(url);
    };
    this.get = function () {
        var deferred = $q.defer();
        $http({
            method: 'GET',
            url: 'php/' + getUrl + '.php',
            params: getData
        }).success(function (data) {
            deferred.resolve(data);
        });
        return deferred.promise;
IT's working
But do i look at some point ?
 
7:11 AM
75
Q: What is the explicit promise construction antipattern and how do I avoid it?

Benjamin GruenbaumI was writing code that does something that looks like: function getStuffDone(param) { | function getStuffDone(param) { var d = Q.defer(); /* or $q.defer */ | return new Promise(function(resolve, reject) { // or = new $.Deferred() etc. | // using a promise constr...

@underscore *you
 
Thanks
 
6 messages moved to Trash can
 
48mins of "headline" news and then btw "there's water on mars"
and msm wonders why it's a dinosaur
 
7:35 AM
If I were NASA, I'd tell Congress that we found oil on Mars.
 
Can anyone offer any hints in regards to debugging asynchronous code in WebStorm? Those short call stacks drive me crazy :(
 
@OliverSalzburg don't do it in Webstorm?
 
@phenomnomnominal Well, when I close WebStorm, the debugging performance is actually worse, so I don't see how that helps :\
 
@OliverSalzburg have you tried iron-node?
 
Unless you want to suggest an alternative, that could actually be helpful
I have not
Let me give it a try
 
user3119231
7:44 AM
oops, wrong chat.
 
Happy Birthday me!
4
 
@phenomnomnominal It can't even start our application. I will mark that down in the "cons" section
 
@OliverSalzburg wow, you must be doing some weird shit then
 
Hard to tell, because I'm not even seeing the first console log line from our application
Given that I'm just supposed to use iron-node instead of node to start the application and it runs fine with node, I wouldn't instantly assume that it's a problem with our code
 
user3119231
@BenFortune Happy birthday my friend!
 
7:57 AM
@BenFortune happy bday man
@ivarni :D
 
Best present I ever got for a birthday was a hug from a Mommy who loved me.
awwwwww!
 
Shouldn't React bind the this scope of event handlers to the component that defined them?
@BenFortune Happy birthday :-)
 
If the average of a and -5 is 10, then a equals to?
 
seriously?
 
Is this a quiz?
I haven't done 5th grade math since, well.. 5th grade
 
8:13 AM
More likely you do it all the time but never have to actually think about it.
 
i say its 25, but the answer is 15
how
 
@Sajeetharan That doesn't sound plausible.
 
@Sajeetharan stop that.
Ask 5th grade questions elsewhere, or ask wolframalpha
 
8:34 AM
0
Q: Node js crypto code convert to jquery

vatsalI have find the node js code to generate signature i want to convert this code into jquery Or jquery mobile code.i have write code var crypto = require('crypto'); function sig() { var key ='b2964e4af5f522ddf9774f2ac316abcbbc8dfb14'; var data='"nq3c4idz2g1.00206509295243331380tNR'; var ham...

Bahahahahaha
 
I'm voting to close this question as off-topic because it is about stalking. — Nate Eldredge 8 hours ago
 
9:00 AM
o/
 
Morning
 
0
Q: Problems when synchronising objects via WebSockets?

HedgeI'd like to synchronise data between a browser client and server using ONLY WebSockets. Currently most people use WebSockets only to notify the client that some data is available on the server. After investigating the current state I found no good reasons why I wouldn't use WebSockets to synch...

Is that a valid question?
 
guys i want to disable all pointer events for some time
i user //pointer-events: none

after some time i want to enable all pointer events
// pointer-events: true ??
 
I'm still struggling to know what can be or can't be, asked on so
 
@Simply Try initial
 
@ivarni thank you
@dievardump thank you
 
Or auto
 
I had problem with pointer events on drag-drop on ie9 and 10 for a windows app (which use ie as browser for web rendering). had to enable them for one and disable them for another.
 
9:26 AM
i used initial woked fine
i want ctrl+f to search in new tab google page possible?
 
9:45 AM
@Simply There is probably an extension for that.
 
Achievement unlocked: 4 FPS
 
Would it be a bad idea to create a "Cheat mode" and "Cheat achievements" on a mmo, to allow cheater to compete between themselves without bothering normal users?
Like creating a server special for cheaters, and rewarding with achievements cheaters who find the bigger bugs, or the bugs that are the most difficult to fix
 

« first day (1809 days earlier)      last day (3155 days later) »