« first day (2025 days earlier)      last day (2926 days later) » 

8:03 PM
How do you guys approach the UI part of the development
as in let's say you have a plan in your mind
that yes this is what you'll like your page to look like
then how do you guys bind all small things together
starting from the layout
to the final product
 
with work
do you have a real question?
 
I want some insight on how professionals work
no sire
I am just trying to understand how things work in real environment
 
write html, write css
 
I start with deciding which parts of the design are intended to be re-used throughout the site, and start with those.
 
Step 1: write html
Step 2: write css
Step 3: ???
Step 4: Profit
 
8:06 PM
No shortcuts xD
?
 
Step 1: write html
Step 2: write css
Step 3: ??? (no shortcut)
Step 4: Profit
 
Does anyone have experience with salary negotiations
 
Okay
I get the gist
one has to work their ass of
short and sweet
got* the
 
@DanielKobe yes, I accept them
 
Sarcasm?
 
8:08 PM
@DanielKobe they ask you for a number, you give them a number that's less than you want but more than you deserve, then they agree to it.
 
Dom
@DanielKobe first person to mention a number loses
If you mention the number first, it can only go down
If they do, it can only go up
 
@Dom so give a higher number?
 
@Dom I've had places negotiate up, when I low-balled them.
That was very early in my career, though.
 
Dom
I don't like it either, recently had a job where they required me to state my expectations when sending my CV, no room to manouvre
 
8:11 PM
Psychological shit
 
Dom
@ssube I think that might be because they know if they pay you too little you'll take a better offer as soon as it pops up
 
Trust me @ton.yeung I don't want to be Rockstar Developer
 
@Dom well, we were talking intern/very entry levels of pay, in the $20-30/hr range
 
I am coding because there is no option except that
 
I think they had a fixed standard and I was a dollar or two lower than that
 
8:13 PM
I like ideation, analytic and marketing more
I am working on my own start up
and I try to refine things as much I can
 
Dom
They offered me £2k lower with the caveat that in 6 months I'd get what I asked for. After I quit, he told me the only reason he offered me 2k less was to have a target for me to work towards...
 
and I have to make sure I keep myself entertained while coding
responsibility sucks
Agreed there
We are a team of 6
we have 2-3 people as employees
but they are more like friends
 
Hello
 
it isn't easy at all tbh
specially when you get into it straight outta' college
 
Dom
@ton.yeung Turnover is vanity, profit is sanity
 
8:16 PM
Working without money on something that isn't confirmed is a crazy thing
and no matter how much conviction you have in the project
 
Dom
Don't measure by revenue, measure by profit
 
there will come a time when you'll be unsure of what you are trying to do
Yes we did
In India start up sector is crazy to be honest
and all the investors are mostly wasting their money here
 
@GandalftheWhite s/crazy/disaster/
 
Dom
you could be making £1m revenue and losing £500k at the same time
 
they are dumping in fact their money here
 
8:18 PM
@Dom you could be making $35m and losing $500k
 
google the scene
 
or $2m or $3m
we were in that vicinity a few years ago
 
I have a few ideas on which I'd like to work seprately
separately*
Once I am done with this one
UBER is losing money like hell here in India
 
Dom
@ton.yeung The company I was just working for were "cashflow rich" but hundreds of thousands short of their budget for making just £100k profit, they pretended they weren't stressed but in truth they were panicking heavily
 
I've been looking into contenteditable attribute and into it change events and most widely used is HTML5 input event, but I also found info on SO, that input event isn't supported by IE (before Edge). So the questions is as follows, is there any simple robust workaround for contenteditable in versions prior to IE Edge?
 
8:19 PM
that's recession Dom
xD
 
Dom
they put everyones salary reviews back by 6 months and still acted like there was no problem...
 
Here they started paying crazy salary to freshers
 
Dom
and offered me equity after a few years!
 
3x to what people really deserved
and they had to fire them in 2-3 months
 
Dom
yeah I'd like 2% of a company that's making a loss please :/
 
8:21 PM
and obviously they did nothing for the company
 
@Dom that's a gamble I'd take.
 
Dom
I know immediate profit isn't necessary, but consistent loss is not a good sign
 
If the company ever got to the point where it went public, 2% could be a hell of a lot.
 
If a company has no future
 
Dom
@ssube I didn't like the leadership, they all got their director positions for time served, not skill
 
8:22 PM
they can never go public
and in that case Dom that company wont survive for long
 
Dom
all except the tech director
 
@Dom that doesn't automatically mean they'll implode and 2% is still a tremendous stake.
 
2% is tremendous agreed
 
Plus, if they do anything to raise more money, that 2% stays constant/goes up, not down.
 
Dom
I was making the number up, they never put a number on it, just said equity to be had after a few years
 
8:24 PM
They would have asked you to sign a vesting agreement
 
I have stock options, so most anything they do to raise money pushes those down.
 
You work for which firm ssube?
 
health/wellness company in the twin cities
 
twin cities?
 
8:27 PM
@copy It does, but not by default.
 
any chat like this one but without requiring SO points for wordpress somewhere in the web?
 
New tests require you to approve the given value, so it'll never have a value for 'correct' that you didn't approve
(that should be made more clear in the docs)
 
@SomeKittens linkie?
 
@copy I'm not sure about modifying the file in-place, everything's MUCH simpler when there's an external file I control.
 
@SomeKittens interesting
 
8:31 PM
@SomeKittens That involves using the cli, right?
 
the Twin Cities are the best--if you don't agree, you're wrong
 
The behaviour when just calling the test is very confusing, on the first run it prints nothing and on the second run the "Attempting to assert value without setting reference" message
 
@copy Right. Thinking of just wrapping npm test with my own CLI so that it'll run the tests and then output the baddsert stuff
 
After adding a test case that is
 
19 hours ago, by copy
There should be some safeguard that I can't use the same name twice, for example docTest("b.isFull()", b.isFull()); docTest("b.push(1234)", b.push(1234)); docTest("b.isFull()", b.isFull());
How would this work - you'd want all keys to be unique over the whole test run?
 
8:38 PM
Either that or make it possible to use the same key multiple times
The latter could cause some confusion though
 
@FlorianMargaine anything you like/don't like?
@copy IIRC I had a test case where I used the same key but I must have changed that.
 
How can i remove the previously set background color of a div element using JS ?
var question_row = document.getElementById('question_row_'+question_id);
question_row.style.backgroundColor = "#9fdf9f";
I want to remove this color again in another function
 
!!tell CrazyNinja google css remove background color
 
For a ninja your google-fu is a tad weak
 
8:51 PM
these solutions have used to do it in css. not using JS :(
 
When you do elem.style.thing you're in pseudo-css land. Values from css are translated verbatim.
 
thanks :)
actually that was the ultimate option i left with. But i wanted to know whether is there a another good approach or not :)
 
9:11 PM
@SomeKittens if I understand correctly, you're generating the "actual" value?
it feels uneasy to commit generated code, but I like the approach
(haven't looked at usage et al though, just the concept.)
 
59 mins ago, by Eugene
I've been looking into contenteditable attribute and into it change events and most widely used is HTML5 input event, but I also found info on SO, that input event isn't supported by IE (before Edge). So the questions is as follows, is there any simple robust workaround for contenteditable in versions prior to IE Edge?
 
@FlorianMargaine In this case it's not like typical generated code, since it's what you'd be writing manually if you didn't use the tool
 
Dom
@Eugene Your question is unclear, what exactly about input is not supported before Edge, because it definitely supports the input element?
contenteditable enables you to make elements editable that wouldn't usually be editable like a <p> or <div>. An input is always editable (unless disabled).
 
9:30 PM
Ok node support sucks
 
Dom
As a workaround you can just grab the text out of the non-editable element, remove the element, replace it with an input and put the text you grabbed into it
 
Godaddy, hostar etc support is 0
 
@Asperger node on shared hosting doesn't make sense
 
So many big guys only support apache and php mysql
 
9:31 PM
node isn't a static webserver like apache, it's an application server
 
@ssube ya I have shared hosting
 
you won't get any application server to run there
 
@ssube so that means its really expensive
 
be it node, python, java, .net, anything
 
195
Q: contenteditable change events

JourkeyI want to run a function when a user edits the content of a div with contenteditable attribute. What's the equivalent of an onchange event? I'm using jquery so any solutions that uses jquery is preferred. Thanks!

First answer.
 
9:31 PM
@Asperger no? virtual boxes start at $5/month or so, for half-gig ones
 
Dom
@Asperger "Host up to three web applications in the cloud for free. No expiring trial, contract, or credit card required.": openshift.com/web-hosting
 
@Asperger I'm a huge fan of ramnode.com/vps.php
 
@MadaraUchiha What do you do? You play hangedman and make the answer "You're next".
 
For larger applications, OVH
but if you just want a small node app with nginx, ramnode will cost you $3-4/month
Digital Ocean is good, but they have no bandwidth cap, so using too much could jack your bill up
ramnode will cut your node off when you run out
 
9:35 PM
So those are all vps server
 
I'll usually suggest AWS, simple because of how easy it is to deploy
and the first year is free
 
AWS and the other big clouds cost more than DO/ramnode and will charge you a million dollars if you get hit with a DDoS or anything
but they're also more flexible
 
@ssube a million dollars?
node.js is starting to scare me xD
so unless I have my own server I better forget renting one. I mean if I screw up one of their servers I got to pay hard but I want to test out my application online
 
grmbl grmbl my job grmbl grmbl
 
Dom
@Asperger I just gave you a good option
"Red Hat® is the world's leading provider of open source solutions"
 
9:40 PM
@SomeKittens yah of course, it's still code I didn't write myself that I'm comitting though
 
Ok for now I can test on my localhost and it created a simple request + response
 
it's still a good idea tho
 
so if I wanted to host in on one of those vps I just upload node modules / javascript files?
 
Dom
@Eugene I'm not 100% sure it'll do everything you want, but the workaround of changing a contenteditable element into an input and using jQuery .change() all wrapped in an if lte IE10 block might work?
you can't bend over backwards for users using crappy IE
 
Shouldn't angular.element(element).on('input change', function() {/* work the same */});?
You can't if you are developing own product, but if you have an order and a client, then you have to.
 
9:46 PM
@Eugene that's awful
 
Dom
:D
 
reality of life
 
Dom
I'm still in the early stages of learning Angular so I won't be much help, soz
 
@Eugene I meant your angular code.
 
Dom
I thought you meant the hidden double entendre in there, but maybe only my gutter mind saw it :)
 
9:49 PM
@phenomnomnominal I know, but as far as I can tell, you can't handle contenteditable any other way except through event listeners.
@Dom angular not an issue
you can open in any IE prior to Edge jsfiddle.net/ch6yn
And then in Chrome or any other browser(except IE) to understand the issue at hand
 
Dom
might need a symbol separating them, like || or , I'm not sure
 
ok Im just done learning the basics of node JS.
guys this is so easy. If you already know AJAX / JS / SQL / MYSQL its a cake
I must say its also really powerful and flexible. Just a pain we need vps server to run it, understandable...
 
@Dom look closely, why there is comma between.
It isn't for events separation
 
Dom
@Eugene I look these things up when I need them and then forget shortly after
Not good when they ask me to write code on paper in an interview :/
Had a telephone interview the other day, thought I tanked it but I got through to the next stage
remembered just enough to pass
 
10:04 PM
Anybody using Ember in here?
 
@JustSomeGuy Welcome to the JavaScript chat! Please review the room 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.
 
Ok I just cant figure out how to get the clicked class index in relation to the document.
 
!!/listcommands
 
@Eugene help, afk, ban, convert, define, die, doge, eval, forget, google, hang, imdb, info, jquery, learn, listcommands, listen, live, mdn, meme, moustache, msdn, mustache, nudge, refresh, spec, stat, stats, summon, tell, unban, undo, unonebox, unsummon, urban, weather, welcome, wiki, xkcd, youtube, zalgo, !, !!, $.baby, (4337654<<1)+1, (y), /somecommand, 2020/07/23, 3, 666, :p, </pissing>, ?, ^, ^5, abesnacking, abhi, abhishekpornfreak, acronym, adhd, ah, ahah, algosmarts, aliens, am
angryticks, answer_to_everything, apocalypse, appreciated, archerneat, artisticpoop, artisticsilo, asd, asd
 
I'm learning it for a work project, it's interesting, but very challenging. Most of the time searched turn up a lot of results from 2013, some from 2014/15, nothing from this year. Makes me nervous about sinking a lot of time into the framework.
 
Dom
10:08 PM
!!/answer_to_everything
 
@Dom 42
 
!!isrebecca
 
Dead command
 
!!info isrebecca
 
10:09 PM
@Trasiva Command isrebecca, created by crl on Sat, 31 Oct 2015 14:06:57 GMT
 
Dom
@JustSomeGuy there's a course on pluralsight Released: 29 May 2014
 
Is it possible to manually create a File in JS?
 
Dom
75
Q: Javascript: Create and save file

user1756980I have data that I want to write to a file, and open a file dialog for the user to choose where to save the file. It would be great if it worked in all browsers, but it has to work in Chrome. I want to do this all client-side. Basically I want to know what to put in this function: saveFile: f...

looks like a 'not automatically' but sort of
 
@Dom Have you used this?
 
@FlorianMargaine Yeah. One thing I focused on was good formatting for better diffs (too often generated code is hard to read)
 
Dom
10:15 PM
@ChristophBühler no but this answer is recent and well upvoted: stackoverflow.com/a/29339233/1532795
 
Thanks @Dom, but I've exhausted (correct word btw) all the course material out there. Per my search result results (?) they are all pretty old. Just curious what life it has in the wilds
Re the file in JS question, read up on data uri
I've used data uri to build CSV file of table data. There is a good bit of helpful stuff around for getting started with it
 
morning
 
Dom
@happy not for another 40 mins :) hi
 
@JustSomeGuy looking into it, thanks
 
@Dom it's easier to always assume entering a chatroom start with a morning and to leave it with a night
like good morning
 
Dom
10:23 PM
@happy I'm just being funny, but I can't actually respond with morning cos that'd be weird in the middle of the night
and I can't say good night till I leave, so I'm stuck between a clock and a hard place ;)
 
@Dom it's okay. I think I should subtitle myself with "I honestly do not understand sarcasm"
 
@happy how can you NOT with that name?
 
@JustSomeGuy at frist it was "happy ninja" then I changed it to "happy". Now that I think of it I should simply change it. Might also leave it that way so people continue to assume I am #1 on sarcasm.
 
Dom
There's a thin line between sarcasm and facetiousness, I like to use the latter though
 
Sarcasm is a great skill and all, but it's not a substitute for a sense of humor
;-)
 
Dom
10:29 PM
@JustSomeGuy It's required in the UK, though I agree
 
I'll speak for myself, but there's a lot of humor to be found in sarcasm and darkness. You talk to any paramedic, they survive by developing a pretty off-kilter sense of humor.
 
@VladJ Welcome to the JavaScript chat! Please review the room 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.
 
@VladJ working with human is something by itself
 
@happy That's true
 
Dom
@VladJ Well I suppose when you're standing there covered in brown stuff, the only thing to say is "I needed a shower anyway" :)
 
10:33 PM
Where u at in the UK @Dom? I lived in S. London a looooooong time ago. Also tried getting a work permit multiple times to live/work in Ireland, couldn't ever get the ends to meet up.
 
@Dom Unfortunately, some 'brown stuff' is a best case scenario :) It's worse when you get covered in red stuff
 
Dom
@JustSomeGuy I've just moved to Surrey from North West London
 
@Dom Some say living in London is expensive! Is it really that way?
 
Dom
@VladJ I think I'd prefer red to brown, but I've not been in either situation so I can't say for sure
@VladJ That's why I moved :)
 
So it's true. I didn't like London anyway :))
 
Dom
10:35 PM
Paying more to rent a flat than it would cost for a mortgage :/ no thanks
vicious cyclic economic trap
 
I enjoyed London, was super lucky to have a shared house situation, roomed with a bunch of Aussies and a few Kiwis. If I didn't have that place to stay I couldn't have lasted more than a few days. Bonus, had a job I could walk to, no Tubing required.
 
Dom
Apparently it's more expensive to rent some places in London than it is to live in a hotel, wtf?
I was sharing a s*ithole flat at £1500/month plus bills, not even in a particularly good area
 
I'm more impressed that he (assuming) he left his stuff unattended to get the pizza. Could never do that myself, always terrified I'd get separated from my gear.
 
Dom
A few weeks ago I got on the train and there was a bag underneath the seat not belonging to anyone, what a relief when I opened it and it was only bread lol
According to TfL I should've reported it, then we would've had bomb squad in :D
 
10:51 PM
Were you like 'awww, only bread" or "whew! only bread"
 
Dom
there was a little feeling of phew! but it was a plastic bag so the odds weren't high that it was anything else
it just got me thinking about how easily chaos could break out
 
meh, i wouldn't care about the bag
 
Dom
@KarelG just cheer for free food?
 
:p
 
Sounds like the opening scene of an action movie. "Little did @Dom know, that bag would put him in mortal danger and release a cataclysm of events that would leave him never the same again..." Cue music..
 
Dom
10:59 PM
DomDomDommmmm
 
Dom
just think about it though, any idiot could leave their gym bag and it'll delay hundreds, even thousands of people getting home
 
that's exaggerated .
 
Dom
not when I got on at Waterloo
they might stop all trains and evacuate the station
it's a major hub for getting to and from London
 
Dom
11:26 PM
good night folks
 
11:46 PM
hi friends
 
What does .then() do in Nightmare?
 
Hello guys
I am not sure this is the right place to ask this
 

« first day (2025 days earlier)      last day (2926 days later) »