« first day (2313 days earlier)      last day (2652 days later) » 

4:00 PM
wow.
 
hmm.. feels like they launched this new navbar in quite a hurry..
 
@littlepootis what did he lose, his talent?
 
Can't lose something you've never had
 
Hi everybody. I'd like your review on this.

I'm trying to do a chat with socket.io

The main principe of the chat is an admin to user chat only so admin can chat with every user but user can only chat with admin.

I think I will do something like :

if(namespace == admin){
do everything related to admin (with broadcast and emit to specific user)
} else {
do everything related to user (with socket.to(roomname) etc...)
}

Do you think this is a good way of doing this or am I miss using Socket.io ?
 
user2620028
@littlepootis i hope he forgets that people considered him a musician
 
4:03 PM
@BenFortune that's a nice DE skin
 
I created a little version of it, now I have to go.. will continue it soon github.com/neodev2/js-matrix-effect/blob/master/script.js
 
@tereško That's the new UI in the next big windows update
 
since when do you have to pay for dropbox?
 
oh
 
you've always had to pay for dropbox past the 5GB free tier
 
4:05 PM
@BenFortune are you serious?
 
services cost money? that's unfair
 
yes, you are
 
@BenFortune that's beautiful
it's like what Mac wants to look like
 
> MICROSOFT WANTS TO BRING A LOT OF BLUR AND TRANSPARENCY INTO WINDOWS
vista
 
hey, everybody used stardock to add blur and transparency to XP
clearly the consumers want that feature
 
4:07 PM
macOS just needs a full-width task bar.
i have these two unused squares. so dumb.
 
any taskbar meant for adults with words instead of giant fingerpainting icons would be nice
 
and I don't like auto-hide
well, windows usees icon's too..
also the icons are supplied by the applications
 
windows uses small icons meant for people with fine motor skills
 
I do aree that the windows one is superior, though
 
the size of the apple bar is the worst part
 
user2620028
4:09 PM
i hate mac but... yeah pretty sure you can resize the icons in the mac taskbar
 
no, actually, the download folder is the worst
 
mac's most visible parts are the ones dumbed down the most.
don't even get me started on all the things I hate about Finder
 
user2620028
how about that objective c
 
That, I don't care about, since I don't develop for mac.
They can use whatever they like.
 
user2620028
lets just say there is a good reason mac doesn't have as many programs :P
 
4:12 PM
"as many"? no, but everything I could want.
It's frustrating since I like aspects of windows and mac..
 
user2620028
what aspects of mac do you like?
 
the terminal and unixy enironment
high dpi support (though windows is decent, these days)
 
user2620028
so its not that you like mac
 
user2620028
its that you like unix lol
 
right.
but.. unix without hassle.
 
4:13 PM
> without hassle
 
Hi guys, is this a valid declaration for an array of objects?
var arr = [
{Section: 1, Max: 20},
{Section: 2, Max: 30},
{Section: 3, Max: 50}
]
 
it has been. I've had thing thing for over 3 years. never had to deal with wifi, sleep issues, ,etc
(comparing to linux)
 
user2620028
yes that is valid
 
user2620028
i particularly don't like mac for the incredibly high prices for low spec hardware
 
h
 
4:15 PM
I'm not a rabid fanboy. There are plenty of things I don't like. But.. I got it for having a very nearly linux-like environment, on a high dpi laptop without hassle, and it has fullfilled that.
 
hi
 
so if i was to access the 2nd max element would the correct code be arr.Max[1]
 
user2620028
yeah i would have to say i would prefer ubuntu to mac even though
 
@HatterisMad yea. sort. The new ones, absolutatly are aver priced. When I bought mine I could not find a windows machine of similar spec for very much cheaper at all.
 
any good guidelines for choosing prefixes for an angular directive?
 
4:16 PM
I keeping eyeing the dell xps 13 developer edition for my next
I'd like to go linux
But.. 1. I'd prefer 15" and 2. It needed a custom distribution of ubuntu 16.04 whihc will make using other alternatives more of a hassle.
so close, though
 
custom distribution?
like a flavor?
 
@Luggage one of the guys on my team is running that, not even the dev edition, and loves it
 
That's what I read. It uses a slightly modified version. Maybe jsut some configs, or an extra driver
but it's those little things that keep me away from linux on a laptop..
 
he's not running ubuntu, though, something a little bit more hip
 
elementary?
 
4:19 PM
Elementary is shit.
 
it's just ubuntu
 
that sounds right
 
@Luggage Go for the xps 15, no bezel makes it feel like a normal 13" laptop
 
it would seem like using ui- prefix for a directive would be a bad idea
 
it's much prettier than ubuntu
 
4:20 PM
Can anyone ELI5 Redux? The official website says "Redux is a predictable state container for JavaScript apps" - What does this really mean?
 
what are the recommended alternatives ?
 
the 15" doesn't have linux support (or had hardware not supported, I mean)
 
Ah, surely it's the same hardware though?
 
They have their own repos, adding ppas regularly break stuff, their ui has problems, etc.
 
@Munkie Redux keeps a tree of data (application state) and notifies you when branches in that tree get replaced or changed.
 
4:21 PM
I would have thought, too, but only the 13 is supposedly supported
 
Although it might have matured. The last I used was 0.4.
 
@littlepootis what, elementary?
the UI just looks better than the ubuntu default (or even plain gnome 3).
 
he described the machine as running like a chromebook with a real kernel and terminal
 
And I'll admit, that I'm not hip enough to go using the WMs you do.
 
4:22 PM
which is really what I want my desktop to be
 
I switched from Arch to Ubuntu.
 
Arch is bae, much prefer yaourt/pacman to apt
 
I might get rid of my last Fedora box and only have Ubuntu soon
still don't like the file format, but it was much easier to set them up in the cloud than rhel boxen :(
 
also, highdpi is a hard requirement. I'm a snob.
 
@littlepootis what was the reason?
 
4:24 PM
I think ubuntu makes sense for a 'work pc'. It's the most common / well supported.
 
(or debian)
 
@tereško what luggage said.
 
i guess redhat is, too..
 
It just works.
 
4:25 PM
I honestly don't need a nice WM at work, either, since I have an editor or terminal full screen all day
 
 
and ubuntu has an edge for a workstation because it's more up to date
centos has some advantages when it comes to kickstarting and massive network provisioning stuff, but having recent packages is better for a desktop :\
 
IE11 bugs are so irritating. How do you people even develop for like, IE8?
 
we don't.
 
we don't anymore
 
4:27 PM
And you shouldn't either.
 
@ssube you da real mvp, thanks! I like how that sounds
I want a pizza that bag @jake
 
Right, but some people do. Their development must slow to a crawl
 
They also can't use things like react.
To support IE8 is to be stuck in the past with your tools, too.
just search for my statements on IE8 here.. It's a bad development and business decision.
 
@Munkie I am getting that pizza bag.
 
Anyway.. IE11 has some quirks, but I don't really run into too many..
just needs more polyfills and more transpiler options turned on.
 
4:30 PM
Luggage, I develop on mac, but there is nothing it has that Ubuntu wouldn't satisfy.
 
@jake software wise, i agree.
 
Brew is eh pretty cool guy and doesn't afraid of anything
 
but i never had to fiddle with one config file or go compile one extra driver to have wifi, bluetooth, etc.
 
that's why I only run linux on desktops and servers from the HCL
never had to do that either :)
 
Right. I'd run it on a desktop in a heartbeat.
 
4:32 PM
I've started setting up VMs for each of the projects I'm working on and have a work one on my desktop now, encrypted and all that, so my mac is just for slack and sits off to the side.
 
@Luggage gentoo gentoo gentoo gentoo gentoo
 
well, slack and prod access, it has the yubikey
 
also, mac very nicely handled multiple monitors and scaling when pluggin into a projector for the first time in front of clients. With linux, i'd have to go do a lot more testing before attempting such a feat
This is one of those topics I need a prepared statement for.
I was fiddling with X config files and getting networking working in linux before you were born. I'm no stranger. I just choose not to dick with it on my work machine.
 
@Luggage Just say that you like Unix-based systems. Good read en.wikipedia.org/wiki/Unix_philosophy
 
23 mins ago, by Luggage
the terminal and unixy enironment
 
4:36 PM
👍👌
 
what is the correct way to change the address bar when an event occurs? (sec, getting code)
 
@Tiffany 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.
 
@Tiffany The history API
 
Also homebrew is an international treasure
 
aye.
 
Do I use window.location or some variation there of?
 
depends on your goal
 
let me type code, it's PL/SQL + javascript :/
 
updating window.location will reload the page with the new URL. the HTML5 History API lets you change the URL without leaving the page.
 
Cannot play media. No decoders for requested formats: application/vnd.apple.mpegurl... what's the deal with this in firefox?
 
4:40 PM
blah, so it was originally jquery, I'm wanting to convert it to pure javascript. So the script is half finished.
 
SQL and jQuery in the same script?
that's too much querying
 
needs some XQuery
 
mixing other languages in PL/SQL is confusing as fuck
 
I only played with xpath and xslt a few times, but it was always fun
the forcibly stateless nature of it was neat
 
I was going to have code but I first need to discern how I'm going to get a value since it's a child element of an ID
htp.p('<script type="text/javascript">');
htp.p('$(document).ready(function(){');
htp.p('$("#termMenu select").change(function(){');
htp.p('window.location="static URL that does not include domain name?term_in="+');
htp.p('$("#termMenu select option:selected").val();});});</script>');
there's the original code
I want to change it from jquery, because I want to get better with javascript and I want to use a native language
 
4:46 PM
that code is cringey
 
It's old. shrug
 
It's bad.
 
like 3+ years old
I'm not known for writing great code, but I'm working on it :P
 
Well, I certainly applaud the effort to ditch jQuery github.com/ndugger/youdontneedjquery
 
I want to change window.location() to whatever's appropriate, I'm guessing history.pushState()?
 
4:48 PM
Possibly; I don't know what you're trying to do
 
those things do two different things.
 
@Tiffany you gotta simplify that
 
OH GOD YES SO GOOD space.com/…
 
The package displays a course schedule for a semester for students, so they can see what's available and open. There's three pages: first page, user picks item from <option> menu, page directs user to second page, which has a form with options they can pick for the courses they're looking for (e.g. list only computer science courses), and third page displays the results. The javascript I'm messing with is on the first page.
 
@rlemon @KendallFrey ^^
I'm definitely late
but good stuff
 
4:52 PM
So the javascript would take the value from the option menu and build a URL with it, then direct the user to it.
 
sounds like pushState is not what you want then.
because... it will not direct the user anywhere.
 
Is window.open() preferable?
 
If you want to open a window, maybe
but if you use it outside of a user action (such as a click event) it'l get blocked
 
Hmmm
 
@ndugger fun fact: if you play Saturn's rings backwards, they have satanic messages
 
4:56 PM
Which way is backwards?
 
retrograde
 
I may even switch the menu on the first page to a get action with a submit button so that it's closer to being ADA compliant, because with the javascript currently, the behavior isn't apparent.
 
This picture is in an ad I just saw...
 
cute
 
@ndugger what ad?
 
4:58 PM
for a funeral home?
 
It's at the bottom of this article: space.com/…
It's about how itching is a sign of alzheimers, lol
 
poison ivy causes alzheimers, got it
 

« first day (2313 days earlier)      last day (2652 days later) »