« first day (1526 days earlier)      last day (3416 days later) » 

2:03 PM
I can't even cook noodles properly, shame on me :(
@darkyen00 @SomeGuy Please say that you can't cook noodles :P
 
@Zirak yeah done that
basically
 
@AwalGarg Like Maggi / Ramen?
Sure I can
It's literally, "Put in hot water"
 
foo.js -> foo.js.gz
then i rename this to
foo.js and bam the brwoser is fooled ?
@AwalGarg I can cook real noodles too -_-
 
@SomeGuy I tried doing so, first spilled all water. Then tried again, and all noodles are so sticky :(
I even followed the directions on the pack. Put in boiled water for exactly 2 minutes, and take out.
 
Keep at it. It's really the easiest thing you can cook
And that's why it's about the only thing I can cook
I've been meaning to learn more
 
2:08 PM
I have been learning to make tea for the past few days, and I think now I can make tea.
 
@darkyen00 You using NodeJS?
 
But noodles... ughh.
 
@SomeGuy not atm
 
@darkyen00 uh, no?
 
What, then?
 
2:08 PM
Github pages / AWS (later)
 
Usually you just modify .htaccess, apparently
I don't think you can enable GZIP compression on GH pages
 
You send Content-Encoding: gzip for starters
 
AFAIK, nginx does that by the default conf only, right?
 
Cache-Control:max-age=86400
Content-Encoding:gzip
Content-Type:text/html
Date:Thu, 29 Jul 2010 19:47:17 GMT
Expires:Fri, 30 Jul 2010 19:47:17 GMT
Last-Modified:Tue, 27 Jul 2010 06:05:54 GMT
Server:nginx/0.7.61
bummer.
it does it out of the box !
 
^exactly
 
2:10 PM
as for amazon i know . i have to compress and uplaod it -_-
should of read it
 
Also, there is a pretty cool repo on github containing different configs for nginx. I used them when I started using nginx.
 
@darkyen00 That's great
 
thats greatest
 
// Voluntarily using .onclick instead of addEventListener; I want only one.
submitElement.onclick = function() {
I wish I had a way to do that using the normal DOM API...
 
isn't that the normal dom api ?
 
2:13 PM
I mean addEventListener
 
ah you mean something like
 
@FlorianMargaine how do you know you want only one?
 
addExclusiveEventListener ?
 
@AwalGarg Because he's building it?
 
And except by having a wrapper around the api,there's no way...
 
2:14 PM
@SomeGuy no I mean, he might need one afterwards... then?
 
@AwalGarg He can override onclick later.
 
@AwalGarg because I'm reusing a Dom object, and the data will be completely different every time
 
cookaroo.in - damn it really works !
 
ok
 
@SomeGuy his question made sense :P
I should just use an HTML template...
But too lazy for now
 
2:16 PM
Plead like a help vamp and someone here might write it for you.
 
when I'll have more code :)
 
@AwalGarg so thats how you build your stuff ?
 
@darkyen00 everything.
All my code is come from here.
 
WAIT why are u polyfilling box-sizing ?
 
@darkyen00 just reading things, not actually using it. But I haven't ever heard of this htc file thing, and the way it is used seems like some alien tech. So I wonder how it works...
 
2:23 PM
its an IE specific thing
 
And whether we can shim more new css rules like that
 
no
!!tell AWALGARG google pie.css
 
@darkyen00 Command pie.css does not exist. (note that /tell works on commands, it's not an echo.)
 
this is how we got rounded box back in the day
 
2:24 PM
@FlorianMargaine its very limited though.
ps ... iirc they were vml powered :P and hence uber slow
 
dunno, never looked at the code
 
@FlorianMargaine do it :D
 
not interested
 
o_O This is completely new to me, I am such a noob lol
 
haha
I inspected IE 8 once... once ! (that to in 9's compitability mode)
the thing PIE did to my code was beyond my belief
 
2:26 PM
hi
 
Wait what how does /google work?
!!mdn wat wat
 
I have a question about webrtc which I am readin up on.
 
...wtf
 
\o/
it works!!!
 
2:27 PM
@yayu 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.
 
I'm looking at the code here for example webrtc-experiment.com/DataChannel
hi !@AwalGarg
 
hi yayu!
 
so let's say peer1 adds a message, which gets added to the dom of the html.. is this entire html file then sent to the peer, who modifies the dom with his/her own message then that updated html gets sent to the peer?
is this how the chat is working? that part isnt clear to me from the example
 
@yayu no
 
@Zirak css is what the fuck
 
2:29 PM
the message part is only sent via the socket, and the peer on the other side is listening for those messages. Once a message is received, it will process it and add it to the dom.
@yayu this chat works on websockets. It is not p2p. It is peer to server to peer.
 
that's strange, I thought server was only needed for signalling (establishing ICE and SDP) then the PeerConnection handles the data transfer between the peers?
 
yes, that's webrtc. Chat is using websocket.
 
oh. so I'm looking at the wrong example
 
@yayu thou needs data channel for that, which is also a spec in the peer connection api
 
@yayu that is one way, the other is websockets in which this chat works. Two different but related things.
@SomeGuy I will never make noodles again :(
 
2:33 PM
but reliable tcp sockets afaik are rare
 
@darkyen00 thanks. reading this
 
np
ps you are lucky it seems chorme does have reliable
 
anyone got a link for chrome.storage usage?
the doc is... fuzzy, at best
I don't really what to get and how to request data :/
Don't try to use data channels to transfer files. Binary streams are not supported
 
3:17 PM
@FlorianMargaine What seems unclear?
 
@SomeGuy the .set...
 
Hi, guys can I ask some help in my loop statement,I wonder why my application will crashed if there are more points returned from server. like 50 ,000 points or coordinates..please help me... jsfiddle.net/jemz24/282mcbbf
 
@jemz 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.
 
chrome.storage.sync/local.set(objectYouWantStored, callback);
 
3:20 PM
@FlorianMargaine ^
 
	storageManager.get('users').then(function(users) {
	    users[nameInput.value] = {
		name: nameInput.value,
		email: emailInput.value
	    };
	    return storageManager.set({'users': users});
	});
this is supposed to work, right?
 
About all there is to it from what I can see
 
storageManager is just a proxy over chrome.storage.local
 
Seems like it should
 
@SomeGuy how do you get it then? you didn't provide a key
that's where I'm confused...
 
3:21 PM
(I would store user by email and not by name.)
 
@FlorianMargaine I think it uses the key in the object you store
 
@FlorianMargaine the key is returned?
 
@SomeGuy and then the object I get back? what is it?
@AwalGarg no
@dievardump it's miaou's name, it's ok
I just need a small example I think...
 
I'm making just that
 
storageManager.set({'key': value}, callback)
no?
 
3:24 PM
@AwalGarg then when you .get('key'), what's the callback's argument?
 
@FlorianMargaine jsh.zirak.me/pi7l
 
@FlorianMargaine that is optional...
 
@AwalGarg yeah well I want to get the value, you know
@SomeGuy so storage.get('names', function(result) { console.log(result); }); will log the array?
 
btw, you can console.log(arguments) to check the arguments
 
@FlorianMargaine From what I can tell, yeah
They say it's very similar to localStorage
 
3:28 PM
@AwalGarg I have a better technology
@SomeGuy it's not. localStorage is set(key, value), plain and simple
 
@FlorianMargaine oh right! inspect...
The callback parameter should be a function that looks like this:

function(object items) {...};
object	items
Object with items in their key-value mappings.
 
@FlorianMargaine Why aren't you just trying it out?
 
I am... I just get Object...
 
so well, you get the object items.
 
3:29 PM
Does anyone have an alternitive to innerHTML
 
clear enough
@wyattbergeron1 yes
 
what sould I use?
 
@AwalGarg so I'd get { names: [] } in @SomeGuy's example?
 
@FlorianMargaine seems like it.
but I don't think you can save that object like that
 
@AwalGarg what should I use instead?
 
3:31 PM
@wyattbergeron1 document.createElement(tagName);
or if you just want plain text, then el.textContent='doomed'.
 
and it would create a new <div> or a <p> named whatever I say
 
yeah
 
ok
thanks!
 
If you are doing a lot of DOM changes, you should create some utility functions for yourself, that would help.
 
@FlorianMargaine You're probably trying it out in whatever you want to use. Just create a different extension and test just this API out?
 
3:33 PM
@FlorianMargaine I can confirm it is working in latest chrome 39.
 
anyone want to help me ? jsfiddle.net/jemz24/282mcbbf
 
Also, yeah, it'd be an object containing names, not the array itself
It'd be an object containing all the keys you passed in
 
I have problem in my for loop
 
Would anyone be nice enough to make a fiddle teaching me how to use for loops?
 
!!> for (var i=0; i<10; i++) { console.log('yo mama', i); }
 
3:37 PM
@AwalGarg "undefined" Logged: "yo mama",0,"yo mama",1,"yo mama",2,"yo mama",3,"yo mama",4,"yo mama",5,"yo mama",6,"yo mama",7,"yo mama",8,"yo mama",9
 
Well that just explained that in like no time
thanks
 
Hi guys I think the problem is in my setTimeout my application will crashed .jsfiddle.net/jemz24/282mcbbf
 
> Uncaught ReferenceError: google is not defined
 
crl
!!> for (var i of [1, 2, 3]) { console.log(i) }
 
3:43 PM
@crl "undefined" Logged: 1,2,3
 
ok made it pretty, thanks @SomeGuy @AwalGarg
code here if you're interested
 
L5: It maybe a personal preference, but I use getElementById when I only have to select with id. Is there some benefit of using QS that I am not aware of?
 
Sure, no problem
 
@AwalGarg preference... I always use qs and don't have to remember the rest
 
ok.
 
3:51 PM
You might be interested in the code... Except for the index.js, it tries to inject dependencies all the time...
So I end up with decoupled code
 
@AwalGarg, I did not put the reference to google because still there is no data I just want to show the code,what went wrong in my setTimeout
that causes to crashed
 
yeah, I have been following that for quite a while now.
 
@jemz sorry, no idea.
btw @FlorianMargaine I am pretty sure you were the one who introduced me to SOC in the PHP room xD
 
@AwalGarg,it's ok
 
3:54 PM
!!afk dine
 
Yeah, beat my own record for consecutive revolutions around the sun!
 
Hello! I have a problem with Facebook. Each time I go at the site of friends of a person there are 2 naked men. Why?? Is it a virus?? What can I do to get rid of this picture??

I am sorry if this Chat room is not appropriate for that.

Can you help me?
 
@user159870 It's called a "search bubble"
 
@user159870 It must be one of those targeted ads
It shows ads based on what you like.
4
 
4:01 PM
ha.
 
@KendallFrey hahaha i hope he is not male :D
 
How to call the sliding, that was created at this site: lingualeo.com/ru/#pass-test
Just slide down by mouse wheel...
 
@QueueOverflow Don't do that, kthx
 
@KendallFrey Why?
 
It's not normal
Make a sensible website instead
 
4:06 PM
@PeeHaa @KendallFrey This Picture appears directly on the friend's list. I haven't liked anything similar...
 
@KendallFrey Show example, please.
 
@QueueOverflow wikipedia
 
@user159870 Facebook has advanced tracking techniques. If it shows two naked guys it's because you like naked guys
 
@KendallFrey Wikipedia is not nice from my standpoint
 
at least it scrolls properly
 
4:10 PM
@KendallFrey Oh, yeah) But how to call that design, that I showed?
 
@PeeHaa It is not an ad. It is a Picture directly on the list. Can I get rid of that Picture?
 
Yes stop looking at naked guys on the web and it will be gone automagically
 
@PeeHaa But I have never been on sites with naked guys.
 
Alternatively stop spamming the chat rooms on SO. That may also help
 
@obiNullPoiиteяkenobi why? Got something against gays?
 
4:21 PM
noooo ,i dont care about it neither against nor support, but i am sacred about survival of our race if every man will be gay and woman will be lesbian :/
 
@obiNullPoiиteяkenobi We already have more than enough people on this planet (just sayin' ;-) )
 
4:39 PM
@PeeHaa, can I ask your help ? I have problem in my setTimeout,.my application will crashed. jsfiddle.net/jemz24/282mcbbf
 
No and don't ping random people
 
hi peehaa!
 
Yo @AwalGarg
 
@PeeHaa his application will crashed. Pls halp him.
xD
 
;-)
 
4:45 PM
@jemz You have posted that problem earlier as well, this is against room rules. Please re-read them. For your problem, please create a small fiddle with as little code as possible, which can reproduce the problem, and we will love to help you.
 
can this possibly remove whitespaces
while ( ! fin.eof() ){
    fin>>ch;
    fout<<ch;
}
 
@AwalGarg,I already created in jsfiddle I think i posted the url already
 
Regret. Cheapest wine in the shop, nasty south african generic Pinotage. This stuff is swill.
 
5:23 PM
Is there a quick way to get web-fonts from google for local offline testing?
The download option gives me ttf fonts :(
 
5:51 PM
I'm having a scoping issue at the moment, and I can't figure it out:
I'm using Cheerio on a Node-environment, here's the essentials of my code:
var foo = 'bar';
$('.some-table').find('tr').each(function(index, element) {
console.log(foo); // undefined
});
 
Sim
is anyone here
 
Well, can't seem to achieve syntax highlighting
 
@AwalGarg is there an alternative?
 
@towc woff?
 
However, the variable can't be accessed in the callback, I've never been in a situation like this.
 
5:54 PM
aren't you always downloading ttfs when loading a font from a web page?
 
@towc eh? no.
 
Sim
<p style="text-align:left"> title 1 </p>
<p style="text-align:center"> title 2 </p> im trying to keep the texts together in one line
 
TTF = True Type Font.
TTFs are not for the web.
@Sim set display: inline-block on both of them
 
Sim
@AwalGarg issue im having with that display: inline-block is they are together but i want first text on left and other on center
 
Are we talking about CSS now? I thought this was JavaScript.
 
5:58 PM
@CA1K 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.
 
@CA1K Sorry, I'll ban everyone involved for 12 hours
 
@Sim flexbox
@Sim something like this : jsfiddle.net/2wxngyh1 But you might get better answers in the HTML/CSS/WebDesign room.
 
Sim
@AwalGarg thanks
 
np
 
Anyone have a minute to help me with the scope issue? I don't want to make a Stackoverflow question (too specific) but would love to get some help.
I don't think it's anything complex, just that I have no idea how to proceed
 
6:06 PM
@MarttiLaine The problem you described should not happen. Can you reproduce it in a fiddle?
 
I'm using Cheerio on Node so I can't exactly reproduce it
 
posted on December 20, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {}

 
I'll try that, just a sec. Thanks.
 
btw @Sim just remembered, jsfiddle.net/2wxngyh1/1 works as well. But uses float :(
 
6:13 PM
@AwalGarg What? I thought TTF was 90% of all popular font faces
 
@KendallFrey Not all browsers support it as a webfont
@AwalGarg I can't seem to reproduce it in Runnable, so the issue has to be in my code specifically...
 
@MarttiLaine wow til
 
@KendallFrey you trolling or am I just stupid?
 
Sim
@AwalGarg awesome thanks
 
@Sim np
 
6:16 PM
@KendallFrey I thought that too
 
@AwalGarg Just realized it's probably because of the variable being set outside my callback to Request.get(), which is where I try to use it...
Thanks for the help anyways!
 
;)
 
@AwalGarg I've never even heard of .woff, all the fonts I know are .ttf, sometimes .otf, or rarely .fon.
 
wooff
 
@KendallFrey When embedding fonts on the web you at least need 4 different formats
Including woff
 
6:21 PM
Lesson learned: Don't embed fonts on the web
 
@KendallFrey Just in case you are not trolling, read this: en.wikipedia.org/wiki/Web_typography#File_formats
 
Agreed, but people want shiny fonts :(
 
fuck people
 
I don't want shiny fonts, I just want your fucking website to load in less than 5 seconds
 
People being designers so not really people ;)
 
6:22 PM
@copy not everyone is a copy
 
Everyone is a copy of me
 
@AwalGarg According to that, TTF is much more compatible than WOFF
 
@KendallFrey Yes.
 
Then I have no idea why you'd want to use WOFF
 
To make your website actually cross browser
 
6:25 PM
better rendering across different browsers, low file size etc.
 
But if TTF is more compatible, then why wouldn't it do the job?
 
Because more compatible doesn't mean supported by all browsers
 
document.write is pretty compatible as well ;)
 
@PeeHaa explain
 
infinite scroll: how to display loading image in special div?
 
6:27 PM
Use TTF for all browsers that support it and Comic Sans as a fallback
 
I don't really know what to explain more? If your font for example renders on firefox and chrome. It means it is more compatible (yay two browser \o/), but it still means it doesn't support IE and/or safari
@copy Now that is a nice idea!
 
@PeeHaa ttf works with IE.
 
@PeeHaa Wikipedia lists TTF as being supported by all five major browsers, so unless Wikipedia is wrong, I don't understand
 
I know. It was an example
IE9+
 
TTF is highly cross browser, but it is old. Soon going to be obsolete.
WOFF is the new cool.
 
6:29 PM
Also "DRM" on IE
 
@PeeHaa it was meant to be for the good... well.
 
Meh. The font people are utter assholes (their licensing schemes) so I don't care for it
 
infinite scroll: how to display loading image in specific div?
 
:p
!!welcome Sinac
 
@Sinac 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.
 
6:31 PM
> Oh you want to use my font on the web hey? Sorry you will have to pay me again because web
 
@CapricaSix ok :)
 
@Sinac Do not repeat your question, atleast not in the space of a minute. Show us what you tried, preferably in a fiddle.
 
@AwalGarg ok :\
 
;)
 
I'm sure that if google fonts would not have been a thing 90% of the fonts used on the web would be in violation of the license
 
6:32 PM
@PeeHaa haha true
 
Are you complaining that not everything is free?
 
the entire google fonts library should be natively available on all browsers xD
 
@copy No not at all. I am complaining about ridiculous licencing schemes of fonts
They are the worst I have ever encountered and I am failry certain they actually don't want you to use it at all
 
Is there a simple way with ngRoute to defer a function call until the content of the template has been loaded? Need to do a call to make a fancy gallery work, but I need to do it after the template at templateUrl is loaded, and putting a <script> tag into the template doesn't work (for security reasons, based on what I've read).
 
6:34 PM
@LiamDawson 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.
 
@LiamDawson resolve
takes a promise
 
@Mosho how do I get a promise for the loading of the template?
 
!afk beer
 
@LiamDawson google ngroute resolve and if you are still having problems I'll help explain further
 
7:28 PM
Anyone got the UA string for opera mini?
 
    if (0) {
  error:
        status = -1;
    }
Great code
 
^ they are using my snow lol
 
57b59189.ngrok.com is what i came up w/
oh wait
hold up
 
Hello!!! Is there someone that can help me to translate a sentence into greek??
 
Google translator?
 
7:39 PM
@Loktar I want to translate the sentence "For simplicity in the timing analysis we assume that...". In google translate I become "Για λόγους απλότητας στην ανάλυση χρονισμού υποθέτουμε ότι..." but I don't think that it is correct...
 
yeah I have no clue personally.. this seems like a weird place to ask for something like that
 
Do you know where I could ask it??
 
Sup @Mosho
Crazy week :D
 
@BenjaminGruenbaum Is there a name for a 2-way event emitter?
 
A connection?
 
7:48 PM
Yes
 
Message bus is also common.
Mediator is more general but might be appropriate depending on what it does.
 
Well, I want something that gives me two objects and emitting on one makes events on the other and vice versa
 
A websocket?
 
@Makerimages 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.
 
@copy A pipe, although it's usually done with two pipes.
 
7:50 PM
also, o/
 
@Makerimages No, without assumptions on the underlying protocol
 
A socket maybe.
What does it actually do?
 
Describe your usecase, maybe that'll help us help.
 
@BenjaminGruenbaum Either synchronous callbacks or trough a web worker
 
An event emitter is just an observable, it goes one way, making it goes two ways is not what you have since it means moving it back and forth in time (that is, you can return messages to return their changes).
@copy so it's a proxy that performs RPC (remote procedure calls)?
 
7:53 PM
Yes, but I want to leave the possibility of not using a web worker open
 
That's fine, it's just a proxy - no need to involve event emitters in it - the pattern is just RPC.
I'd do it (drumroll) with promises since it's describing discrete actions.
Here's something to get ideas from: github.com/kriskowal/q-connection
It's important that if possible if it might be asynchronous it should always be asynchronous.
 
@BenjaminGruenbaum I asked that here once and people told me it doesn't have to be always asynchronous
 
Well, if you want to have non-deterministic execution order, race conditions and Zalgo - go right ahead.
 
That's what I thought
 
There are exceptions - you might have performance implications and direct method calls are faster - but generally it's preferred to not release Zalgo. Running async sometimes causes a ton of painful bugs.
 
7:59 PM
I'm thinking of making a JS game engine. Don't have a solid idea on how the game code using the engine should structure....
 
Yeah, although in this case most messages are already non-deterministic (for instance key pressed)
 

« first day (1526 days earlier)      last day (3416 days later) »