https://josephg.com/blog/electron-is-flash-for-the-desktop/
>And right now Slack is sitting on somewhere between 300 megs to 1 gig of my laptop's ram
>a chat client using 1 GiB of memory
>newfags will defend this
>>59996295
Uhhh dude it has a /giphy command that puts a gif in the chat automatically. That's worth 1gig of memory, it's not like I don't have 7 others.
Use the slack website. Why would you install it? I haven't installed a chat app since aim back in 1998
I was once put on a project to finish an Electron based application.
Oh god that was my worst nightmare come to life. It was the embodiment of everything I hate about modern web development, a complete mess of angular, insane gui frameworks, endless upon endless npm dependency libraries, obscure architecture patterns, strange node.js services, could only be compiled with "make" scripts, and I could go on, jesus fuck it was a nightmare. It was made by three young hipsters fresh out of school, god knows why they were hired, and got kicked out due to contractual disputes and as the lead web dev in the company I had to finish this mess.
And it was supposed to work in a citrix environment for several big ass enterprise compananies, but it wasnt compatible because they had made some piggyback nodejs services that runs alongside the electron app (because Electron is fucking shit as it is a glorified chrome browser and therefore sandboxed) so it could PRINT PDF FILES JESUS CHRIST AND THE PROGRAM WOULDNT RUN WITHOUT IT. They did not inform us of this until after release and every customer started to complain.
>tl:dr
FUCK ELECTRON AND THIS FUCKING WEB HIPSTER MOVEMENT
>be me
>reading books at library
>overhear 2 QT3.141592653's talking
>"francine, what can't i sudo apt-get mpv on this windows pc?"
>"i dunno i dont use that botnet os LOL"
>go over, night-in-shining-armor.webm
>"h-hey do you need to install mpv on windows?"
>they both say "fuck off pajeet"
MFW
>>59996087
Poo in loo, obvi
>>59996087
Where the fuck do you live?
TELL ME
amazing thread
>macOS desktop poster will never marry you
good bye everyone
Is this the new desktop thread?
>>59996035
owo
>>59996126
stop sexualing my daughter nigger
Do you write your own .bat/.sh files to deal with menial everyday tasks on your computer?
If yes, What kind of tasks do they perform?
If no, why won't you make your life easier?
Yes.
>>59995903
Yes. I'm going to dump some of them.#!/bin/bash
day=$(date +%F%R%S%s)
Folder=$1
BACKUPDIR=$2
if [[ $# -ne 2 ]]; then
echo "This script takes in only 2 parameters. Exiting...."
exit 0;
fi
if [[ -d $BACKUPDIR ]]; then
File="$BACKUPDIR/$day.tar.bz2"
elif [[ ! -e $BACKUPDIR ]]; then
mkdir -p $BACKUPDIR
File="$BACKUPDIR/$day.tar.bz2"
elif [[! -d $BACKUPDIR ]]; then
echo "$BACKUPDIR exists but isn't a directory"
exit 0;
fi
if [[ -d "$Folder" ]]; then
tar -cvpjf $File $Folder
find $File* -mtime +7 -exec rm {} \;
elif [[ ! -d $Folder ]]; then
echo "$Folder exists but isn't a directory"
exit 0;
elif [[ ! -e $Folder ]]; then
echo "Invalid directory name"
exit 0;
fi
Works great with cron
>>59996405
Forgot to say that this was my backup script
Here's my youtube-dl script:#!/bin/bash
CURRENT=$PWD
VIDEODIR=$1
FILELOC=$2
INDEX=$3
if [[ $# = 2 ]]; then
if [[ -d $VIDEODIR ]]; then
cd $VIDEODIR
elif [[ ! -d $VIDEODIR ]]; then
echo "$VIDEODIR exists but isn't a directory"
exit 0;
elif [[ ! -e $VIDEODIR ]]; then
mkdir -p $VIDEODIR
cd $VIDEODIR
fi
read -p "Download playlist [1] or individual videos [2]? " answer
if [[ $answer = 1 ]]; then
echo "$(<"$FILELOC")"|xargs youtube-dl -f best -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' -i
cd $CURRENT
elif [[ $answer = 2 ]]; then
echo "$(<"$FILELOC")"|xargs youtube-dl -f best -i
cd $CURRENT
else
echo "Not a valid option. Exiting..."
exit 0;
fi
elif [[ $# = 3 ]]; then
if [[ -d $VIDEODIR ]]; then
cd $VIDEODIR
elif [[ ! -d $VIDEODIR ]]; then
echo "$VIDEODIR exists but isn't a directory"
exit 0;
elif [[ ! -e $VIDEODIR ]]; then
mkdir -p $VIDEODIR
cd $VIDEODIR
fi
read -p "Download playlist [1] or individual videos [2]? " answer
if [[ $answer = 1 ]]; then
echo "$(<"$FILELOC")"|xargs youtube-dl -f best -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' --playlist-start $INDEX -i
cd $CURRENT
elif [[ $answer = 2 ]]; then
echo "$(<"$FILELOC")"|xargs youtube-dl -f best --playlist-start $INDEX -i
cd $CURRENT
else
echo "Not a valid option. Exiting..."
exit 0;
fi
else
echo "This script takes in only 2 or 3 parameters. Exiting...."
exit 0;
fi
How do you reduce an array of like-objects into a single object in JS? The Array.prototype.reduce method is confusing to me.
> inb3 meem lang
such as:var data = [
{count: 1},
{count: 4}
];
with the expected output of:{count: 5 }
>>59995835
also note that not all elements in the array are valid (that is, some are null, so the reduce(function (prev, next) ...) signature doesn't work.
>>59995835
>such as:
>var data = [
> {count: 1},
> {count: 4}
>];
>with the expected output of:
>{count: 5 }
Like:var reduced = {count: 0};
for (var d in data){
reduced.count += data[d].count;
}
?
I could be wrong, I just learned JS last week
Why haven't we got holograms like yugioh yet?
I want to use shit like Skyscrapper and yumi in a 4 way intersection and scare the shit out of people with it.
>>59995630
why the fuck would people be scared if they knew shit like that exist?
>>59995630
Because you touch yourself at night.
>>59995683
Not everyone would know what it is dude. I know people who have no idea what the fuck Pokemon STILL is in 2017... You really think they would know jack shit about Duel monsters?
>>59995689
(._. )
Roll with me bois
>>59995625
le role
Rollin'
>>59995625
Rolling.
Just got a server rack from a friend, like the one in this pic. what are some things that I can do with it?
If you reinforce the front, you could probably lock someone in there against their will for a while.
>>59995593
Build a cluster out of cheap used dual socket xeons, you can get them for like $30
>>59995607
I'm american so most people would be to wide to fit :(
Which mobile browser do you prefer /g/?
>>59995591
Puffin Browser with a VPN
>>59995591
Safari
>>59995650
Working on the VPN situation rn so
http://web.casio-intl.com/asia/en/calc/sp/s100/?topics
>>59995543
so was this posted on the 1st and no one noticed?
Who was the fucking retard who made this thing a filter icon?
You.
is it a highlighter?
I need some advice /g/
I've had a 4,1 Macbook for about 9 years now and the most recent version of mac OSX it supports is no longer receiving updates. I've tried putting linux on it several times but I've never gotten the trackpad drivers to work the way they should.
What linux distro is the most 'mac hardware' friendly?
>>59995298
I've gotten Ubuntu to run on the same computer easily with no problems.
>>59995298
my path was osx->ubuntu->osx->manjaro
>>59995360
>>59995298
this is for the black core2duo model
>website has custom selection/highlight color
>website disables right click
>website has scroll down ad on mobile
>>59995142
What is this image meant to signify?
Previous thread: >>59982478 (Cross-thread)
Welcome to /fglt/ - Friendly GNU/Linux Thread.
Users of all levels are welcome to ask questions about GNU/Linux and share their experiences.
*** Please be civil, notice the "Friendly" in every Friendly GNU/Linux Thread ***
Before asking for help, please check our list of resources.
If you would like to try out GNU/Linux you can do one of the following:
0) Install a GNU/Linux distribution of your choice in a Virtual Machine.
1) Use a live image and to boot directly into the GNU/Linux distribution without installing anything.
2) Dual boot the GNU/Linux distribution of your choice along with Windows or macOS.
3) Go balls deep and replace everything with GNU/Linux.
Resources:
Your friendly neighborhood search engine (try to use a search engine that respects your benis such as searx, ixquick or startpage).
$ man %command%
$ info %command%
$ help %command%
$ %command% -h
$ %command% --help
Don't know what to look for?
$ apropos %something%
Check the Wikis (most troubleshoots work for all distros):
https://wiki.archlinux.org
https://wiki.gentoo.org
/g/'s Wiki on GNU/Linux:
https://wiki.installgentoo.com/index.php/Category:GNU/Linux
>What distro should I choose?
https://wiki.installgentoo.com/index.php/Babbies_First_Linux
>What are some cool programs?
https://wiki.archlinux.org/index.php/list_of_applications
https://directory.fsf.org/wiki/Main_Page
>What are some cool terminal commands?
http://www.commandlinefu.com/
http://bropages.org/
>Where can I learn the command line?
http://mywiki.wooledge.org/BashGuide
http://linuxcommand.org/tlcl.php
http://www.grymoire.com/Unix/
>Where can I learn more about Free Software?
https://www.gnu.org/philosophy/philosophy.html
>How to break out of the botnet?
https://prism-break.org/en/categories/gnu-linux
/t/'s GNU/Linux Games: >>>/t/749768
/t/'s GNU/Linux Training Videos: >>>/t/713097
/fglt/'s website and copypasta collection:
http://fglt.nl && https://p.teknik.io/wJ9Zy
>(Cross-thread) (Cross-thread)
Are proprietary fonts /fglt/ approved, or do they hurt my freedom somehow? What does rms say?
>>59995163
>proprietary font
Enjoy your cache exploits
dis just for fun /g/entomen
want to listen to some music while watching to ANIME girls in sync with music in HTML5? Enter 0x40 hues....
http://420.mon.im/ (420 edition)
http://0x40.mon.im/ (main kawaii edition)
^ if these don't load for you your browser is SHIT!!! haha
sauce: https://github.com/nolanlum/0x40hues (JS/HTML5)
https://github.com/nolanlum/0x40hues (C++)
bumping my earlier thread since 4/20 is bout to end: >>59988409 :p
Akarin loves you.
>requiring javascript
>>59995148
Is the JavaScript nonfree?
>>59995164
probably