« first day (1886 days earlier)      last day (3066 days later) » 

12:00 AM
IIRC
 
of worked
thanks
 
I will admit I forgot that once and just did Observable.fromArray([myVal]);
 
12:12 AM
 
how do i create .npmignore file?
 
by creating a new file and saving it as .npmignore -- this is not science...
 
lol
 
touch .npmignore
 
echo "" > .npmignore
 
12:16 AM
Not golfy enough. :>.npmignore is shorter :P
 
12:29 AM
@FlorianMargaine I am actually enjoying the weather so far in a tshirt
Although I look forward to having crazy cold weather as I faced in Moscow
 
:<.dontignoreme
 
Taco, what are you doing here?
 
Trying to find some self worth :d
I'm @ work. Coding when I have a min or two. thought i'd drop by here
I've got 2 houses now so i've been spending alot of time on them + fallout4
I really need to get the old one rented out
 
12:56 AM
yipe, good luck!
 
1:45 AM
@SomeKittens are you ready to help me become an angular expert?
 
yus!
 
sweet
one sec I'll ping you on hangouts
 
2:00 AM
@SomeKittens so where do you live in SF ?
 
Fremont
 
pacific heights
after I win the lottery
 
I will be in SF in two ish months
 
@SomeKittens I sent an inv
 
wanna go for a beer ?
 
2:07 AM
sure
 
@Abhishrek you're just going all over the place
 
@ndugger no SF is for investors
 
Are you getting investors for something you made?
 
although am definitely meeting as many SO people in real life as possible.
@ndugger yep
 
Oh, awesome; what for?
 
2:09 AM
Educational tool it forks scratch and adds a lot for "IoT"
 
That's fun; good luck
 
:-) thanks
 
what happened to the bank thing?
 
@SomeKittens sold it
 
nice
 
2:10 AM
Bank system in India changed drastically, we can't launch it legally without having a lot of money so sold it to those who have the license
used that money to move here :P
 
Just added this easter-egg into my framework: http.STATUS_CODES[420] = 'Smoke weed everyday';
Now, if a route's action returns new Error(420), the server responds with, "Error 420 - Smoke weed everyday"
 
2:26 AM
@Abhishrek awesome, good luck man
hire Awal i think he hates school
 
hi
if (table.children().length === 0) {
      $("<th class='row ui-state-disabled'><td class='check'>School</td><td class='check'>ID</td></th>").appendTo(table);
    }
what is wrong here
 
@nick racist
 
my out put was
<th class="row ui-state-disabled ui-widget-content ui-menu-divider" aria-disabled="true"></th><td class="check ui-menu-item" id="ui-id-2" tabindex="-1">School</td><td class="check ui-menu-item" id="ui-id-3" tabindex="-1">ID</td>
 
@Mahadevan more than you know...
 
th closing before td :)
 
2:28 AM
Creating HTML like that is just ugly and unmaintainable
Also, that's incorrect table structure
 
oh ok but then i want to create dynamic table
 
@nick I already got him a sorta job and MSP which should get him ~ 0% attendance
 
<tr>
    <th>my table head cell content...</th>
</tr>
 
and enough cash to have fun in India :P
 
don't put a td inside of the th
 
2:29 AM
@Abhishrek nice!
 
autocomplete("instance")._renderItem = function(table, item) {
    console.log(table, item, this)
    if (table.children().length === 0) {
      $("<th class='row ui-state-disabled'><td class='check'>School</td><td class='check'>ID</td></th>").appendTo(table);
    }
    var html = "<td class='testing'>" + (item.label) + "</td>";
    html += "<td class='testing'>" + (item.id) + "</td>";
    return $("<tr class='row'></tr>")
      .data("item.autocomplete", item)
      .append(html)
      .appendTo(table);
 
although he dislikes being associated to microsoft vOv
 
I love this room
everyone looks out for each other in here
 
no
we hate eachother
 
course we do
fuck you @ndugger
 
2:29 AM
so you mean to say
<thead><td>
 
@Abhishrek <3
 
2.8
 
@Mahadevan no
 
<3
 
Actually
 
2:30 AM
I mean to say what I said
 
-3 = <3, Or is that a lil bit too perverted ?
@KendallFrey ^ ? Sir do you approve the perversion ?
 
$("<thead class='row ui-state-disabled'><tr><th class='check'>School</th><th class='check'>ID</th></tr></thead>").appendTo(table);
how about this
i guess html is correct :)
 
yes, that's correct. But don't create HTML in strings like that
you should use something like document.createElement('thead')
 
can you help me out
how to put document.createElement inside
 
Only if you try first; go read up on document.createElement
 
2:35 AM
.autocomplete("instance")._renderItem = function(table, item) {
    console.log(table, item, this)
    if (table.children().length === 0) {
      $("<thead class='row ui-state-disabled'><tr><th class='check'>School</th><th class='check'>ID</th></tr></thead>").appendTo(table);
    }
 
!!tell Mahadevan mdn document.createElement
 
var btn = document.createElement("table");
 
I'm not sure why you would name your table, "btn", but yeah, that's how you'd use it
 
var tab = document.createElement("table");
:)
 
2:38 AM
just name it "table" like a normal person
 
ok
how to put there
in my if condition
 
@Abhishrek the what
 
     if (table.children().length === 0) {
      $("<thead class='row ui-state-disabled'><tr><th class='check'>School</th><th class='check'>ID</th></tr></thead>").appendTo(table);
    }
    var html = "<tr>" + "<td class='testing'>" + (item.label) + "</td>" + "</tr>";
    html += "<td class='testing'>" + (item.id) + "</td>";
    //return $("<tr class='row'></tr>")
      .data("item.autocomplete", item)
      .append(html)
      .appendTo(table);
  };
 
Well, it seems you already have a table, so you won't need to create a table element
instead
do something like
 
@KendallFrey Does that looks perverted enough to you ?
 
2:40 AM
what
I just see text
 
@Mahadevan
if (condition) {
    var thead = document.createElement('thead');
    thead.className = 'row ui-state-disable';
    table.apendChild(thead);
}
 
but i am getting error
 
what's the error?
 
SyntaxError: expected expression, got '.'

.data("item.autocomplete", item)
    select: function(event, ui) {
      $('#school_Name').val(ui.item.label);
    }
  }).autocomplete("instance")._renderItem = function(table, item) {
    console.log(table, item, this)
    if (table.children().length === 0) {
	 var thead = document.createElement('thead');
		 thead.className = 'row ui-state-disable';
		 table.apendChild(thead);
    }
    var html = "<tr>" + "<td class='testing'>" + (item.label) + "</td>" + "</tr>";
    html += "<td class='testing'>" + (item.id) + "</td>";
    //return $("<tr class='row'></tr>")
 
.data("item.autocomplete", item)
select: function(event, ui) {
  $('#school_Name').val(ui.item.label);
}
this doesn't look right
Something is missing in your code
 
2:44 AM
@Mahadevan You commented out $('<tr>') but not the subsequence data and append that follows it, thus the syntax error. What editor are you using, does it not have highlight?
 
Howdy
Ya know when you write a really detailed answer, spend 45 mins on it, and some moron gets best answer?
 
@SirCumference-Pies That's why I stay in chat; main is cancer
 
It happens all the time. If you answer is obviously better to most people, your answer will get voted up... in time.
 
I guess sheepy, I got 2 votes
But I'm looking for a hat
 
2:46 AM
Take my hat.
 
The answer the other guy gave was misleading too
2
Q: How loud would the Sun be?

JamieSound can't travel through outer space. But if it could, how loud would the Sun be? Would the sound be dangerous to life on Earth, or would we barely hear it from this distance?

Just stare at that and tell me it's not sketchy
 
¶>:)
 
TIL StackExchange has Astronomy too.
 
c|:)
 
Nice hat, @Rahul
 
2:47 AM
;-;
 
Gracias ;)
 
I guess the faster people get noticed
 
How loud would the Sun be. That may make a good xkcd topic.
 
I wrote a huge answer, Sheepy
 
Oh yes, I see that now XD
 
2:50 AM
So that got nothing
 
@SirCumference-Pies lmfao
incredible name !
 
Thanks, XD
 
Anyone here good at organic chem (I & II)?
 
All I know about chemistry is the dangers of dihydrogen-monoxide
 
^
In its solid form, it can kill you
 
2:54 AM
In liquid form too
 
@SirCumference-Pies It's liquid and gas forms are even more deadly
 
Its*
noob
 
Yep, it's used in cruel animal experiments and found in cancerous cells
 
@ndugger :(
 
2:55 AM
notepad++ @Sheepy
 
dangit...so close to the hat I want
 
And gas form, too, in sufficient density. My dad has a sare left by high energy gas form dihydrogen-monoxide.
 
Oh, bad news guys!
 
Dunno why I went on the fucked up part of youtube before bed
 
Dihydrogen monoxide...
is in our pipes
 
2:57 AM
Dihydrogen Monoxide is in our drinking water!!
 
@ndugger What??
 
TypeError: table.apendChild is not a function


table.apendChild(thead);
 
@Mahadevan It's appendChild
 
ok :)
 
2:59 AM
It's not okay
 
TypeError: table.appendChild is not a function


table.appendChild(thead);
 
@Mahadevan Also, table might be a jQuery object, so you might need to use table.get(0).appendChild(thead)
 
@Sheepy So yeah, ya get the idea?
 
Well, at least it is less oxidizing than dioxygen, rumoured to be the main cause of body damage.
 
I don't know the jQuery equivalent of appendChild
append?
 
2:59 AM
The Sun's sound alone could kill us
 
table.append(thead)
 
@SirCumference-Pies Yeah. You have my sympathy. Hope it will get the vote it deserves.
 
@ndugger No, it's thead.getChildSupportFrom(table)
 
i am getting the data :)
 
3:00 AM
Oh, you mean the answer. Well that sound may blown away our atmosphere long before we can be evolved.
 
Who wants to look at 298 LoC before I go to bed?
 
@Mahadevan Try a better editor. Notepad++ is not that bad - I use it too - but I can use notepad to write correct code, too. Try Atom.
 
or vim!
 
i am using one more brackets
 
3:02 AM
 
Long live vim! All hail the one and true editor for the enlightened!
 
What's the difference between vi and vim ?
 
@Sheepy vim high five o/
@RahulDesai vim is vi improved
Chances are, you have vim installed and not vi
 
@Doorknob冰 o/
Imagine this. You are playing a FPS. One player is using a game pad. Another player is mouse and keyboard. Who has more commands on the fingertip, and thus faster response? This is mundane editor vs vi.
And vim is a vi player with auto targeting, macro, and triple monitors.
 
3:14 AM
I see.
 
I quite like this analogue. It is good. E.g. vi(m) do have direction keys, but we use them a lot less, like how keyboard players may have next/prev weapon keys but never use them - because it is faster to select specific weapon (cursor position) by number key (commands).
 
3:34 AM
nice
 
3:52 AM
Good Morning
 
In AngJS, is there a way to avoid a page from loading and directly redirecting the user to another page if a certain condition is met?
For example, in my login "state", I have an onEnter function that checks if I am logged in and if so, then calls $state.go('...')
Problem is, I still see the login page for a split second before the app loads the "logged-in" page.
 
4:15 AM
I hear him, they are just way too much.
 
5:06 AM
hi
 if (table.children().length === 0) {
	 var thead = document.createElement('thead');
		 thead.className = 'row ui-state-disable';
	 var tr = document.createElement('tr');

		table.append(thead)
    }
    var html = "<tr>" + "<td class='testing'>" + (item.label) + "</td>" + "</tr>";
    html += "<td class='testing'>" + (item.id) + "</td>";
    return $("<tr class='row'></tr>")
      .data("item.autocomplete", item)
      .append(html)
      .appendTo(table);
  };
trying to create thead
with label and description as two column
some body help me
any suggestion
pls
 
5:27 AM
?
 
this is the code that tracks the mouse coordinates. I could not use document.write properly. I could only see one entry
 
can some body help me
instead of table it was generating ul
 
5:49 AM
var y = x = "some value";
Is it possible to get the variable x as a string from y?
(in javascript)
 
@thereisnospoon 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.
@thereisnospoon 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.
 
Ooops I accidentally left Spotify streaming overnight
 
6:21 AM
window.open is not working in Safari 8.0.1
 
2
Q: window.open(url, '_blank'); not working on iMac/Safari

SteveI've build a web page that let's you select a page name from a drop down list and then transfers the browser to that page. The code that does the transfer is if (url){ window.open(url, '_blank'); } where "url" is the page selected. A console log just before the window.open line prints s...

 
@Sheepy: Finally I found the root cause, pop-up where blocked in Safari preferences. !
 
It's blocked by default in several browsers
 
If not all browsers.
 
Yeah, I decided to err on the side of caution as I mostly use Chrome (which blocks by default) and never use window.open since it's annoying to users
 
6:36 AM
Some people love them. China sites, for example. (But not Chinese sites in general)
 
Some users or some developers?
 
Both, in case of China
Their sites simply open every single page with popup, plus occasional bonus popup.
 
7:03 AM
hi I have a small problem .. I have a simple modal .. just a div with fixed position .. now the body is scrollable .. the problem is when I scroll down and trigger the modal it opens on the top of the page . how can I determine the top position dynamically and open the modal centered w.r.t the viewport
won't it be like height of the modal / 2 + window.scrollY ?
no
height of modal/2-window.scrollY/2
possibly
 
7:28 AM
@shortCircuit give it fixed positioning
its top component would be presumably (window.height - modal.height)/2
opening at the top of the page means you have the extra complication of dealing with page scroll
 
window.innerHeight is the property. there is no window height property. but fixed position is an excellent choice.
 
^ especially if it's meant to be modal
scrolling away from a modal would kinda defeat the point
 
paco blanco paco negro
 
7:52 AM
Hum... Where do you choose your hat this year ?
 
@DenysSéguret On your profile page.
 
@JacquesMarais I guessed this but I see nothing on my profile page
 
Have you enabled it?
 
oh, found it
logging on the winter bash site wasn't enough, I need to enable it indeed
thanks
 
Morning
 
7:57 AM
Morning @MadaraUchiha
 
hi all
can i ask a question
here
 
user3119231
Good Morning, Ladies and Gentleman
 
!!welcome KastriotDreshaj
 
@KastriotDreshaj 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.
 
why req.connection.remoteAddress in nodejs returns me ::1 instead my ip address on localhost
 
8:06 AM
It's painful not to have command auto-completion
@KastriotDreshaj What do you mean ? You're not connecting locally ?
 
i want to get user ip but req.connection.remoteAddress returns ::1
not for example my ip
 
that's the ip of localhost
 
::1 only
 
That's a valid IPv6 address
 
i thought needs to be like 172.30.1.193 this
for example
 
ohh thank you
 
user3119231
:: means there are several zeros in front...
 
user3119231
IP Adressing - Currently learning in school
 
@KastriotDreshaj Your computer can belongs to multiple networks, with different IP. You are connecting to yourself through the localhost "network", and ::1 is your localhost IP.
If you want to access your server through the internet, use its domain name or internet ip as the url, not http://localhost/. Then the remote ip is normally your internet ip.
 
8:33 AM
am so friken tired -_-
 
user3119231
I'm afraid to ask why.
 
@Maurize helping my best friend do her report
I have been at it all day, and didn't sleep last night for work reason
>_> And this is not ending !
 
user3119231
Sometimes when I'm working all night long without sleep, I just think about all the soldiers, fighting without (enough) sleep for days...
 
@Maurize They inject caffeine
 
user3119231
I mean they can't be just like: hey, mr. terrorist, gimme some hours to sleep - brb.
 
8:36 AM
Sleep is an important part of maintaining your health. Overworking doesn't help you at all, nor does it make you cool or respectable. Stop those awful habits. We're not soldiers fighting for our lives.
 
user3119231
@pootis so do inject caffeine, too.
 
user3119231
@RoelvanUden lol u serious? I'm just saying what I think about when I'm tired.
 
I used to sleep 3-4 hours a day and now I'm basically paying back
 
crl
your face scares me :)
 
@Maurize I had a combat med role at some point during mandatory service and according to the inventory list in my med-bag I would have been issued amphetamin to treat sleep deprivation if the Russians had attacked
 
8:38 AM
@Maurize Soldiers rotate and sleep in turn. You may have a thousand soldiers in action but you usually only see hundreds of them on duty.
 
@Maurize I'm serious. I hate the elitism attitude that prevails around developers where they think it's somehow cool or respectable to work themselves to an early burn out. 8h~10h of work a day is plenty.
 
user3119231
@Maurize Hi.
 
user3119231
@Sheepy true. @ivarni maybe.
 
And yes. You need the sleep to flush waste proteins from your brain, otherwise they just accumulate and eventually hurt your brain.
 
user3119231
@RoelvanUden 100% true. Sleep is important. Never sayed anything else.
 
user3119231
 
user3119231
- FIN -
 
apache pls
 
FIN? XD
 
user3119231
Discussion finished. :D @Neoares long long time not seen o/
 
8:55 AM
o/
 
/o\
 
user3119231
\o/
 
|
 
/o\--/o\
 

« first day (1886 days earlier)      last day (3066 days later) »