« first day (2203 days earlier)      last day (2739 days later) » 

Luggage, I bet you're just Trump but don't want anyone to know it
 
I have the best code, everybody says so.
 
@Luggage :leans in: WRONG!
 
woa, I just heard we will all be redundant
WebAssembly
 
lol
top kek
 
1:09 PM
@SuperUberDuper nope. that's just you.
 
@NithinKrishnanP 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.
 
@SuperUberDuper how does webassembly make us redundant?
 
@SuperUberDuper javascript is dying
 
JS will be seen as a toy language
 
user6820627
1:13 PM
Hello! Forget Js, use Emscripten/WASM
 
JS is already seen as a toy language, but people that think that are wrong.
WebAssembly is based on JS engines
This just gives more life to JS.
 
JS is evolving out of the toy language label, not going into it
 
Don't fear progress, exploit it for fun and profit.
 
JS was a joke to many people in the early days
 
JavaScript is dying ad will be replaced by Dart Go WebAssembly
 
user6820627
1:15 PM
@tereško and you'll be forced to learn C
 
@tereško the JS ecosystem will get an infusion by Dart, Go, WebAssembly.
immigration is good.
sometimes
 
fuck, I forgot to mention GWT
 
user6820627
@Luggage do you know C?( not asking for help)
 
I know it, but don't use it for real work, so I'm not fluent.
 
user6820627
@Luggage do you travel often?
 
1:18 PM
give him two weeks and a case of hot pockets and he'll be a c master
 
Why?
 
don't forget the all Rush mixtape
 
ohh, i won't.
 
user6820627
5 years, not 2 weeks
 
no, I'm pretty confident that Luggage could re-introduce himself to another language in about two weeks
maybe less
 
1:19 PM
and have
JS isn't my first. That honor goes to another.
 
I haven't written C# in a few years, I could probably pick that up again in a couple weeks tops
@Luggage Perl?
 
more embarassing
 
I'm just going to randomly guess languages
umm.
 
Visual Basic
 
not bad
I learned on QBASIC
 
1:21 PM
... for Applications
ohh, that's not my first language used, just my first paid position
 
they taught vb4? in my HS
my first paid position was c#
 
hola!
 
user6820627
@rlemon 1 star
 
I don't see how that is star worthy
 
someone has to arrange the badgers and the mushrooms :D
 
1:23 PM
they didn't teach programming in high school, but I did. I taught another kid qbasic in typing class instead of typing
 
programming in my school was a joke class. taught by the math teacher who was also teaching himself vb while teaching us
the year prior to that was HTML
complete joke of a programming course
 
at that point, exposing people is the important bit, in a way.
i mean.. better than nothing
 
then they moved to c++ in senior year, taught again by the maths teacher
it was moreso you couldn't ask him questions, he didn't know anything that wasn't in the book he was learning from
he had no prior experience
 
Random project sharing
 
You can't see my face, but trust me. There is no look of shock on it.
 
1:25 PM
a thing that tries to shuffle graphs to get the most and fewest intersections going on. I know it's simple stuff but it's good free time practice
 
finding intersections?
ah
using a force, or just random?
 
..and yes it's brute force, right now I'm playing around with multiple features to make this lib reusable
10k attempts, if min if max
 
ah
 
there are probably better ways
 
one way is to introduce some physics-like forces. have the nodes repel each other and see wher they stabilize
 
1:28 PM
mhm, that's probably where I'm going with this
another thing I was pondering is getting the average of all distances between nodes, and encouraging minimum stddev
 
or possibly walk the graph and calculate 'layers' kinda like I assume GraphViz does.
 
Hi Zombie @FlorianMargaine.
 
scary @FlorianMargaine o/
 
Is there an easy way to get stddev or a good library?
 
1:30 PM
that's it, everyone's getting a 'scary' picture
 
So I'm trying to download an octect-stream into a txt file, but it seems my new line characters are ignored and it's all coming in on one line. How do I make it render the line breaks and keep the multi-line consistency?
coords = coords.substring(0, coords.length -1);
var targetArea = 'New / */AreaTarget '+name+'\n'+
				 'SetBoundary */AreaTarget/'+name+' Pattern LatLon '+coordinates.length+' '+coords+'\n'+
				 'SetDescription */AreaTarget/'+name+' Long "'+strBirds+'"\n\n';
doc += targetArea;

document.getElementById("kmls").innerHTML = "";
var div = document.createElement("div");
var download = document.createElement("a");
download.id = "download";
download.download="AreaTargets.txt"
download.href = "data:Application/octet-stream," + encodeURIComponent(doc);
 
@SterlingArcher So, are there newline characters in the received string or not?
 
They are not
Maybe \n isn't the right newline character
 
But you have control over the file on the server side and they are in there?
 
1:39 PM
It's all client side lol
look at var targetArea
I need those \n to render in the downloaded .txt
 
what's the resulting href?
does it include the newlines?
 
New%20%2F%20*%2FAreaTarget%20test%0A
Looks like it's encoded
Is that why, you think?
 
It doesn't stop there, does it?
 
ahaha @BenFortune sorry
user image
2
 
no
please
 
1:42 PM
@KendallFrey no, there's a lot more. It's a long string
 
but u so scry now
 
right, so that looks correct
 
alright, time to scarify @SterlingArcher
 
That's what I thought, but in notepad it's all one line
 
@SterlingArcher I don't think I understand the problem :( You're encoding a string, which includes newlines to a URL, so, obviously the newlines are escaped
 
1:43 PM
You're definitely not opening the file in a text editor that expects \r\n?
ah, notepad
 
good question
 
yep, that'd do it
 
saved
 
And I can't run the code as coords is undefined :P
 
use a real text editor
 
1:44 PM
Coords is populated by an API request :P
@KendallFrey yup, ST3 renders it nicely.
Why doesn't notepad? Do I need a generic newline carraige return or something?
\r?
 
@SterlingArcher Windows uses CRLF
 
\r\n
 
And Notepad is a shitty application
 
^
mainly that
seriously, don't use notepad
"But what if..." No.
 
inb4 dreamweaver
 
1:46 PM
I'm worried the clients will use notepad
 
That one really died out, hasn't it? Good.
 
I'm requesting dreamweaver licenses before I leave this place.
 
How to determine the correct newline separator in the browser sounds like an interesting question
 
microsoft.com/en-us/store/p/… Borderlands is free get it while MS doesn't realize it
 
1:49 PM
@SterlingArcher Xbone only :(
 
@OliverSalzburg You use \n and the browser normalises it for you
 
@Zirak except it doesn't in this case
 
> All transactions final
> Besides, I don't even own an XBone
best comments
> Blood and Gore Intense Violence Language Sexual Themes Use of Alcohol ... @ zero cost and free delivery ... mmmmh
mmmmmhm
 
@KendallFrey I dunno what's the case, so okay
 
just read ffs
 
1:51 PM
lolno
 
tl;dr: data:application/octet-stream
 
user6820627
i love text/plain
 
@Zirak No
 
@SterlingArcher why would I want to play a shooter on a console?
 
Ah I forgot I could use text now that I'm not generating a KML
 
1:52 PM
hell ... why would I want to play anything on a console at all
 
@tereško Because it's fun
 
@tereško because the eyes don't see more than 30FPS
 
@tereško i keep having to ask the same question
 
user6820627
 
someone wants to buy me an xbox
i'm like f no
 
1:53 PM
I may sell my xbox, buy a gaming PC and a rift
 
DOOO EET
 
I have so many steam games but I don't play any because I don't have a desktop
 
do it
 
@LearnHowToBeTransparent People clicked on the little star icon
 
rift is fun
 
1:54 PM
@KendallFrey how much will that cost me? :/
 
@SterlingArcher if you want to build a machine for VR, you might want to wait a bit
 
one meeellion dollars
 
@tereško porque?
 
depends.
 
just wait until the hololens or some good VR comes out
 
1:55 PM
@SterlingArcher navigator.platform === "Win32" ? "\r\n" : "\n" maybe?
 
hololens like like $3,000
 
@Luggage Frankenstein, please
 
yeah, VR costs as much as the computer
 
@SterlingArcher the current generation of GPUs are a but anemic for VR
@ssube GPU for VR costs as much as VR
 
@OliverSalzburg why would you worry about line endings from in the browser?
 
1:56 PM
stackoverflow.com/questions/1638919/… This question has been deleted for 6 months, before it was brought back as a result of this meta question. Imo, textbook old junk that should've been left to rest in peace once it was deleted...
Also: Hai
 
I don't know much about computer hardware. GPUs have to do what with VR
 
uhh, they said VR ready computers are $500 at OC3
 
rift + pc package is under $1500 I'm pretty sure
 
@ssube See earlier discussion
 
@Cerbrus done
 
1:56 PM
@SterlingArcher You do know what a GPU does, right?
 
@Cerbrus done
 
@BenCraig "VR ready," sure.
 
@KendallFrey not a clue buddy. Educate me
 
Yay :D
 
not "can smoothly play VR at high settings"
 
1:57 PM
lolwat
the clue is in the name
 
@LearnHowToBeTransparent Because I'm cute
 
Appreciated, guys
 
Graphical Processing Unit
They make gud graffix
 
So basically rift graphics are trash on modern GPUs..?
I can't see that being true
 
1:58 PM
no
 
Just on budget GPUs
 
no
 
Define budget GPU
What's a trap I should watchout for
 
1:58 PM
The rift looks amazing on my 1080, but glasses :(
 
@SterlingArcher the graphics are fine, the framerates are shit - you need at least 90FPS to mitigate the motion sickness in most people
 
I have the rx 480, and its pretty good for all my vr stuff
 
Ohhhh actually I get 30% off dell with my work discount, I could buy a sick alienware
 
Your GPU is the only expensive part of a budget VR build
@SterlingArcher Um, anything under recommended spec?
 
@tereško we're not going to get past that until they find a better way to do VR
 
1:59 PM
Good news for you, they lowered it recently, due to optimizations
 
where do i look in chrome dev tools when a javascript event will not fire?
onclick="if(ctl01_BrandingBackgroundColorActionsCtrl_iconRestore.Enabled){ctl01_BrandingBackgroundColorActionsCtrl_iconRestore.OnPreClick(RestoreDefaultBackColors,ctl01_BrandingBackgroundColorActionsCtrl_iconRestore);}" title="Restore"
 
I want mad sick gfx yo
 
I dunno if I should continue or not
 
all of the other links work this way and fire the .js method, but this doesnt and shows nothing in console
 

« first day (2203 days earlier)      last day (2739 days later) »