« first day (1653 days earlier)      last day (3296 days later) » 

2:00 PM
I think that doing it server-side rather than client-side has advantages that outweigh the disadvantages.
For starters, Google will love you
 
As to my previous statement, an example: before I came here asking your opinions, I asked the same (well... similar) question, simply wanting opinions or be pointed in the right direction, in the HTML/CSS/Webdesign room, there I was immediately called a vamp, whereas you guys at least realized I wasn't looking for an instant solution, but merely an opinion
 
@MadaraUchiha If he is already working with an SPA, won't client side be just better?
 
Second, clients will love you. Less JavaScript means less cross-browser to worry about.
 
(isn't almost everyone today working with just SPA's?)
 
@AwalGarg No?
 
2:02 PM
I am seeing a hell lot of SPAs these days :/
 
@AwalGarg the jsfiddle I sent was from an old website (which I didn't even know was still online HA), the website I'm currently working on has nothing on it yet, I merely have the layout for the header ready
- and the footer, almost forgot about that :P
 
@Yorrick are you making a website, or a web application?
 
It's a website, the only "application" on it will be a small bit of JS/PHP to handle subscriptions and buying books
 
@Yorrick in that case, going with a server-side approach is almost surely better.
 
Alright, I'll get to work on it then :) Thanks
 
2:04 PM
Additionally, if you do it right, you can later add JavaScript navigation with AJAX and without page refreshes.
 
@MadaraUchiha for real? lol
 
@AwalGarg Yup, screenshot taken by my brother
 
haha pretty funny
 
@MadaraUchiha lol'd
 
Oh hey guys
0
Q: The Philosophy of Atomic Coding

CinchProposal: Atomic Coding Obviously, it would be a huge undertaking to simply throw out questions and topics randomly, so there must be some sort of administration process to decide which questions are "proper" or "organized." This is an overview of the proposed process: Philosophy Atomic Codi...

Here's a more extensive write-up
 
2:11 PM
@Cinch Very much appreciate your vision and efforts, but it just won't happen on Stack Exchange until Stack Exchange changes its policies.
The thing is, there can't be one platform to rule them all, or it will become Yahoo answers.
 
the idea is to possible make it on a sister site of SE
 
We need another platform as clean and sophisticated as Stack Exchange, but for content which is not suitable for Stack Exchange.
 
@AwalGarg *its
 
@KarelG This is correct. And I have already differentiated as different than Stack Overflow
I've went over Stack Overflow's content requirements and defined Atomic Coding's requirements as different.
 
@Cinch although you have changed the core of your post
 
2:13 PM
@KarelG No, it's in the different thread.
It's just a different discussion the original is still there.
 
ah
 
@JanDvorak I WILL NOT LISTEN TO YOU, NAZI!!! <3
 
@AwalGarg you need a , in your sentence
:d
 
@KarelG Unless it's a verb
in which case it's still incorrect
 
pedants
 
2:15 PM
Well I have written this pretty hefty piece
 
-1
Q: I only have Javascript Folder

Vojo KolenicI think I found something I needed on Github.com. It should be a webpage programmed in Javascript. I downloaded the ZIP, extracted it, and it is a folder with some files in it. Extensions are .js, .json and it has one folder named "bin". I guess that is a source folder for that webpage and I don'...

 
And I think I've outlined AC pretty well so that it runs orthogonal enough to be merited as a sister website
 
@Cinch " Monads in Functional Languages " <-- aah Haskell. I love that language, but i'm struggling with Monad
 
@MadaraUchiha This would be a question that could be answered indirectly on Atomic Coding
 
2:16 PM
@MadaraUchiha obligatory "have you tried jQuery"
 
Instead, we'd make a question for the convention of 'bin'
 
@AwalGarg "Have you tried turning it off and on again?"
 
Or "What are the conventional folder names for repositories?"
 
@MadaraUchiha but he is unable to start it in the first place :P
 
repo's can have different folder structure ya know
 
2:17 PM
@Cinch oh god. Get it off Stack Exchange
 
@Cinch let the flame wars begin
 
@JanDvorak Hey, I'm sure a lot of newbies are confused at what "bin" means.
Besides being a "bin" you put code into.
bin -> binary. Simple answer. Atomic-sized. Digestible.
 
bin is a bad term for source
 
src -> source
@AwalGarg bin is often what code compiles to but whatever.
It's where you store the executable or results from the compiler but i digress
 
@AwalGarg bin is not source.
 
2:19 PM
@MadaraUchiha See? Some people really do need the information
 
@Cinch I know. But some idiots (I am looking at you, jquery plugin makers) put source in bin.
 
OP is trying to use github.com/drei01/node-rapportive and it even says on the github page it's a command line tool...
 
@AwalGarg Well, then we could just add the disclaimer that it's usually, but not always.
It's just a simple little concept
 
@AwalGarg Bin's where jQuery code belongs :-)
 
Has anyone got a clue why the subject of the particular code in this question keeps popping up?
 
2:20 PM
@MadaraUchiha ^^ i'll stab you sucker :P
 
@enigma It's the same person
Repeatedly.
Getting banned and creating new accounts
 
The current account has a small history though
it wasnt generated just for this
 
@enigma : that sami guy has visited this chat here before. He was asking us to convert encoded js code to something that he would " analyze "
 
yeah, i scrolled up. There was a similar question a while back that got deleted eventually, on a similar theme
oh well
just piqued my curiosity
 
no worries :)
 
2:24 PM
@enigma wait this is the same guy who posted the same question, I put 15 minutes into writing a function to decode all the code of that kind, then went to test it, and he deleted the question.
rage
 
it's high likely that a mod has removed the question
 
@KarelG Yeah... We have a Haskell fanatic in LoungeC++
Ever heard of @BartekBanachewicz?
 
yes, he sometimes visits this chatroom too
 
@AwalGarg I cant see the question you're referring to itself, but I've read the chat log around that time, and it's definitely related
 
@KarelG lol Bartek
 
2:27 PM
i might have confused his name
 
Bartek is that guy who hates all the languages I use.
 
just curious where he got the dump from, and what he's trying to do with it. Not that it really matters. Curiosity killed the cat, and all.
 
!!s/I use/except for Haskell/
 
@MadaraUchiha Bartek is that guy who hates all the languages except for Haskell. (source)
 
If I start using Haskell, I bet he will start hating on it too.
 
2:28 PM
@enigma probably from the same uri as in that question you've answered to. Don't ask me what he wants to do with that though
 
@AwalGarg please do
 
@enigma First look reveals strings in Arabic and some JavaScript codes. So I'm guessing JavaScript for site in Arabic.
Didn't look further, lost interest.
 
lel, i visited this link from that question and i get "fuck you"
 
yeah..
 
2:29 PM
@JanDvorak lol
 
maybe I'll put him down to being a masterful troll
 
@JanDvorak You be my teacher again! <3
 
Also, anyone heard of DevLeague?
 
or just a raging kid
 
The JS people?
runs away
 
2:30 PM
first lookup says programming in hawaii. I'm ready.
 
sounds pretty cool
 
@enigma Yeah apparently they're like really cool
runs away
 
@MadaraUchiha Hey I forgot to ask you the other day, how long should those descriptions be?
@Cinch read a bit more on the dev league website. They say it takes 7 years for a self-taught programmer to be able to build a portfolio. Seriously, wtf is this crap?
 
@AwalGarg ...
comes back
looks
runs away
 
what's with all the running
 
2:42 PM
@enigma runs back
looking intensifies
 
nothing to see here bro
 
so much crap on that dev league website. I want my 3 minutes back.
 
@AwalGarg oh well
They're doing good things for Hawaii, though
They are the only coding camp in Hawaii
 
Teaching people jQuery is not good for anyone at any place.
 
@AwalGarg I think that's what they teach in CS at Hawaii's public univ
 
2:44 PM
And they are truly insulting all the self taught developers around.
 
Bonsoir
 
I have learned Haskell from a single tutorial and a lot of practice (and some SO)
 
If someone wants to learn web dev, they don't need no fucking camp. The web is always open.
 
In chrome, for every tab, do we have an instance of (rendering_engine + javascript interpreter)?
 
Also come and vamp this place like a pro. Like I did.
 
2:47 PM
 
@AwalGarg Meh.
 
@overexchange yes.
 
@overexchange I'm pretty sure some sharing is in place. Same code, different data, possibly different threads
 
@JanDvorak A different engine instance will still be there.
 
2:48 PM
@Cinch jQuery isn't relevant anymore
 
@JanDvorak so, this link says: It is important to note that browsers such as Chrome run multiple instances of the rendering engine: one for each tab. Each tab runs in a separate process.
 
At-least until the version described in the internals talk.
 
@overexchange you can see that in the task manager
multiple chrome.exe instances
 
Shift+Esc
 
that's to prevent complete crash if one of tabs is crashing.
 
2:50 PM
@BenjaminGruenbaum I'm pretty late with the answer, but yes, kind of (came here just to ask a Bluebird question). I usually come here if have a minor question ;)
 
Some pages stdll share a process
 
@MarttiLaine sure, cool.
 
Can I say that, each tab is a process consisting of (rendering_engine+javascript_interpreter+browser_engine)?
 
and some other goodies
 
sorry?
 
2:52 PM
Wait there is a talk about that it describes all of that.
Lemme find it.
 
If I repeat my question, Can I say that each tab is a process consisting of all these modules? chat.stackoverflow.com/transcript/message/22934027#22934027
 
No, only from the rendering engine
 
On a remotely related note, why do different tabs not share sessionStorage? What good is that object for, then? Isn't it just another object on window?
 
It survives navigation
 
@AwalGarg if you navigate to another page, it'll still be there
 
2:57 PM
ok, (browser engine+UI) is common to all process? UI is addressbar/bookmarks/etc... and browser marshals action between ren_engine and UI
 
@overexchange yes
 
ah right. stupid me.
!!afk
 
data persistence that is something can't be used by users of browser. It is used amidst browser's functionality.
 
@overexchange local storage stuff
 
another question, the objects that are created part of .js javascript code will be part of javascript interpreter memory space. Do, we have memory constraint in maintaining client cache created using javascript code?
32 bit processor allows only 4GB virtual space to a process. But here javascript code is part of browser environment, are their any mem constraints?
For the product I work, we have java swing(old client app) to create 2GB(if required) client cache part of jvm space. Can we go for client apps at this scale using javascript?
@AwalGarg concept of session is taught when u learn backend?
 
3:12 PM
@overexchange AwalGarg is afk.
 
away from keyboard? am new to these acronyms
à demain
 
i'm currently on weekend, no technical stuff today
 
@overexchange Although when maintaining such a large cache, having a persistent storage like redis or mongodb might be a better alternative.
 
3:31 PM
@overexchange HTML5 has client-side session storage.
@VibhavSinha hi
 
@room should i keep reallyjs.org or give it off ?
 
Guys I have this question: stackoverflow.com/questions/29855113/…
and I was wondering if I'm headed toward the right approach for the js part
 
@AwalGarg hi
 
You are from New Delhi?
 
3:41 PM
fellow resident here :)
 
Good to know :)
 
@MadaraUchiha Any recommendations?
@AwalGarg There's a Deli just down the street from me
 
I was in Delhi once, beautiful city but horrible, everyone I met tried to scam me, it was very dirty too - then again I was in the touristy areas and I bet it was very clean and nice elsewhere in the city.
 
@BenjaminGruenbaum no. It is like that almost everywhere.
 
@BenjaminGruenbaum Same here, except we call it "investing"
@AwalGarg in a seriousness though, how do you like New Delhi?
/me has never been to India
 
3:47 PM
Horrible place to live in.
s/live/suffer/
 
@SomeKittens Shit on the street, leprocy and prostitutes are hardly what I saw in California.
Literally every guy I met from the train station to the "hotel" tried to scam me. At least 5 people told me they needed to check my luggage (no way), that I need tourist tickets (no sir thank you), that I need to come with them to the "police station" or some other story.
 
@BenjaminGruenbaum We don't have leprosy, but I see the other two on a regular basis
 
Not to mention 5 year old beggars begging for food and money.
 
Probably not as bad as New Delhi, but very poor for the US.
 
@SomeKittens you really don't.
 
3:49 PM
@BenjaminGruenbaum Then you saw almost nothing.
 
@AwalGarg I probably saw almost nothing, but what I saw was pretty shocking. I might not be as hardened as you but the smell of shit and puke with cows on the streets and starving children doesn't make me feel too easy as it is.
Rural India was much nicer though to be fair, and beautiful.
 
Yeah, it is much more shameful than that.
Yeah, rural India is slightly better.
Atleast looks better.
 
i got issues once in Bombay due of a lame joke of a cow. ( i know that this animal is holy for them, but it's quite exaggerated)
 
@AwalGarg the people don't have poor mentality, at least those I met, a lot of them were pretty content with their lives.
 
3:52 PM
@BenjaminGruenbaum I feel bad that they are content with their lives, when the deserve much much better. Peasants in India are treated like shit.
 
What struck me about Delhi is how everyone I met tried to scam me, I came there from Kathmandu which is at least equally poor but the people there were nice, even those who tried to scam me tried to get an extra dollar for a meal, and not my kidney
 
@AwalGarg Haha
@darkyen00 Any ideas what is going on at really.io. They are the closest to the word really. It looks similar to parse though.
 
@AwalGarg I honestly have no idea how a society would behave the way India runs, at least from what I saw.
!!s/how/why/
 
@BenjaminGruenbaum @AwalGarg I honestly have no idea why a society would behave the way India runs, at least from what I saw. (source)
 
I've been to poorer places, but they were not as dirty, with as much crime or with as much social problems.
 
3:54 PM
@AwalGarg +91-8989-536616, and now you call.
 
@BenjaminGruenbaum Lack of education (not academics) is a major cause. And a hell lot of population with much scarcity of resources.
 
Like I said, my experience of rural India was much better, even Agra was considerably better.
 
@BenjaminGruenbaum AGRA is not rural :P
 
@darkyen00 Who is that?
 
you should try coming to Jabalpur @BenjaminGruenbaum :P :P
@AwalGarg ME
 
3:55 PM
@darkyen00 I know, it was a "despite not being rural"
 
lol
 
@AwalGarg but resources aren't really that scarce.
 
i went to agra, it was HAT HAT HAT
 
@BenjaminGruenbaum Right, the distribution of resources is horrible.
 
Training people pays off, the government makes money off doing that.
 
3:55 PM
@AwalGarg its politicial.
 
Not terribly scarce, but less than required. It is astonishing how people still do cool things with what they have. The most amount of life-hacks can be found here, IMO.
 
I have no idea why the people are not revolting and dividing the country into smaller bits. Indians aren't dumb people.
 
i am waiting your call.
@BenjaminGruenbaum Oh they are.
 
@BenjaminGruenbaum the reason which binds india as india
is unknown but you can credit it to our inter dependant states
united we can sustain, if divided the states will become extremely weak countries, neighbouring china
on most of which china claims anyways.
and Pakistan.
and then there are a ton of people who are really patriotic about this country.
the rest are happy with life, they have bigger things to worry about then division of resources like "Facebook likes" :P

 ..

 
4:01 PM
you sucker
<3
 
Oh should i share more ?
wait...
in .., 4 mins ago, by Awal Garg
My parents are here :(
 
@BenjaminGruenbaum kick him pls^ ?
 
@AwalGarg kick who?
 
lol
 
@darkyen00
 
4:02 PM
Ok, sure
 
Um why ???
T_T ... bu bu bu bu !!!
 
thanks
 
Hey everyone! I got a JS doubt. Wanna listen?
 
*question
 
4:10 PM
!!welcome VaibhavSinha
 
@VaibhavSinha 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.
 
Yep.. I was looking into Analytics JS and found it sets vdo.ga as a function with property l as a integer with time as 1*new Date();
Is this browser independent and the right way of converting Date into integer or getTime() is a more browser compliant method?
 
just use Date.now()
 
Sorry that is only ga, vdo is just a namespace I use.
 
and polyfill it like so
 
4:13 PM
Multiplying a date object by 1 casts it to a number, which calls the valueOf() method for the date object, which returns the same thing as getTime()
Using getTime() would be more clear about what you're doing.
 
if( !Date.now ){
   Date.now = function(){ return (new Date()).getTime(); }
}
@nderscore I think Date.now() is the best way of doing so.
and the most readable one aswell.
 
yes, please pick the now() from Date class
 
Class ?
 
object :p
slip of tongue
 
Unless you have to support IE8 and need to polyfill it :)
 
4:14 PM
Object ?
 
please don't hammer me
 
@nderscore i just pasted a 3 line polyfill
@KarelG hammer ?
 
never heard of hammertime ?
 
STOP
 
HAMMERTIME!
 
4:16 PM
I guess Date is a global function.
 
!!ecma Date
 
How to escape console command line api with wrapper: } console.log('yo momma'); { xD
 
@darkyen00 That didn't make much sense. Use the !!/help command to learn more.
 
!!tell VibhavSinha mdn Date
 
@VibhavSinha Date
 
user1596138
4:17 PM
@Loktar yeah hopefully my truck gets me there, one of the leaf springs just broke in half the other day hahaha
 
0
Q: Automatizing Chrome's "save as pdf" feature

MoshoI would like to enable users to save pages of my app as PDF files. I spent the entire day trying the different API's available online but in all of them the (fairly complex angular) pages look horrible. I could spend a week fixing up custom CSS but Chrome's PDF printouts seem perfect. Is ther...

anyone has any ideas?
 
user1596138
@Mosho What save as pdf feature are you talking about??
 
user1596138
checks for updates
 
@nderscore I have to support IE7+, so I think Date.now() won't work.
It is therefore polyfill vs 1*new Date();
 
@Jhawins ctrl + p > destination : save as pdf
 
user1596138
4:19 PM
@Mosho you don't mean through the print dialog do you?
 
@Mosho userscripts are an option?
 
You could use the polyfill. Or you could use (new Date).getTime(). Or you could use +new Date or 1*new Date and confuse anyone reading your code.
 
Greasemonkey API allows to save directly to fs.
 
@VibhavSinha Date.now = Date.now || function() { return +new Date; }; ?
(frankly, i'm not sure if it works well )
 
@Mosho if you can use the server you do have webkitToPdf
you can call it from node and pass it the page.
 
4:20 PM
anyways // off
 
!!> new Date | 0
 
@copy -158836472
 
user1596138
Just do window.print...
 
I am pretty sure he wants to do <a href="Output of print()" />
 
dammit @copy
 
4:21 PM
@Mosho I use PhantomJS for this exact purpose. Since it IS a WebKit browser, the PDF saving is 1:1 with what you'd get from Chrome.
 
@RoelvanUden :-> same as I do with webkittoPdf except for phantom is a full headless browser this tool is just a cli
 
Does anyone know why the rectangles wont go onto the canvas? codepen.io/anon/pen/QbwGGz?editors=001
 
@Jhawins I mean that, yeah
 
user1596138
Yeah you can't just do that.
 
@AwalGarg anything is an option
@RoelvanUden this is my next thing to try
 
4:24 PM
@Mosho then you convert to pdf at server and use GM's savetofs to save to fs.
 
I don't know what that is but I use web api, I can save files
@AwalGarg what converts to pdf?
that is the issue
the tools I found are shit
brb
 
@Mosho chrome.google.com/webstore/detail/save-as-pdf/… download, extract, inspect, copy.
(or just read the description :P)
 
Have your tried wkhtmltopdf. It utilises X11 and therefore seems to work similar to Chrome printer.
*Have you
 
!!afk ';DROP TABLE USERS;--
 
var page = require('webpage').create();
page.open('http://github.com/', function() {
  page.render('github.pdf');
  phantom.exit();
});
@Mosho ^ That. Pipe the file from Web API into a download stream, end with a delete
simple stuff
 
does anyone know an online tool to which you can feed mp4 video and make it poop a timelapse?
 
user1596138
> but I rocketed up past 130, 140, and all the way into the 160 range within a few months of playing in the league. Not too shabby.
 
user1596138
His notes on bowling are depressing to me...
 
user1596138
Although the rest of the article I thought was interesting.
 
My Q pr just got merged
this means every server-side promise library does unhandled rejections
I'm done with promises :D
My work here is done.
Off to find the next thing
 
4:56 PM
I've got a very basic HTTP server (the one on the NodeJS home page) and when I quickly kill and relaunch the script, the HTTP server will be unresponsive for ~40s. Does anyone know how that could happen?
 

« first day (1653 days earlier)      last day (3296 days later) »