« first day (2143 days earlier)      last day (2798 days later) » 

12:10 AM
hi guys
@Luggage am in Arlington
 
12:40 AM
For a long time I have only used languages such as Java and c++ to make software. I now want to start with web-development, and have decided (and figured out) that javascript is the language of choice, which I will use to accomplish this goal. However, whenever I see all of these frameworks that I can use, I get a little dizzy lol. I started getting familiar with node.js, but I am not sure I should pair it with a front-end framework
Is it possible (and practical, for that matter) to build good, responsive and nice-looking websited only using node.js? Or am I better pairing it/using it in conjunction with another framework? Any help/opinions are appreciated :)
 
nodejs is for the server
u will want to use a front end frame work to have nice looking website
 
I see, I will take a look at angularjs, heard that was good, although I am open for suggestions of front-end frameworks that work good in conjunction with node.js :)
 
12:58 AM
@tomSurge node.js is for the server-sde, so it has very little to do with a responsive nice-looking site.
 
@Luggage Yes, I now know that :) I will try and learn to use some good front-end frameworks as well
 
So.. yes.s. you need another framework. Well.. You need other parts.. wether you choose a whole 'framework' just just a few handy libraries is up to you
Do you have a specific project, or is this just learning?
 
Just learning at the moment
 
Angular 1.x is a common full front-end framework, but it's losing popularity. Angular 2.0 looks attractive to some.
 
Any reason to use the 1.x instead of the newer version?
And why is it losing popularity? Are people flocking over to React?
 
1:02 AM
Not for a new project, I wouldn't think.
If you already had experience in it, exising code, etc, then maybe.
It's thought of as 'enterprise-y'.
There is some React-flocking, but that's not 100% fair since React only does one part of what angular does, the 'view'.
 
Ah, I see, so basically Angular is a "full" front end framework
 
React usually needs an additional components like flux, redux, mobx, etc for state management, a routing library, and other parts
Right
Personally. I'm a React man, but there are other good options.
 
Any recommendations? Should I start using Angular, or try out React?
 
Hm.. if you had to start layout out a full app tomorrow, i might say Angular, but I think React is a good place to start.
React has one special gotcha, though, if you are new to JS..
it prefers and extends modern ES6 (the current version os JS not supported by all browsers in the wild), so encourages you to also use transpiled JS, which means a build step.
 
I see... I will try it out and see for myself. Thanks for the info/input, really helpful!
 
1:09 AM
You know of sites like jsfiddle, codepen, jsbin, right?
 
I am a little familiar with jsfiddle, yes
 
ok, good. you can use that to try out things like react without having to set up a server
 
I see.. thanks man! :)
 
np
@Luggage you around
you could use React with anything since it's just the "view" huh? So like use it for Javascript widgets?
 
I guess.. widget = standalone components?
 
 
1 hour later…
2:31 AM
@ivarni but when smth goes wrong your in the mud
 
3:01 AM
Somebody fix stackoverflow's avatar system please?
 
i have found lots of kinda contradicting articles about usage of e2e testing
is there a real good reason why use e2e when you have a team completely dedicated on testing your application all the way through its lifecycle?
 
3:21 AM
@JoeSaad that might be a okay question for programmers.stackexchange.com
not really sure probably best to ask a moderator
 
ok sounds good
i'll ask it there
thanks :)
 
@JoeSaad on second that there is no e2e so not really sure
 
Just changed my avatar. Let's see if it updates.
it.. did
 
4:02 AM
not on chat.so though
it did
 
4:27 AM
Is it possible to use a GET request to get files contents from a place such as Github?
 
yes
wait
 
Nice new profile pic poots
 
Using XHR or fetch? nope.
@AndrewL. thanks
 
Not possible? How bout downloading the file? Is it at all possible?
 
server-side? yes
 
4:30 AM
Hmm. So PHP? Not with ajax, xhr, or http?
 
Anything
Learn about CORS
 
CORS get?
 
That's what I'm reading right now :)
 
nice
alright. going to the bookstore. cya.
@William it's just you
 
5:04 AM
@Meredith \o/ thanks a lot!
@BenjaminGruenbaum Will try :)
 
user4639281
boats
 
5:54 AM
anyone knows where to start learning 3d games?
 
Perfect example of 'use jquery' for everything: stackoverflow.com/a/39188352/5647260
 
6:10 AM
how many php programmer here?
 
@KemoyCampbell 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.
 
Mostly all of us have been one at one point. You might find more in room 11 though.
 
Im a PHP Programmer
 
I just released an open source called amazo and wondering if i could get some feedback
 
You wrote this as a learning experience or do you intend this to be used in production? :)
 
6:14 AM
It is being used in production
but I also do it for the fun of it
 
Can someone test/find bugs in my website?: oncollision.cf/OnCollisionIndexPost.php
 
@CharlesCraft50 is it actually yours?
 
I could fire up my pentresting tools and run them against it
to see
 
@KemoyCampbell thx
 
6:16 AM
if there are any bugs
 
6:27 AM
your site contain high risk for cross script vulnerabilities
 
how can i fix it
 
@SuperUberDuper Uhm. No, not really. If there's a bug in a library you fix it. It's a process that's very similar to what happens when there's a bug in your own code.
 
7:00 AM
Bought the dragon book for $8........
@KemoyCampbell nice
@CharlesCraft50 by not trusting your users
 
Lol I just generated a SSL certificate and put my own name in when asked for the "Common Name". I need a walk.
 
lol..
@CharlesCraft50 Depends on what you mean by "learning 3D games".
 
7:43 AM
hello guys
i have an electron project
i need to export application for windows x32 and x64
i used electron-packager
but can't run it without the foldler resources
lol
so users need my source ?
lol ?
 
its 264mb folder...
this is not a program..it is a game..
 
8:39 AM
@gtzinos i am guessing that you used electron-packager?
 
yes
@bitten
 
well that's the intended behaviour, not many windows application consist of a single executeable
and even mac applications .app files also rarely consist of a single executable, it's just an .app file which is a folder that contains all your resources
 
i dont care for resources
i need them compiled
i dont want to send the clear text code...
i can send him and the ide to run it..
 
why would you want do to that?
and what do you expect electron to run if there is no code for it? :p
 
my friend
i need to "compile" this code
ok its javascript, it is a public code
i need just to send it minified
 
8:44 AM
Put every resource in a .tar.gz, rename it to something cryptic and uncompress it in your.. app.
 
or something else
 
if you want to send a single file just archive it (zip or tar)
 
i used boilerplate
git clone https://github.com/szwacz/electron-boilerplate.git
cd electron-boilerplate
npm install
npm run release
with this code i can export a release app
but how can i install it to my project
this is their project
 
do you know how electron works
 
so you just want to minify/uglify your javascript assets before packaging it with electron-packager?
@gtzinos this is another question ^^
 
 
1 hour later…
9:55 AM
Hello peeps
 
@AbdulhakeemImran 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.
 
10:26 AM
@littlepootis Making fake claims and using lots of marketing keywords and buzzwords
 
11:23 AM
@AwalGarg lol..
 
@bitten I dunit
 
 
4 hours later…
3:32 PM
Anyone know how to enable/disable chrome extension. Which API to use ?
 
@Paran0a What do you mean by that?
Programmatically?
You can enable/disable manually through the chrome://extensions page
 
4:36 PM
@Paran0a no, you can't disable AdBlock
 
Um.. can anyone on *nix run which red in your term and tell me what you get?
$ cat `which red`
#! /bin/sh
bindir=`echo "$0" | sed -e 's,[^/]*$,,'`
exec "${bindir}"ed --restricted "$@"
What is this..
 
I would boot up on a rescue CD and check your which binary
I think it's taking all the arguments after your shell $0 and running them against a compromised one, maybe
nah, i read that wrong
 
5:04 PM
it's running the ed command with --restricted
dlocate `which red`
shows that it is part of the ed package.
 
so... this is weird. I am running debian mate, when I log in to my only user, nothing other than the default background image and cursor displays. Tried logging in as root (default gtk theme, if that makes a difference), and I could do stuff. Tried launching firefox from terminal, and no problem. Then in the terminal I tried # su username, and no issue, but when I ran firefox from there I got this:
user@debian:/home$ firefox
No protocol specified
Error: cannot open display: :0
and in fact it didn't work
and this happens with google-chrome: Gtk: cannot open display: :0
@littlepootis maybe you can manage
everything online from that error seems to be issues when sshing into a machine
which may possibly be it as I'm currently logged in as root and not as the user
 
@towc have you forwarded X ?
 
? I saw that in the ssh issues as well, but I'm not ssh ing...
 
oh
 
5:19 PM
What did you do to break it?
 
no idea
first the internet was doing weird stuff, so ran a sudo service network-manager restart
but at that point the network icon was gone
so rebooted
 
you broke debian?
 
@littlepootis I know, I know...
and after rebooting and logging in as user I couldn't do anything other than move the cursor around. Tried tapping the power button, then a popup appeared and I chose to hibernate
at that point I got back from hibernating and logged in as root
tried rebooting again and nope
 
Um
Did something bad using mozo? Like.. hiding the panel.
 
oh no
well, I played around with mozo and hid some panels
but not that one
and I had rebooted and restarted the service various times before the last time I had used mozo
so
 
5:23 PM
boot to your blank background, switch to another TTY and fire up the command for a window manager
 
@Luggage command for window manager?
 
? I can't pull up a tty
 
the binary
 
no interaction
 
it thought there was a key combo to switch to a text temrinal.. was when I used linux
the F-keys with some modifier key..
 
5:24 PM
Ctrl + Alt + F1 though F6 on Debian.
 
also, once at a terminal, check logs.
for errors.
 
i remember getting in a situation like this.. iirc Ctrl + Alt + Fn didn't work..
 
5:40 PM
Hope all are doing good!
Can anybody help me on this, stackoverflow.com/questions/39191943/…
 
So, the mate-wm was giving me another error
Rebooted, tried to log in as root, but that got fucked as well
It's about time I reinstall Debian anyway to fix my many other mistakes
Currently on elinks trying to look for a firmware+mate testing or stable iso
It's not going well
I mean, at this point I just need the firmware, shouldn't have issues installing mate alone after I have wifi
But then may fuck up trying to connect to WiFi without a gui
Elinks is awesome tho, don't even need to boot up another PC if I don't have a wm or de
 
@towc it's time to switch to the better distro
 
You mean windows?
:P
 
Ubuntu
 
I mean, I might as well start learning about arch, you're right
 
5:52 PM
I've used all of the popular distros and it doesn't really matter what you go with
 
But but... coolness factor?
 
It depends on what you use your PC for..
 
@littlepootis This. Pretty much all the distros out there will allow you to install the tools you need to do actual productive stuff.
The only OS I can't really work with is Windows due to its pitiful shell
 
@ivarni true
 
And even with that limitation, git bash shell solves a lot of the issues I have
Though it's still just a glorified cygwin
 
6:10 PM
So @littlepootis you suggest no lvm+cryptolucks?
Any equal alternatives?
 
@littlepootis bullshit
 
ooh, someone tried running apt-get on RHEL
 
And yeah, the debian installer is just picking a default root partition size
I need to figure out how to do the things manually then :/
 
6:32 PM
This is awesome, I've a customer who uses a registrar that makes me fill out and print a PDF file and then mail it to them every time I need to change the DNS configuration
What. The. Actual. Puck.
"Please note that a digital signature is not valid"
 
@tereško ok
 
@littlepootis well. It is bullshit. There is a huge difference between rolling-release distro like Arch and something like Ubuntu LTS
 
@ivarni WTF? i mean for a domain ownership change i'd understand it but for dns changes? also, why not switch to dns servers under your (or the customer's) control?
 
Turns out I'm too stupid to do the manual partitioning the way it should be done
 
@ThiefMaster Well I'll be switching NS records ASAP and then hopefully never look back :)
 
6:38 PM
@tereško um, of course
 
Can I set the luks encryption up after setting up the lvm so I can expand the root partition first?
 
And those differences make a HUGE difference when writing code, never forget
 
@towc forget luks, lvm and other shit.
If you do want them, just spend a few hours learning about the
You're basically doing every single mistake you've done before :P
I ditched Windows and switched to linux ~9 years ago. And the reason was that the file manager that the distro I used then shipped with allowed me to create files with any file extension.. easily, whereas Windows Explorer didn't.
 
well, windows does, just click the checkbox that shows file extensions for known types (which should REALLY be on by default)
 
anyone build a node spider before. I am trying to find the simplest one with no luck so far.
in addition I would like to index the pages somehow.
 
6:53 PM
@Luggage well, it was 9 years ago
 
@littlepootis you are up late
 
always been like that
 
or early
 
> often via console, because extensions are hidden - I know I could disable that feature
 
6:55 PM
Wait, you mean.. making it show them.. oh..
 
The OP already said he won't accept the right answer, which is turn on the feature that lets you do that.
> I just went for showing file extensions again.
He answered himself with the correct answer
 
@William late
Now, though, I use only 3 GUI applications: Chromium, Steam Client, and Terminal Emulator.
 
terminal emulator gui app lol
make that 2 gui apps then
I need node help on windows
 
nodejs .chm manual?
 
@littlepootis I can't load a package and I don't understand why
if I type the following on the command prompt everything works
node
require("async")
but in a package it doesn't work
it works now don't know why
 
7:13 PM
well
 
I think it was because I had a script named async.js
and I was trying to import async
 
7:33 PM
Just started learning JS. Want to learn angular. Should I start directly with Angular 2 or the 1.x versions?
 
the non-version would be the best
 
Lol
 
if you just started learning JS, you should stay da fuck away from frameworks
 
Been learning it for a couple of months and I am familiar with the language fairly well. Been programming in java for a couple of years, so I have an easy time grasping new languages
Or should I just steer away from Angular all together, and just go with React and other frameworks?
 
ohh, nice.. github.com/lodash/babel-plugin-lodash A babel plugin that will reduce my package size.
 
7:39 PM
@tomSurge your definition of "just started" is somewhat warped :(
 
@tomSurge A lot of people like angular and a lot of people like react. Keep in mind that it will help you a lot if you understand how the library/framework does what it does and why their abstractions work. React and angular does not really try to solve the same problem. Angular is a full-on framework while bare-bone react is mainly a view library. You will most likely be better prepared to compare them if you got some lower level knowledge of DOM APIs and how javascript apps are usually built
 
8:26 PM
anyone around?
 
nah I'm square
 
let's say I have the following js code
["first block of text with random content","different block of text","1 2 3 4"]
How do I determine which block of code matches "content random with" the closest?
@StephanMuller
 
"the closest" as in fuzzy matching? no idea, shit's hard
anyway, don't ping people when asking a generic question. just ask and see who replies next time
 
fuzzy matching yes I guess. Could I ask the question on the main site or not?
 
that's what the site is for, isn't it?
but read the faq
make sure you ask the question in a good way, like show what you've tried already etc
 
8:30 PM
I have no idea how to do it accept see if the exact words are in the block of text
 
then do some research first. I'm off to bed, so I can't hold your hand right now
 
sweat dreams
 
@BenjaminGruenbaum thanks, but that url gives me the "Sorry, the file you have requested does not exist." error...
 
9:33 PM
Is there any way to get rounded windows in electron?
 
10:19 PM
urgh, it looks as though when I run firefox& in the terminal, I still get control of the terminal, sure, but when I close the terminal firefox also closes (debian testing, mate DE)
how do I run an "unrelated" window from a terminal?
 
oi
Anybody got some tacos? I'm hungry
 
Anybody got some luggage? I'm moving.
 
uuuh, nice, parenthesis
thanks. Had ran out of things to google
 
that was the first result from googling: "open program not tied to terminal" :)
 
10:23 PM
also, any experiences with applications randomly quitting if you right click them on the application bar in debian testing+mate?
 
Maybe you are using the bad google.
 
@Luggage that's pretty convoluted
 
@towc and the & sign typically works
 
@Luggage most definitely google's fault
oooooh middle click is "delete"
that didn't happen on my previous install
 
I'm too tired to code right now
 
11:27 PM
Unintended perk of chromebook: I charged it 3 weeks ago, and haven't opened it since (sleep mode, not off) and battery is still 100%
 
how's that even possible?
it's a lie
 
I believe it, chromebooks are the best battery wise
Still impressive
 
My charger is in the basement lol 100% battery, 7 hours and 30 minutes left, and the last thing opened was united airlines website to check into my vegas flight which was like 3 weeks ago
I'm very much impressed
 
What do you use your chromebook for besides surfing?
 
I have an SSH terminal on it, and it's super easy to install a linux boot
But mostly SSH and google docs
I built SourceUndead almost 100% on this machine
 
11:37 PM
Chrome OS = Linux + Chromium?
 
I'm actually not sure if Chromium has a linux base
 
According to Wikipedia, ChromeOS is linux based
 

« first day (2143 days earlier)      last day (2798 days later) »