« first day (1629 days earlier)      last day (3318 days later) » 

5:02 AM
@m59 You kiss your mother with that mouth?
 
@m59 Thanks for caring.. but it is working fine. check this code which I am using now to watch the templates and sass files too..
 
Can someone take a look at some Node.js code for me?
 
@Antrikshy 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.
 
	var gulp = require('gulp')
	var shell = require('gulp-shell')
	var sass = require('gulp-sass')
	var fs = require('fs')

	gulp.task('template', shell.task(['brfs templateRunner.js > app/templates.js']))

	gulp.task('sass', function () {
	    gulp.src('./assets/styles/sass/*.scss')
	        .pipe(sass())
	        .pipe(gulp.dest('./assets/styles/css'));
	});
	gulp.task('watch', function(){
		gulp.watch(['app/templates/*/*.html', 'templateRunner.js'], ['template']);
		gulp.watch(['assets/styles/sass/*.scss', 'assets/styles/sass-utilities/*.scss'], ['sass']);
 
hiiii
 
5:03 AM
hiiiiiiiiiii
 
It seems to save this: { __v: 0, _id: 551ccda1c8f1993947fa88c6, data: [] }
 
where are you learning gulp from.. I am finding it extremly difficult :(
 
Where does the metadata go?
 
Caprica became slow
 
@Mr_Green Pro tip: Setup your pathing properties on a path variable, so you can override them with argv for different watch/build modes
 
5:04 AM
I feel evil
guy asked for homework.. wanted me to do it
 
hello loki
 
I look at the file and used to work with the instructor
 
m59
@Mr_Green Sure, it "works". It's just silly. and the answer is incomplete. If you like incomplete, silly answers, it's all good. Just letting you know. I have high standards.
 
@monners thanks.. what is argv?
 
I msg the instructor on facebook
he's going to have a talk with the guy lol
hey @argentum47
 
5:04 AM
Ooh
 
real life vamp, I got to fight and maybe stop a real life vamp
feels good
 
@Loktar have to tried the react native ?
 
@Mr_Green Arguments you can pass from the command line
 
@m59 I am always ready learn but because of time constraints. will check your answer again..
 
Can someone please help? It's a quick question. Can't seem to find the error. pastebin.com/r5KwkL0P
 
m59
5:05 AM
@monners Do you kiss your mouth with that mother?
 
@argentum47 no, I don't have any apple devices :/
 
ow. me too :( . so it came out only for apple ?
 
@Mr_Green gulp serve-iis --dist --out="/some/other/resource/root"
 
m59
@Mr_Green There really isn't much to learn. I'm just saying that answer is lazy. I don't encourage you to accept/vote answers that don't even answer the question. You asked about "watching" and the user didn't even mention it. That's downvote worthy, imo.
 
@Loktar I want to learn gulp. but the docs are like, for pros... i mean the basic things are ok, but when it comes to application its difficult
 
5:07 AM
haha
yeah actually you provided the idea of watch to me
 
@argentum47 check out other repos and the like
 
then that guy just gave me one line of code which worked like charm
 
so many people use gulp now its easy to find how other people have done stuff
one second
 
@argentum47 Just grab a boilerplate and see what you can change
 
Best way to learn any framework IMHO
 
thats something super simple I made for a work presentation, the basics of gulp
but yeah what @monners is spot on
 
m59
@argentum47 I'd skip over gulp, at least mostly.
 
Also, it's Node, so...
 
webpack is teh hotness now anyway :P
 
m59
5:09 AM
SystemJS, jspm
 
ow.
 
m59
@Loktar used it yet? ^
 
@m59 yeah for a few months now
 
m59
SystemJS?
 
oh no, sorry meant webpack
 
m59
5:10 AM
Dude, I've eliminated the build process.
SystemJS is magic.
 
systemjs sounds like webpack
minus codesplitting..
 
m59
Also, React.
 
yeah been using that for a few months now too
React is awesome
 
What is the best js light framework?
 
m59
(React)
 
5:11 AM
^
 
yeah I am hearing lot about it these days
will check it
 
seriously React is great.
 
m59
I'm a big stupid dummy for learning/using Angular all this time. Worth it for the experience, I guess.
 
@m59 dude I know right?!
 
m59
Inline style is the brilliantest thing that ever happened.
 
5:11 AM
React is so simple
you use JS, and don't have to relearn anything, just some lifecycle methods
we use react + react-router + reflux
 
m59
exactly. The philosophy is so right.
 
Would I require to use requireJS if I use react?
 
its worked out really well so far
@Mr_Green commonjs, or es6 modules
you can use it w/o those as well
 
I have no idea about it
 
and there are so less concepts to learn than angular
 
5:13 AM
you can use the jsx transformer to just mess with it
 
How do I know if my SHA-512 crypto.js is converting my strings to hex, h:e:x:, base64?
 
Hai
 
has anyone used ngCookies in angularjs ?
 
thats a base react fiddle, does the jsx transformations with js
 
5:14 AM
I think
 
hey @darkyen00
 
I no longer wish to be a programmer anymore
and this is not an april fools joke :P
 
m59
What's going on, man?
 
y u become buddha?
 
@Loktar ok but I am asking whether I would need to use requirejs to handle global variables with reactjs?
 
5:15 AM
though I am stunned on the fact that ... I DO NOT KNOW ANYTHING ELSE THEN PROGRAMMING THATS ALL I HAVE BEEN DOING SINCE 13
 
@Mr_Green you don't have to use requirejs
 
ohh that is nice
 
and being honest i don't even know how to make a cup of coffee
 
I hate requirejs
@darkyen00 wtf?
 
m59
5:15 AM
@Mr_Green try SystemJS, seriously.
 
well never made one, I have the bried idea though.
 
oh I mean about not wanting to program
thats crazy talk!
 
Systemjs and reactjs?
 
@m59 you should check out webpack if you get a chance
 
or just systemjs?
 
5:16 AM
@Loktar Meh I feel like it started as a hobby
 
it looks like what systemJS has.. but so much more
 
well you can youtube on how to make coffee ..
 
I just don't feel that passionate about it anymore
 
m59
@Loktar hmm, just haven't needed more. I like avoiding more =D
 
@darkyen00 Move to AI
 
5:17 AM
In the past 6 months it has became rather depressing
and frustrating
 
you can inline your css
wait did you say systemjs can do that?
 
m59
Yeah.
 
@StevensHaen nah electronics + neurology is more exciting
 
you can also do asynchronous module loading, without having to do anything weird, which is really nice
 
@m59 should I try systemjs or reactjs or both?
 
m59
5:17 AM
Both, they are unrelated.
 
ohh then I will them
thanks
 
m59
SystemJS solves packages/modules, transforms, etc.
 
@darkyen00 neural interfaces, software for nanotech, etc
 
m59
@Loktar look into the philosophy. Bundling is now considered wrong.
 
but still it will be programming -_-
 
m59
5:18 AM
But the tech hasn't caught up to the philosophy yet.
In development, you don't bundle, but for production you have to.
 
yeah we do
no I mean.. you use commonjs/es6 modules still
but webpack allows async loading of them, its built into webpack
 
@darkyen00 move to hardware then
 
its an option
so its like browserify+
 
!!jQ sucks or jQuery sucks
 
@CSᵠ jQuery sucks
 
5:19 AM
even though browserify can do code splitting as well
its just not as straight forward
 
m59
Right, but we want to get away from all that.
Why even think about it?
 
@darkyen00 how old are you now?
 
@m59 browserify is different from systemjs and reactjs.. right?
 
21
 
m59
In the future, having 300 little package requests is not going to hurt like it does now - no more bundling ever.
@Mr_Green browserify solves a similar problem as systemjs
 
5:21 AM
@m59 yeah, but these tools already get rid of the need to think about that for the most part anyway
 
m59
you have to think about the tools =D
 
I would dare say most of the react community uses webpack
or the largest portion anyway
 
m59
I just don't see a need.
 
then why use systemjs?
 
5:23 AM
they seem to be the same thing, although webpack has more features
 
m59
because it takes 1 line of code and my life is great.
 
@Mr_Green yea
 
I am learning new things here :D
 
m59
@Loktar you need gulp tasks for webpack, don't you?
 
no
example of a huge react project using it for example
and those guys
webpack is crazy popular in the react community
 
5:27 AM
what is happening . I cloned my repo github.com/argentum47/angular-store-rails into another pc. then I did npm install grunt --save-dev and then grunt-serve, it shows
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'load-grunt-tasks'
Warning: Task "serve" not found. Use --force to continue.
 
m59
Not much about systemjs out yet. I tried out webpack before. I'm happier with systemjs, dunno..
 
yeah whatever makes you more productive
glad to see tools like this
 
m59
jspm, though.
 
yeah.. this seems really cool I looked at it briefly once (jspm)
damn yeah, this is sweet
 
m59
The videos on jspm.io are great.
 
5:31 AM
javascript should have some standard framework and module loader
I hate to choose one of the lakh of frameworks and module loaders
 
found a comparison
was wondering how it compared
@Mr_Green use es6 modules then
don't have to worry too much about what tool you use at that point
 
@Loktar k will check. thanks
 
CryptoJS.SHA512($("#coupon-code").val()) == CryptoJS.SHA512("foobar") results in false, even though I have exactly the same input
 
7
A: Fastest way to copy file in node.js

TesterWell, usually it is good to avoid asynchronous file operations. Here is the short (i.e. no error handling) sync example: var fs = require('fs'); fs.writeFileSync(targetFile, fs.readFileSync(sourceFile));

deserves moer downvotes.
 
6:10 AM
All the faith he had had had had no effect on the outcome of his life
does that make sense?
 
your tape is stuck
 
yea, after the second "had" it got stuck and spit another two :P
 
It suppose to make sense
 
how?
 
6:15 AM
IDK
 
well it could make sense but it's batshit strange
"the faith he would have had somewhere in the past would have had no effect" <-hope i got it right
tongue twister the least
 
How can I check if a string is a backslash, something like this:
input.charAt(0) === "\"
Though that doesn't work.
 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
 
lol, no
 
What do you mean?
that should work too
 
6:30 AM
!!>var input="\\";/^\\$/.test(input)
 
@CSᵠ "SyntaxError: expected expression, got '^'"
@CSᵠ "SyntaxError: missing ; before statement"
@CSᵠ true
 
finally
@ApathyBear ^^ one possible way
 
why would you do it so complicated?
 
@CSᵠ is that regex that you provided?
 
yes
@EnglishMaster because REGEX ftw!! :P
 
6:34 AM
extra process power FTW!!
 
!!>var input="\\";input.charCodeAt(0)===92
 
@CSᵠ "ReferenceError: assignment to undeclared variable input"
@CSᵠ true
 
@ApathyBear ^^ better
 
@CSᵠ looks good, thanks
 
6:36 AM
@StevensHaen 1. Don't do any verification on clients' side
 
!!>var input="\\"; input==="\\"
 
@CSᵠ "SyntaxError: illegal character"
@CSᵠ true
 
damn i typo a lot
 
@EnglishMaster What if it's hashed? How does it compromise security?
 
@ApathyBear ^^^ even better to check the wghole string
 
6:37 AM
Just don't
 
Owl
Hi everybody!
 
hey guys! I codepened something new! codepen.io/MateiGCopot/pen/yyrpOO
 
Owl
I am bit in trouble.. I am fairly new as a freelancer, and had just a bad encounter with a client... hope to get some comments from seasoned developers
The client first wanted to make some changes for a 3 year old php webapp. I made him an offer about the works, so far so good
 
@StevensHaen The user can just override any check that you do... so they can effectively pass any coupon as valid
 
@GrantWatters 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.
 
Owl
6:40 AM
then we did setup a project, and the thing got bigger and bigger... He said to me that he need this webapp in 8 weeks running and I should work fulltime on it
 
@towc I like it
 
thanks
 
@GrantWatters I agree. Would you elaborate however? Are they going to tweak the script through the console?
 
Owl
I thought hed understand that this had nothing to do with the initial offer...
 
Now do it with css
 
6:40 AM
@StevensHaen Jst don't even imagine it
 
Owl
anyone tips how to deal with clients who don't know what they want?
 
@EnglishMaster Ok, I'm just interested about how it's done
 
Tell them to figure it out or they're on their own
 
@StevensHaen Is it your first time coding?
 
@EnglishMaster not exactly
 
Owl
6:41 AM
Thanks Meredith
 
@EnglishMaster I'll create a PHP script and store the array in it. I'm interested in how they bypass the client side validation, for example, in my case
 
@StevensHaen Can put something like "CryptoJS.SHA512 = function () { return true; }" in the console
@StevensHaen Serverside is a must if you want that to be at all secure :|
 
@GrantWatters I see
 
@Meredith hmph, too easy
 
@Owl teach them agile
 
Owl
6:43 AM
I am so down at the moment.. I mean how on earth do he expect a full blown social network application with marketplace and everything to cost only 2000 euro?
 
@Owl When you agree to a job, make sure you have requirements for what you are building before you start :(
 
Hahahhaha
 
Owl
yes thats the problem, he said no time for making plans, we just should get started -.-
and I was so stupid and thought ok then
 
Drop him
 
Owl
never ever ever again... I knew this was going to happen and still I said ok
 
6:44 AM
@Owl :) as long as you learn.. youll move on and be stronger
 
He seriously wants you to make a social networking site?
 
Owl
thanks
 
or get sued for breaking a contract
 
Owl
yes, not only that, it was much more than a social networking site
 
@Owl switch to hourlie when you figure out the client is in that basket.,..
 
6:45 AM
@GrantWatters So this way I won't use crypto.js ?
 
Owl
it is a great idea, but 8 weeks is just too less time
 
I almost got sued by job seeking website for crawling their contents
and use it for my bigdata app last time
 
Owl
yes it was agreed on hourly basis, and if he says ok fulltime next 8 weeks.. what should I take 2 cents per hour or what
 
six to eight weeks ought to be long enough for any project
 
@Owl just give him directions about who to go to, maybe he'll still give you something for what you've currently done
 
Owl
6:46 AM
for an developer alone? Jan?
 
but I begged for mercy by telling them I'm just a student working at Mcdonald for 15 dollars an hour
 
An experienced dev could probably do it
 
Owl
@EnglishMaster lol
 
But if you're learning along the way, you're not gonna be able to do it
 
@Owl not agree based on hourlie, but work on hourlie. period, then when a new feature comes up in her dreams she'll at least have a sense it will take some time extra
 
Owl
6:47 AM
no I have made apps before, only not this size
 
But I'm slightly proud of it because I attracted a huge company's attention so Ill put it in my resume in future
 
Owl
moments like this makes me wanna be housewife again lol...
 
@EnglishMaster link possible?
 
@EnglishMaster how did they come up to targeting you to sue?
 
6:48 AM
@Owl as long as you choose your husband well, it's always a fine choice
 
because I advertised it online and they heard it
 
Owl
:D
no you know what.. what does not kill you does make you stronger... so bugger that or how you say in english
 
that works, too
 
actually their website prohibits people from crawling their site and they automatically detect bots from their server and ban them immediately
but I bypassed it using some trick
so they got mad by it I think
 
@EnglishMaster I can totally see why
 
6:50 AM
thing is i wanna do some bigdata research from public userdata posted on a specific site, their ToC is boilerplate legalese with usual "automated means", wondering if not competing... could i scrape the most recent contents?
 
no one is helping with ngCookies :'(
 
their search is like `90s tech btw, drives me nuts
 
To be honest, there are nothing free on internet nowadays
 
unless you use adblock
 
6:52 AM
that's not free, it costs me 4GB ram to use that shit
but comes with some peace of mind
 
I don't even have 4GB RAM
 
why?
 
I think licensing or copyrighting contents became worse since BigData started to gain popularity.
 
Jan's French, his government sequestered 80% of it
 
budget. It's a low-end from three years ago
 
6:53 AM
i bought 4 extra because my swap kept filling up
now it sits at 0% most of the time :)
 
Just about everything on internet is copyrighted and they are ready to sue you when you illegally use it
 
I tried adding extra, but it wouldn't boot
 
@EnglishMaster Just about everything? You're kidding, right?
 
I'm not kidding
 
Then you're wrong
 
6:54 AM
I think our chat is also copyrighted
 
o'rly?
 
but idk
 
@EnglishMaster bigdata, blabla term... would it be possible to fit in "fair use" if scraping the whole public contents for private analysis purposes (with published summary, or even a digest that could pottentially help them) ?
 
Owl
hey do you all think that if you would count the worth of coding per codeline, about 15$ would be the minimum?
 
I should start a professional suing company, suing makes a lot of money too.
 
6:56 AM
And the room's gone stupid again.
 
@EnglishMaster then apple sues you for copying their idea
 
right
 
@Owl go with per byte while at it...
:P
 
Well I'm out. Bye.
 
lol
 
Owl
6:57 AM
@CSᵠ lol
what would you take per codeline?
 
in assembly, or in malebolge?
 
i'd go with hourlie, not all time coding is spent actually typing on the kybd...
 
@CSᵠ Well, if you make 1 cent out of those "scraped contents" they can sue u
 
@JanDvorak BrainFuck
 
!!s/B.{4}//
 
6:59 AM
@EnglishMaster so... they shouldn't if i release everything CC or PL free ?
 
@JanDvorak @JanDvorak Fuck (source)
 
it's working again/...
 
@CSᵠ You need to read their license
 
Owl
now the client is telling me that he wants a estimate for the whole project ... what I told 3 weeks ago!!!!!! arggghghghghghg
 
7:01 AM
2 messages moved to Trash
@EnglishMaster you're professionally stupid.
 
:22451267 that's so sad, and wrong on so many levels, but legally it's prolly ok, lol :(
@Owl start with this: "Considering the new addition BLABLA...", and repeat that for every addition
 
Owl
@CSᵠ I will ...
Isn't there any tutorial how to talk with your clients? would be really helpful for fairly new devs like me
 
you're the tutorial :) you need to get burned a few times :P
 
@JanDvorak It's a good song
 
@Owl Unfortunately a lot of it is experience... but the general idea is that you and your client sit down and work through the expectation and planning... if they don't want to do that, you don't want to work with them. Stay calm even though they might be doing crazy things, keep in mind that they don't realize that some of what they might asking for is ridiculous.
 
Owl
7:12 AM
Thank you so much Grant! You are so right, I'll never agree again if client wants to skip the planning
 
that's grate advice
 
@Owl Having a process/checklist going into each client will help you refine you approach :). You want to be happy and know what you're getting yourself into.. and your client certainly wants to be happy and get the product they are expecting
 
Owl
@JanDvorak :)
I so hope he pays me the hours I did so far otherwise next month is going to be tough... :(
 
@Owl escrow...
 
Owl
7:22 AM
no we had no contract.... and I had said to myself only few months before that I'll never work without contract ... lol thats the problem if you do not listen to yourself :)
 
No contract? Then just walk away.
 
Owl
yes .. I just did cancel him... feel much better now
 
@Owl Good luck - hope things turn out well for you :)
 
Owl
thanks.. :)
 
Have you ever had crush on your clients before?
or clients had crush on you?
 
Owl
7:27 AM
what do you mean by crush? sry english is not my native language
 
jsfiddle.net/zqjhu1ju/2 what is happening. why so many errors in console?
 
Fall in love
 
@Owl lol i did something similar, said won't work for less than x/hr (hourlie or computed) and soon after a client poped in with a very interesting project that i accepted for less, and then became boring usual work, but my rate was still discounted :P
 
Owl
@EnglishMaster oh I see. No never :)
 
@RahulDesai haii
 
Owl
7:32 AM
@CSᵠ oh that is sad also... I have also learned not to underestimate your worth.. never
 
@argentum47 wassup yo
 
everything's not ok... going to watch F&F7 ?
 
Hi all
 
@argentum47 I hate that movie series, they are re-selling shit over and over.
 
My function isn't posting data
$("#coupon-code").on('keyup', function () {
        var coupon = $("#coupon-code").val();
        $.ajax({
            url: "D:/development/lessdoing/lessdoinglive.com/checkout/page-2/full-pay/coupons/coupons.php",
            type: "POST",
            data: {coupon: coupon}
        }).done(function (data) {
            if (data === "success") {
                $('#coupon-code').css("background-color", "green");
                $('#total-amount').css("text-decoration", "strikethrough");

            }
 
7:36 AM
my js is returning undefined not a function on this line and i have no idea why
 
Guys, is it just me of this starred video has no sound when the guy starts talking?
 
<input type="button" value="Delete" onclick="DeleteInvoicePDF($('#InvoiceDeleteLog').val(),$('#ID'.val()))"/>
 
@Owl at my last 9-5 the boss tried to do that to me and i didn't like it, felt cheesy and unfair, but i guess that's what companies must do, pay less, profit more? :(
 
@CSᵠ correct
 
doing that is wrong, better even tell there's no money to be paid for dev than that, fuck
 
7:39 AM
@argentum47 whats wrong?
 
@Meredith but I'm probably not capable of doing this version in css... now the velocity in the x changes based on a cos...
 
Owl
no I am not going to be a company like this.. neverever... there are enough greedy rich persons in this world
 
@Owl++
 
@RahulDesai I am slothened..
 

« first day (1629 days earlier)      last day (3318 days later) »