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

5:00 PM
except for the browser user standpoint
unless you include elementary school
 
@littlepootis ok, but ssh is a tool? I thought that ssh would be a secure protocol
 
eventually, yeah
 
it's both
 
@MattewDeveloper the protocol and the tool too.
 
5:01 PM
it's a protocol and the client for the protocol
sshd is the server(/daemon)
 
So, ssh and telnet aren't useful?
Thanks for the correction
 
They are
 
ssh is pretty much vital, if you work in a linux shop
telnet is a great debugging tool
 
Thanks :D
 
even as a developer, version control largely operates over ssh
 
5:03 PM
When do you use telnet for what fiddler can't do?
 
when you git push your code, it uses ssh to connect to the server
 
@ssube run-on sentence
 
@JanDvorak is fiddler that gui proxy for osx?
 
@ssube or HTTP
 
and I mostly use telnet to test firewalls and make sure servers are handling requests correctly
 
5:04 PM
Anyway I from big would become a programmer, web designer and Systems Engineer linux
 
I'm a php designer
 
@ssube it's for Windows, too
 
@ssube I'm pretty sure that's the guy on the roof
 
@ndugger php designer? O.O
 
@JanDvorak I only run windows so corpsys will fix my computer for me.
 
5:05 PM
programmer php you means?
anyway, telnet run on windws
windows*
 
Everything day to day is centos+tmux(+ssh usually)
 
@MattewDeveloper no
 
Nope, php designer
 
@ssube check out one of my new little tests jsfiddle.net/testopia/xf1tpo4v/1
 
phphotoshop
 
5:06 PM
does it look like water?
 
@Asperger does your test involve ruining my computer even more than it already is?
 
@Asperger kind of, although the speed the water moves at isn't consistent.
 
@JanDvorak yes
 
@ndugger I've used you before
 
If you were to use the timing that RAF provides, you could adjust the movement to animate smoothly.
 
5:07 PM
@JanDvorak haha you can send me a bill for the damage :D
 
Sure, just tell me your credit card number and physical address
 
@MattewDeveloper It's not connecting two terminals. The first creates a tcp server, the second connects to it.
It's just socket communciation.
 
@JanDvorak MAC address is useless, you want IP address
 
nc is just a really useful tool for creating tcp/udp sockets
 
5:09 PM
@KendallFrey I want his snail mail address
 
I would do a box with ON with ::before
but doesn't work
 
1 message moved to Trash can
@MattewDeveloper Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
body {
	background-color: #CCC;
}
body > div.box-avatar > *  {
		width: 13%;
	border-radius: 100%;
	display: block;
	margin: 0 auto;
	border: 5px solid #1A1A1A;
}
div.box-avatar > img::before {
	content: 'ON';
	color: #000;
	font-size: 14px;
	background-color: #fff;
	width: 100px;
	height: 100px;
}
 
@JanDvorak I actually recreated the milky way in 3D by creating planets spheres with for loops, using custom shaders and then computer generated continent textures with perlin noise. Grafiks are equivalent to playstation 3. You can navigate around too. World is huge with many starts and planets to visit + suns with erupting coronas.
When I tested it on my first computer it actually died
 
user1596138
@Asperger Link plz
 
5:13 PM
the grafic card failed
 
user1596138
I created facebook
 
I am planning to put it online once my website is online
 
@Asperger Have you tried Space Engine?
 
I heared of it. I think i saw some youtube videos
actually no sorry. Just googled
I was using WebGL for the task. You might be familiar with it
 
I think I need to learn WebGL
 
5:16 PM
What git server do you recommend? I want to transfer files from my home computer (where I can code but not test) to my work computer (where I can do both, but only during work hours) without involving the central repository (guys want a functional = tested head there and creating a new remote branch doesn't feel ideal)
 
@KendallFrey you will love it!! Learn openGL 4. It will give you a solid foundation
 
There's a game I've been wanting to make for years, but it requires advanced rendering
 
@JanDvorak gitlab!
 
@Asperger I said WebGL
 
comes in deb and rpm packages, so setup is just apt-get install gitlab-ce or yum install gitlab-ce
 
5:17 PM
@KendallFrey depends what you want to do. WebGL is based on opengl
 
has a full UI, github-style, plus key management and whatnot
 
I just want a solid WebGL abstraction that doesn't suck :cough: three.js
 
if you want to make nice shaders you would need to have some understanding of opengl
 
@Asperger WebGL is just the ES 2.0
 
@Asperger Yes I'm quite familiar with 3D graphics technology
 
5:17 PM
@Asperger yeah
 
@Asperger That's entirely untrue
 
@JanDvorak for your "deploy" (the production server), you'd just have a cron job/puppet script check out master every time it runs (every 5/10/30 minutes) and only merge to master when you want a feature to go.
 
Oh ok. I know I learned some openGL first then went on with webGL
 
The only thing you need to write shaders is and understanding on GLSL
 
I used XNA back in the day
 
5:18 PM
I guess I just point it at an existing repo and set up port forwarding on my router and I'm done? Thanks.
@ssube I don't own the central repository
 
Is is pretty cool though. Creating a circle for me was a mess at first. I needed to construct triangles, the for loops to construct a sphere out of those triangles.
Cool thing is since everything is built of triangles I have full control over the resolution
opposed to just importing a complete primitive
 
@JanDvorak then why are you asking about a server?
 
Basically, we have a master branch (which positively absolutely has to run flawleslly) and a dev branch (which also has to work)
 
@ndugger nah, the way OGL feeds data in is pretty important
 
@ssube I want to transfer data from hy home machine to my work machine without touching the central repository
 
5:23 PM
@JanDvorak you can push peer-to-peer over SSH, sort of, but it's not a great idea
can you just use a feature/topic/working/private branch?
 
Private as in public, named after me?
 
however your team does branches
 
Can I set up a different upstream default and downstream default?
 
not sure, but the git origin docs ought to know
 
As in, local/master pulls from central/dev but pushes to central/honnza
why is peer-to-peer git not a great idea?
My idea was to set up a server at home and pull from it at work
 
5:27 PM
@JanDvorak gogs if you don't have enough cpu power to handle gitlab
 
I just learned some CSS4. Its awesome as hell
did you guys check it out on W3?
 
@JanDvorak I think so, but never tried
 
!!urban gogs
 
@JanDvorak git can push/pull from a local filesystem or anything over ssh
 
@JanDvorak GOG Our Great Orange God. A synonom for the god of wrestling, the immortal Hulk Hogan.
 
5:28 PM
so you can pull from anything that you can log into and has the history
but p2p connections like that are prone to breaking, so if you can just use the existing server and a branch, it's better
 
prone to breaking in what sense?
 
if I have a promise wrapped in a callback is there any way (without modifying the outer structure) to return the inner promise??? instead of wrapping in another promise ofc.
return new Promise( (resolve, reject) => {
  foo( bar => {
    resolve(bar.poop()); // .poop() returns a promise
  });
});
what I have
I will just convert foo to return a promise, but out of curiosity
 
@JanDvorak your home IP changes, the tunnel is down, credentials, one machine shuts off, anything
 
@rlemon You can't (it doesn't exist yet), but you can return a promise tracking the inner one
 
yea that was what I did first.
then it struck me as odd, so I'm making foo return a promise
 
5:31 PM
For all you know the callback could never be called, or it could be called multiple times
 
I have a problem
I have a button with an onclick that runs a function
 
But if foo returns a promise, you can just return foo.then(()=>bar.poop()
 
But whenever I click it, instead of running the function it brings me to some weird link
 
dumb question... I have an array of objects before and after some event, is there some way to find what changed, what was added, and what was removed?
 
@wyattbergeron1 start by changing onclick to addEventHandler (I assume you don't use jQuery)
 
5:32 PM
store a copy beforehand, and compare
 
okay
Is that it?
 
@wyattbergeron1 is the button inside a form?
 
@ssube by "tunnel is down" do you mean the ssh server process?
 
You need to prevent it's default action of submitting the form
 
5:34 PM
How do I do that?
 
!!google javascript button prevent default action
 
@rlemon I'm kinda hooked on Diablo 3
 
oh boy... don't mention that game
worst rape of all times... diablo2... sigh...
 
worst?
 
5:40 PM
nitbitch
 
Dom
Hi folks
 
@Dom 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.
 
You are free to correct my mistakes as well
 
It doesn't bring me to a random page anymore
but it doesn't do anything
 
That's better, isn't it?
 
5:41 PM
@jAndy yeah but this is 3 :D
 
Dom
@CapricaSix Thanks
 
@wyattbergeron1 open your developer console, throw some console.log debug statements in, and check for any errors.
 
Dom
I've given an answer to someone's question, where they're building a chat app with jQuery. They retrieve new chat messages via AJAX every few seconds and they want to compare the results with the last message they retrieved. They plan to do it by finding the last chat element posted and comparing but I've suggested storing the last message in either a global variable or local storage, and stated that it's better for performance. Am I right?
 
I forgot to declare the function
 
@SterlingArcher 3 is anything but diablo :/
 
5:44 PM
wow
 
@Dom pretty much
 
@wyattbergeron1 shame on you >:(
@jAndy in my defense I never played diablo and diablo 2
 
@JanDvorak any part of that
tl;dr: keep it simple, just use a branch on the server
 
Dom
@AwalGarg Thanks (phew!) :)
 
5:45 PM
codepen.io/Mattew/pen/reQpZw how to I could position the box On the upper right corner of the avatar?
My code is:
 
that is.. truly... a gap in experience. big time. Go for it :-)
 
body {
	background-color: #CCC;
}
body > div.box-avatar > *:first-child {
		width: 13%;
	border-radius: 100%;
	display: block;
	margin: 0 auto;
	border: 5px solid #1A1A1A;
	z-index: 50;
}
span {
	text-transform: uppercase;
	color: #fff;
	background-color: #000;
	opacity: 0.4;
	border-radius: 20px;
	position: relative;
	padding: 10px;
	left: 53%;
	bottom: 66%;
	transition: all 3s;
}
span:hover {
	opacity: 1;
}
p.nick {
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	background-color: #000;
 
@Dom the performance factor is moot here though. it won't matter much. But it is a good idea to separate state from dom.
 
Dom
@AwalGarg How come? I figure chat apps are especially plagued by performance issues when for example heavy GIFs come in to play?
 
codepen.io/Mattew/pen/reQpZw how to I could position the box On the upper right corner of the avatar?
 
5:48 PM
@Dom accessing a DOM element is not necessarily slower than accessing a record from localStorage. localStorage exhibits most of the performance issues with DOM. heavy gifs cause the browser to lag because of repaints I guess, it doesn't have much to do with the dom.
chat apps (and web apps in general) written with imperative code with manual state management and state in dom tend to have memory leaks, which is why they lag. dom is not the bottleneck there.
 
Dom
@MattewDeveloper With your current implementation:
 
@AwalGarg wat
 
1 message moved to Trash can
@Dom 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
 
@ssube tl;dr: running a git repo as a server is fine but running a server on a local machine is prone to network errors?
 
@AwalGarg what does localStorage have to do with the DOM?
@JanDvorak approximately, yes.
 
5:51 PM
@ssube nothing? when did I say it does?
 
> localStorage exhibits most of the performance issues with DOM.
 
bad wording I guess. I meant if you look at the reasons why DOM is slow, most of those reasons apply to localStorage too. synchronous api, operations take place in the main thread along with userland code. etc.
 
Dom
@AwalGarg Ok I wasn't sure about that specifically, I don't know much about the performance of local storage, how about with the global variable? and is using a global a bad idea anyway?
 
@AwalGarg the DOM is slow because of repaints/reflows and the complex structure. localStorage suffers none of those problems.
Using a synchronous API is not slow for key:value stores (redis is single-threaded and synchronous)
I have no idea how fast localStorage actually is, but it's for different reasons.
 
1 message moved to Trash can
@Dom 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
 
5:53 PM
@AwalGarg globals variables also have synchronous api running in userland code :-D
 
Dom
arghhhhh
won't format properly
 
1 message moved to Trash can
@Dom 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
 
@ssube yeah, the complex structure is one of the reasons not apply to ls. and dom doesn't necessarily have to be painted at all. but it is still relatively slow.
 
@JanDvorak most code is single-threaded and userland, throughout the system, and it's rarely a performance problem
 
@JanDvorak suuuuure
 
5:54 PM
remove the @ mention from the code, then ctrl+k the code
 
@ssube localStorage is IO bound, not CPU bound.
 
@AwalGarg the sheer number of potential side-effects is the problem for the DOM
@AwalGarg that's very, very, very unlikely
 
^ that too (the one above this)
 
saturating iops takes gigabits/sec of write, which the browser will have a very hard time pushing
 
Dom
span {
	text-transform: uppercase;
	color: #fff;
	background-color: #000;
	opacity: 0.4;
	border-radius: 20px;
	position: absolute;
	padding: 10px;
	left: 45%;
	top: 10%;
	transition: all 3s;
}
@MattewDeveloper see above
@KevinB thanks I tried ctrl K with the @ but it was still going funny, good to know ctrl K though
 
5:56 PM
Also, I would expect LS to be cached
if only by the OS
or even the disk cache
 
Dom
"Caprica Six has invited you to join Trash can." :/ lol!
 
on the off chance the browser doesn't cache it in-memory and flush to sqlite or something on shutdown
 
@ssube well I wasn't suggesting LS is "slow" if that's what you got. OP suggested that storing things in LS instead of DOM would speed up your app. I said that's unlikely.
 
I don't think it's unlikely
 
I think it's rather likely
assuming that the storage was a bottleneck
 

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