« first day (2066 days earlier)      last day (2882 days later) » 

12:01 AM
nope, nothing more than googling 'rem css' anyway, sorry
 
Thought you guys were talking about 'bem'.
 
12:14 AM
Okay bitten! Think it's ok now but is there some emulation where I can try it on phone?
 
user4196492
Hey, is there a chat room dedicated to anything near building computers? Did't now where else to ask this.
 
We're all nerds here, just ask
 
user4196492
Just wanted to know. I am going to start the whole process. Don't know where to start.
 
Start by deciding what you want to get out of it, and what your budget is
 
user4196492
I know this though: The computer I am building I plan to use for programming and game design.
 
user4196492
12:28 AM
I have something over $500 in total right now. I just started a job, so I am getting income.
 
So is your budget $500, or are you going to save a bit more money first?
 
user4196492
I can wait a bit longer if I am better off doing so. Would 1 Grand be good for a computer with how I intend to use it?
 
If that's in USD, you should be able to build a pretty capable computer
 
user4196492
yes 1 Grand USD.
 
I am not sure what is covered under "game design"
 
12:32 AM
^
 
user4196492
Let's say I were to use Unity or Unreal.
 
you can build a quite good gaming machine with $1000
 
Depends whether you're going to be running graphically intensive games or not
 
but I have no idea how demanding are the development tools themselves
 
12:33 AM
take what you get with a pinch of salt, however
 
user4196492
nay not mainly gaming.
 
What about running the games that you're designing?
 
user4196492
@VeronicaDeane Probably not going to get a super nice graphics card. Just games to get me growing in my career.
 
I should say, having a slow PC for game design can be a good thing, it forces you to write games that aren't dogshit slow
 
user4196492
12:34 AM
@VeronicaDeane eh.
 
@VeronicaDeane heh, or just benchmark!
 
user4196492
I could also have lower graphics settings in the game
 
@pebble225 An onboard GPU may be adequate for you, and you can always upgrade easily later
 
user4196492
@tereško thanks for the link btw
 
The single most important thing I would say about building a PC in 2016 is to use an SSD, for a boot device at least.
 
12:36 AM
keep in mind that AMD is promising the RX480 with a $200 price point
 
4gb is pretty standard for a GPU, SSD no doubt, 3.5ghz is pretty standard, and get a cpu cooler and throw away the stock cooler
 
user4196492
I will start buying parts when I attain over $700 USD. I am not planning to get a boss graphics card, but now a dirt graphics card. I am thinking in the middle.
 
also, get a good chassis
 
@bitten throw away the stock cooler?
 
@VeronicaDeane yeah, most CPU stock fans you get are terribad
 
12:37 AM
Mine has worked perfectly so far
 
@bitten never throw away the stock cooler
 
especially AMD ones
what did you get?
 
Intel
 
user4196492
anyone know thenewboston btw?
 
well i only have experience with AMD
@tereško which cpu?
 
12:38 AM
if your custom cooler breake, then you have abackup
 
user4196492
I am definitely getting an Intel Processor.
 
Also, get a modular power supply. It makes building and upgrading so much easier
 
@tereško yeah true, perhaps i was being too dramatic
so pebble, don't throw it away but just don't keep it on your night stand
 
@bitten also, dont hate on Wraith .. it's actually said to be really good
 
user4196492
@bitten What? this laptop I am using?
 
12:40 AM
@pebble225 beeeecause ?
 
@pebble225 naw the cpu stock fan
@tereško yeah but i can't see pebble buying a cpu that's bundled with it D:
isn't it on highend AMD's that come with it?
 
user4196492
Well the reason I started thinking about building a PC is because I dropped my laptop
 
lol
sorry
 
user4196492
an it is my only source to do my coding on.
 
user4196492
Thank God it works, but I need to hurry and get a new computer.
 
12:41 AM
i would hope with an 8core cpu that amd improves their stock fan on it >.>
heh
 
@bitten FX8370 is not much of "high end"
@pebble225 dont decide on which company's hardware you will use before you have actually got to the point that you can afford ordering parts
 
@tereško hm, i would say it is for a consumer pc
 
user4196492
I am most afraid of buying a component that turns out not to work with another one I bought, and then I waste my money.
 
although i'm into budget builds, so maybe i'm just more sensitive
@pebble225 use pcpartpicker, it works all that out for you
although double check it too, of course
 
@pebble225 Just check compatibility with everything
 
12:44 AM
add all your components, and it will tell you if they are incompatible
 
Generally the thing you need to be compatible with is the motherboard
 
/me has used just google spreadsheet for building last .. well .. 3 boxes this year
 
user4196492
@bitten Jesus the internet has something for everything...
 
Hi I have a question... How can I translate a line to a different point or for a distance in a direction in HTML5 Canvas?
 
user4196492
@tereško That would be really cool if /me commands work in the chat.
 
12:45 AM
 
@pebble225 yep, it's also a problem if you're trying to break into a market..
everything is a remix
D:
@tereško this is a really good recommendation!
 
just treat it as "soft guidelines" .. and keep in mind that in 3 month hardware in each of those brackets will have changed
(especially with full rollout of Pascal, Polaris, Zen and (maybe) Vega)
 
@tereško sure, but for someone entering into the 'building your own pc' territory it's a nice overview to be like 'oh okay that's what x$ will get me'
@tereško you lost me here.. what is this?
 
Pascal is the new Nvidia architecture (GTX 10xx)
Zen is the new AMD processors
Polaris are the AMD's new lower tear GPUs: RX480 and RX490
and Vega is their highend gear
 
okay, thanks for explaining ^^
 
user4196492
12:54 AM
I am so overwhelmed by this and I don't want to get screwed for getting a terrible and overpriced Factory PC.
 
user4196492
Uh, $200 for a decent graphics card? no thanks.
 
what are you talking about?
 
user4196492
@tereško I was using PC Part Picker to look at components. The Computer would have ended up costing like 2 Grand to build.
 
share the link
 
Better reconsider what you need
 
user4196492
12:59 AM
pcpartpicker.com
 
that's not what I asked you for
 
user4196492
If I plan to be a game designer, am I better off going through the pain of finding the right parts to build my PC?
 
I asked you to share a link
something likek that
 
@tereško is this your current?
 
no, it's a half assembled list for my kid brother
 
1:02 AM
@pebble225 The first one is the hardest
 
aw okay
 
I made my first PC from a kit
 
i have the 850 + r9 380 also
 
user4196492
OH OH! What if I buy a factory built PC and then I replace the parts as needed? That seems much easier. I can just put the components I don't need on Amazon or something.
 
@bitten my current is de.pcpartpicker.com/user/teresko/saved/FwYzK8 (prices given what I actually paid for the parts at the time)
 
1:04 AM
@pebble225 sounds like a waste of money
 
I wouldn't say that would really be easier
 
@pebble225 maybe just get a new laptop
probably an Apple
 
prebuilt PCs aren't designed to be worked on as easily
 
user4196492
@tereško Oh my God
 
user4196492
I think I am goin g to vomit
 
1:05 AM
@tereško oh nice
 
user4196492
A Mac?
 
@bitten the biggest investment was the screen ... but it was worth it
 
i like how it's running at 550w too
i'm not sure if you were trying to build green, but that's really nice
 
user4196492
Macs are terrible
 
@bitten lol ... yeah, the intention is to upgrade it to crossfire
which, with all the overclocks, would actually eat about 1050W then (hence the choice in PSU)
 
1:06 AM
ouch
watch out though
#GOGREEN
nice case too
i have an r4
it's so.. quiet
and i wasn't even going for a quiet build
anyway i'm going to sleep
night ^^
 
user4196492
nite
 
1:25 AM
@FlorianMargaine Nah, I left Opera in, uh, 2013. I'm doing web dev consultancy now along with the occasional bit of standards consultancy.
 
1:37 AM
well ... macs are used by people who have very little clue about hardware
that reminds me: can anyone recommend a good mechanical keyboard for work?
this thing seems a bit too expensive to just buy it for taking to work daskeyboard.com/daskeyboard-4C-professional (if you are in USA, it's actually on sale now)
 
1:51 AM
I have the fullsize daskeyboard. I like it, but it may or may not be too loud for you
Also, macs are also used by people that do have a clue about hardware.
 
I have one at home too: 4pro, mx brown
 
If they knew about hardware they know that there paying like double the price
 
either trolling or never actually compared equivalent hardware. :)
 
Le sigh.
 
2:21 AM
 
I am Le Skeptical.
 
it's a great 2nd, fits into your backpack, you didn't pay a fortune for a mechanical kbd
 
I'm judging this book my its tacky cover.
 
2:36 AM
Anyone here know how to take user input with Gradle?
 
3:04 AM
mac users do know about hardware
 
@numbermaniac 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.
 
it's just that windows 10 is dodgy
 
what did you have issues with @numbermaniac?
 
3:20 AM
Gradle...anyone?
 
3:57 AM
@Luggage lol
 
 
1 hour later…
5:26 AM
1 message moved to Trash can
@Shane Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
oh ffs I did hit ctrl K
var gulp = require('gulp');
var browserify = require('gulp-browserify');
var rename = require('gulp-rename');

gulp.task('build', function(){
  return gulp.src('./src/index.js')
    .pipe(browserify({}))
    .pipe(rename('bundle.js'))
    .pipe(gulp.dest('./'));
});
Why would that not work?
or rather not create a file
I don't get errors, etc
 
 
1 hour later…
6:36 AM
everyone runs faster with a knife
classic
 
@SomeGuy I was wayyyy overthinking it. The server just needs to check for expired leases before assigning a new address. if I care about efficiency, I could push the leases in an array and use binary search to find the latest valid one, pruning everything before it.
 
Haha, oh
Guess people don't think well past midnight
 
6:58 AM
@SomeGuy nah, I thought about this after you left
 
Ah
 
8:17 AM
@FlorianMargaine @AwalGarg cs.vu.nl//~ast/reliable-os
 
@SomeGuy ^ you can ping me with that stuff too (:
 
Sure. Oh, @littlepootis and @GNi33 might like it too
 
 
2 hours later…
9:54 AM
@SomeGuy that's the kind of "cool stuff" you wanted me to share?
 
@FlorianMargaine I'd prefer new concepts and ideas altogether, but sure, that kind too
 
@Mosho I've been trying mobx with typescript, I've been at it for 30 minutes and so far I'm still configuring weird stuff.
 
10:28 AM
@SomeGuy quiz: how does chroot work?
 
11:17 AM
Hi guys
 
Hey
 
working on weekends too
??
 
Depends on what you consider working
 
i mean doing programming
 
Then yes
 
11:26 AM
@Learning the weekend depends on the country
 
@FlorianMargaine:What do you mean
 
@Learning ( ͡° ͜ʖ ͡°)
 
Anyway @Learning, I guess you came here with a question, so shoot
 
@JohannesB:Not today because i am having holiday
but yes may be from tomorrow
Hehe
 
11:45 AM
@Learning we like coding here, so we do it on weekends for fun, sometimes.
I'm not getting paid to code on weekends, I try out new stuff and learn.
 
@BenjaminGruenbaum:Sometimes me too.
 
Got myself the What If book \o/
 
That's what the people here meant, I think.
 
@JanDvorak Read the part about lasers and the moon already?
 
anybody here have worked on angular js ??
 
11:47 AM
@BenjaminGruenbaum, that's exactly what I'm doing right now :)
 
i have just started learning angular js
but angular js directives are little complicated
 
Haven't started reading yet
 
@Learning learn angular 2, or at least learn components, directives are mostly dead
 
@BenjaminGruenbaum:I have seen lots of plural sight videos
they are pretty good
 
11:53 AM
but what i have seen in that videos that they have highly focused on angular js directives
and you can do lots of things with directives
directives are so damn powerfull in angular j
js
 
..but kind of deprecated
 
Kind of
 
@JohannesB:Why is it so?
 
Use components, or better yet - don't use Angular 1
Use some React thing, or Angular 2 or whatever.
 
Components are more or less the new directives
@BenjaminGruenbaum what's your opinion on ember?
 
11:59 AM
It's been dead longer than Angular, Ember is a bunch of smart people that disregard how important it is for code to be approachable.
So ember never got serious traction.
 
What do you think is gonna be the "next big thing"?
 
Vanilla
 
There is no next big thing
Everything is shit :D
 
Vanilla's been around for ages lol
 
Web development got a lot more complicated over the last 5 years.
 
12:00 PM
Yeah well, spoken of a boom
 
@BenjaminGruenbaum:How about node js??
 
"Vanilla" isn't a thing, we're talking about how you structure your code and solve the inherent problems of writing UI.
@Learning NodeJS is not in the same problem domain.
 
Node JS is serverend
 
What's the community opinion on Bootstrap?
 
@JohannesB React is pretty popular and we're using it - if FRP languages and frameworks get proper tooling they might catch on, otherwise I don't know.
 
12:01 PM
@BenjaminGruenbaum:But i dont know everything is shit like angular js is so damn powerful and so popular too nowadays]
 
Bootstrap is like the mcdonalds of web design
 
@JanDvorak Bootstrap is super effective if you need to solve something in its problem domain but worthless otherwise - if you're prototyping tens of sites monthly it's a nice tool. I never once deployed it to production when I called the shots.
 
It's fast, but limits your choices
 
@Learning Angular 1 is losing traction faster than jQuery lol.
You might as well learn Dojo or ExtJS
or Mootools, lol
 
I have an inner platform that would like to produce responsive forms...
 
12:03 PM
If you haven't used bootstrap before that's enough reason to use it IMO, it won't do much harm since it'll be easier for future devs to pick on than anything you roll yourself anyway.
 
There are dosens of options for responsive design
but if it's just inner, a bootstrap might suffice
 
Personally I like materialize, I actually use it when prototyping and I deploy it when I deploy my prototypes but not for work.
 
i'm working on a project where the lead wants to use bootstrap
kinda annoying to learn how to do it but it's easy enough to follow
 
Bootstrap isn't necessarily bad, it's just hard to do things other than the basic package and often requires full restyling
 
the lead also doesn't care much for any unique designs, so in this situation it's nice just to follow bootstrap's mark-up and be done with it.. i'd hate to wrestle with bootstrap's styling just to make a few lists or forms look different
 
12:06 PM
Well if the "unique" factor is not a thing, bootstrap is great.
 
in my recent interview i was asked to make 1 page responsive without using bootstrap
 
@bitten we have the opposite problem, everything has to look exactly like the design, we can't reuse any CSS.
 
how to do it without using bootstrap?
 
@Learning do it without bootstrap and without media queries, like we did in the old days.
Just understand how layout works and go with it.
 
Yup
 
12:07 PM
@BenjaminGruenbaum well just go for skeletoncss
 
It's all about understanding the browser
 
don't ignore media queries
 
@lea media queries
 
@bitten that assumes you don't have components that take 1/18 of the screen :D
 
In the old days, you needed to style pages using tables, anyone remembers that time?
 
12:07 PM
later on this strikes in my mind that i can do this with media query
 
@BenjaminGruenbaum i don't understand D:
 
@bitten tipranks.com/smart-portfolio how would you do half the things there with bootstrap :D?
@bitten we can't use skeletoncss, it doesn't solve a problem for us
 
@JohannesB:Yeah i do
 
@BenjaminGruenbaum i'm still learning bootstrap, this is the first project i've been using it on.. but let me take a look
 
using frameset and all
 
12:08 PM
@JohannesB heh yeah
 
From time to time I need to write HTML mails, then I get reminded that table-styling is still a thing, lmao
 
@BenjaminGruenbaum well it doesn't look like it's following much of a grid, so a grid based framework doesn't look necessary
however bootstrap =/= grid framework
you could just cherry pick the bootstrap components you need and only compile those
for example, the buttons.less, forms.less, and panels.less would be useful on this page
you have a lot of modal windows which the panels would take care of
panel > (panelheading + paneltitle) + (panelbody + panelcontent)
just 5 divs and you have a modal window that a few css edits would look similar to yours already
 
@bitten they're all responsive in weird ways :D
There are like ~20 responsive breakpoints, 3 wouldn't work
 
the bootstrap navbar would take care of your menu
@BenjaminGruenbaum 20 in your tipranks site?
 
@bitten yes
 
12:17 PM
@BenjaminGruenbaum well fair enough
here's how i would do your left column on bootstrap, it's over simplified but it's -a start-
class name's should be more specific if you're extending this out
(you don't need bootstrap to do this, it's just how i would do it in a bootstrap environment)
 
The minute you used a media query you lost me, at this point I don't really get much from bootstrap's layouting.
What I'd really like to do though is drop IE9 support and have R&D use flexbox everywhere
 
@BenjaminGruenbaum that media query just makes it so if the screen size is more than Xpx, then make the column full browser height
 
I understand what it does
 
Does bootstrap use media queries actually?
 
Also, it messes up at exactly 756px
 
12:23 PM
@JohannesB yes
the 'md' 'sm' etc. all signify break points
 
@BenjaminGruenbaum like what? typescript or mobx? mobx should be 0 configuration
 
@BenjaminGruenbaum yeah, the media query should be set for 768 and not 756
 
typescript can be a bit tricky at first with all the .d.ts files and stuff
 
it's just a prototype / rough demo
 
not too bad in vscode, but they have some bugs to work out
 
12:25 PM
@Mosho well, I need to import CSS so I had to configure that, then I had to work with server data so I had to generate interfaces for all my the C# stuff (which to be honest wasn't a big deal), then there was figuring out what interfaces I need to pass around, I also can't export a decorated function which sucked. I needed to require the CSS because meh but require was not defined so I needed to define it which was tricky.
 
did you install typings
 
None of it was too bad, but it just felt like way too much work for something. I based it on the mobx boilterplate project which was also slightly out of date.
Yes, I installed typings but I didn't actually use it because I didn't really need to.
Oh wait, I did use typings for d3, but that was the only thing that needed it, mobx already ships a .d.ts file
 
yeah
you can also use the source
since it's in typescript
 
The whole thing took ~ 30 minutes of setup in which I didn't really write any HTML or CSS, I'm a tiny bit scared that although it's a once-per-project thing and is faster for future projects the overhead might be a little high.
 
require should be defined
you have some .d.ts that come with typescript
es6.lib.d.ts etc.
there's a node.lib.d.ts too
it doesn't have to be once-per-project
if the next project takes 5 minutes to set up it's fine
 
12:30 PM
tsx is also not a lot of fun, but you can work around stuff with as so meh
 
I rarely had to use as
small prices to pay anyway, imo
 
Now I get fun stuff
ERROR in Unexpected token .
 @ ./src/components/ConsensusGraph.tsx 16:0-32
line 16 is prices = prices.filter((d,k) => k % 30 === 0);
So I stopped and had a beer with friends, back since
 
where do you get that error, in the browser?
don't use sourcemaps
 
in webpack, it's probably something else entirely, like not impoting the css
 
use systemjs :D
 
12:35 PM
:(
 
what can I say
welcome to modern web development? :D
 
Naa, this is not modern web development.
and I don't think System would do a better job here.
I'm just annoyed I have to write all this boilerplate and by the time I write it something better shows.
If the tools were old and high quality that'd be fine, but all the solutions are shabby and incomplete.
So more like "welcome to software development" I guess?
 
@FlorianMargaine I have no idea, but I did already have the appropriate Wiki pages open!
I'll talk to you in a few days, once I've taken care of my gazillion open tabs
 
It's also super annoying VSCode is lacking "generate this", in C# you type nonexisting types and then alt+enter and it generates the type for you based on usage.
@Mosho
 
yeah, I miss that too
I'm sure it's on their todos
 
12:44 PM
I wrote a small test and inserted 50 small documents to MongoDB per second and the $5 DO droplet used between 95-102% CPU which I was expecting, but it didn't crash. Is this an okay number? The test I did was for a real user scenario/server side validations etc. I won't even expect 5 similar docs per second and will upgrade the droplet for public beta but never had experience with concurrency.
 
@Luna that's very slow.
 
for $5 droplet?
 
I can probably get to 1000 inserts per second with SQL, so yes. The DO droplet is also SSD
why aren't your running the db in a managed host anyway? Like mLab?
 
good question... I didn't separate server with the db yet. just a small deploy for test and (ready your shotguns) I'm blaming meteor -_-
I'm trying to get better with vanilla and get rid of Meteor.
 
1:04 PM
@Mosho random question, why can't I assign strings directly to attributes in react?
It sounds like room for optimization when the value is known at compile time.
 
what do you mean?
 
anybody know how to clear the npm cache for a single module?
 
@Mosho className="foo" vs className={"foo"}
 
you can do either
still not following
 
1:26 PM
I'll show you tomorrow
 
1:43 PM
Hello. Has somebody dealt with android soft-keyboard events on web apps? I'm having some trouble with it. stackoverflow.com/questions/37773512/…
 
@TomSmith 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.
 
1:55 PM
hey, a small poll
what are people's prefered syntax when an if statement gets quite long for a single line?
pastebin.com/ZcELWhmS (3 examples, but perhaps you use another method)
 
extract conditional expressions hastebin.com/obuhataqaq.js
 
@FilipDupanović smooth, thanks for the tip
 
I prefer another syntax
I create variables for each statement
e.g. var emailOk = (some regex expression)
var TOC = (toc.checked);
and then if (TOC && emailOk && ... )
makes it very clear if you ever have to edit the code
 
do you always try and find the positives?
lets say the check was to make sure a string wasn't another string
const isNotFrance = county.name !== "france" then if(isNotFrance)
or
const isFrance = county.name === "france" then if(!isFrance)
the first is more readable but the second follows some standards
 
2:11 PM
no, doesn't necessarily have to be the case, usually I take what is most clear
I'd have taken the second one in that case
 
okay thanks
yeah it does look a lot cleaner this way
 
if you're guarding, use negation
 
2:30 PM
sorry, what's guarding?
 
2:46 PM
@Mosho I definitely like mobx and typescript better than Redux with React, it's a shame computeds aren't Rx observables - I complained about that many times before in Knockout, I wonder why.
 
2:56 PM
As someone that uses knockout now and wants to incorporate more React, I like the look of mobx.
 
Folks, I need some help. I have an object that can contain all kinds of values including nested objects, and due to some incorrect implementation of an API all my booleans inside it are converted to strings. I simple want to re-map those to booleans while preserving the other properties. This is the best I could come up with, but it seems to me it could be more efficient?
 function transformValueToBoolean(object) {

        return _.mapValues(object, restoreBooleans);

        function restoreBooleans(value) {
            if (typeof(value) === 'object' && !Array.isArray(value)) {
                // Recursively restore booleans in this object as well
                return _.mapValues(value, restoreBooleans);

            } else if (value === 'true') {
                return true;

            } else if (value === 'false') {
                return false;

            } else {
 

« first day (2066 days earlier)      last day (2882 days later) »