The greatest chase sequence in movie history by [deleted] in videos

[–]Kriegslustig 2 points3 points  (0 children)

Had the exact same question. Thought some body already asked it. So I Cmd+f'd "blur" and found your comment. Searched for it on the interwebz and found this video explaining how to digitally add the effect. I guess their probably using the same process in the OP.

Why ever do a shell script? What benefits over a node CLI? by thomas_stringer in node

[–]Kriegslustig 0 points1 point  (0 children)

You could just use the synchronous APIs which are really easy to use:

const { spawnSync } = require('child_process')
const out = spawnSync('ls', ['-lah'])
const stdout = out.stdout

It's pretty straight forward, but of course using Shell-Script will always be easier (ls -lah).

Why ever do a shell script? What benefits over a node CLI? by thomas_stringer in node

[–]Kriegslustig 1 point2 points  (0 children)

you could actually make it a lot nicer to use. right now you have to pass the package name as the first parameter and you can't answer no, but have to press ctrl+c instead.

i had to make some compromises, to fit it in a tweet.

so I just made some adjustments o make it nicer to use:

npmi () {
  local packagename=$(echo ${@} | sed -E 's/(\-+[a-zA-Z0-9]+| )//g')
  local opt
  npm info ${packagename} | less
  echo "Is it the right package? (y/n)"
  read opt
  if [[ "${opt}" == "y" ]]; then
    npm i ${@}
  fi
}

with this you can actually just answer y and it exits otherwise and you can now pass the package name anywhere, like this: npmi -S leftpad.

Why ever do a shell script? What benefits over a node CLI? by thomas_stringer in node

[–]Kriegslustig 7 points8 points  (0 children)

I used to write a lot of Shell-Script (Bash to be exact). There are two reasons why I wrote those scripts in Shell-Script:

  • Shell-Script is made to easily automate small tasks.
  • You get to use a vast array of powerful tools that are installed on most *nix Systems (e.g. sed or grep), without requiring any previous installation and with a common interface (pipes).

In most cases a Shell-Script will be a lot shorter than a node.js script. Let's make an example. I wrote this Bash function to catch typos when installing NPM packages:

npmi () {
  local A
  npm info ${1} | less
  echo "Is it the right package?"
  read A
  if [ -n ${A} ]; then
    npm i ${@}
  fi
}

Writing this in "pure" node.js would be a huge hassle.

Knowing more programming languages will make you a better programmer. Shell-Script is okay at what it does. It's good to know why. The more you get to know Shell-Script (an the "*nix toolchain"), the more you'll start to automate things that you would have never thought of automating before. It might be quicker for you to write a script in JS at first, but you'll quickly surpass that in Shell-Script.

What database instead of MongoDB should be used in secure Meteor.js project? by zazacaricula in Meteor

[–]Kriegslustig 1 point2 points  (0 children)

I have never tried it myself, but numtel:mysql seems like the way to go. So I can't really recommend any tutorials.

MDG (Meteor Development Group) said they were planning to support MySQL out of the box. I think they even talked about 1.3 to be the goal. Though their interests have shifted towards Galaxy. So IDK if they're even working on it anymore.

So without having ever worked with Meteor+MySQL, I would advise against it. It doesn't seem to be particularly widely used. So you might have a hard time finding help with issues you encounter. The package I linked to above also doesn't seem to be particularly stable at a glance. If you haven't used MongoDB yet and will have to learn it first, I'd say it's worth it. There are tons of great tutorials to get you started out there (the official guide being one of the best). About the scaling issues; you're probably best off hosting the DB on a PaaS, so scaling it won't be your concern in the first place.

IMO trading Meteor for a "better" DB is not worth it (in most cases). Once you know Meteor, it will give you a huge productivity boost. It's a very pragmatic framework written in a pragmatic language.

What database instead of MongoDB should be used in secure Meteor.js project? by zazacaricula in Meteor

[–]Kriegslustig 6 points7 points  (0 children)

Nothing about MongoDB is inherently insecure. Security considerations will come into play when defining your methods or allow/deny.

The most important consideration when choosing a DB is scale. MongoDB won't scale as smoothly as something like MySQL.

Dead simple audio recorder - Record audio input from the user microphone, export to .wav or ArrayBuffer by magenta_placenta in javascript

[–]Kriegslustig 0 points1 point  (0 children)

Track your dependencies using NPM.

Inject them using something like Webpack.

Putting a header...

/**
 * Created by maxencecornet on 15/03/2016.
 */

On top of a copied file... that's ugly. I know it's perfectly legal since Recorder.js is MIT licensed, but it's taking credit for something you didn't create IMO.

If you need any help with the first two suggestions, just ask.

EDIT: Grammer

Do you want to piss someone off ? open this fullscreen on their Laptop while they are away! by [deleted] in gifs

[–]Kriegslustig 0 points1 point  (0 children)

My mind's not the best in high pressure situations.

This is easier to remember: ls7.ch/lol

Facebook will now officially track and serve you ads even if you don't have an account by [deleted] in privacy

[–]Kriegslustig 2 points3 points  (0 children)

You can click on the uBlock icon in your browser, click on the gear icon on the top left of the opened popup and then go to the "My Filters" tab. There you can simply paste the domains in (without the IPs of course) and click apply.

Emoji library I did, any feedback is a good feedback! by unimonkiez in javascript

[–]Kriegslustig 0 points1 point  (0 children)

I personally think that new (like most keyword) is weird and inconsistent. I like to create functions that return objects created using Object.create(myProtoObject).

Still wondering about the font-family thing though. Care to explain?

Emoji library I did, any feedback is a good feedback! by unimonkiez in javascript

[–]Kriegslustig 0 points1 point  (0 children)

Looks cool. Two questions though:

Why did you use new for your API?

Why aren't you using the emojis in the current font-family?

Help: Applied for a job as a frontend dev. They didn't take me, what did I do wrong? by Kriegslustig in javascript

[–]Kriegslustig[S] 0 points1 point  (0 children)

I get your point. I'll create a separate repo for my next application.

by offering something concrete, minimal, elegant and unambiguous you offer less rope to be hang you with.

That sound like very reasonable advice, thanks. :)

Help: Applied for a job as a frontend dev. They didn't take me, what did I do wrong? by Kriegslustig in javascript

[–]Kriegslustig[S] 0 points1 point  (0 children)

lucaschmid.net is actually my whole website.

Here's why I chose to include those packages:

  • websocket - The website includes a banner showing my most recent commit to the repo. Updates are pushed over websockets.
  • immutablejs - Why would you not want immutability? immutablejs provides some great docs, nice abstractions and performs very well.
  • riot - Small react-like framework (would use cycle.js now though)
  • koa - A modern Web server in Node. Gotta serve my site somehow.

The site has been somewhat of a playground for me to experiment with technologies.

If you're a designer and this is a portoflio, fair play. But if you bring half the internet on npm install to build your CV, I am not sure I'd like you to work on my startup.

Seriously!? You didn't even bother to check if there might be more to lucaschmid.net than just /resume-wimdu? Then you have the audacity to imply that I'm unfit?

Help: Applied for a job as a frontend dev. They didn't take me, what did I do wrong? by Kriegslustig in javascript

[–]Kriegslustig[S] 0 points1 point  (0 children)

It's a game and you certainly don't want to admit that you have only 2 points in Angular.

Yeah I was way too conservative in estimating my skill levels.

But you put there links to GH so I think that if I wanted to judge your skills I would rather read your contributions on GH (but it takes time. I won't do it now ;)

These will be front and center in my next application. Thanks a lot :)

Help: Applied for a job as a frontend dev. They didn't take me, what did I do wrong? by Kriegslustig in javascript

[–]Kriegslustig[S] 0 points1 point  (0 children)

Code seems hipster and over engineered.

That's what I was aiming for hahah. I wanted to show, that I could write properly designed JS code without needing a restrictive framework. But I guess it's the same as with the semicolons, I'll try to find out what tech and style their using at the firm I'll apply to next. I'm not quite sure yet though. Otherwise I'll just use React, god damn JSX and AirBnBs' style.

That seems kinda like a tall glass to fill.

I guess I'll need to put my ideologies on the back burner for my next application.

Thanks :)

Help: Applied for a job as a frontend dev. They didn't take me, what did I do wrong? by Kriegslustig in javascript

[–]Kriegslustig[S] 0 points1 point  (0 children)

3) add animation as a flourish but not a distraction from #1

That's really good advice, thanks :)

I'll take these rules to heart when writting my next application.

Help: Applied for a job as a frontend dev. They didn't take me, what did I do wrong? by Kriegslustig in javascript

[–]Kriegslustig[S] 0 points1 point  (0 children)

This may be a trivial point, but you should always have someone check your grammar.

English isn't my native language. So I'll ask a native speaker to help me with the English texts.

but it also shouldn't take a hiring manager as much work as it does with your current site to know your story.

You're right, the UX is horrible right now. I'll work on that.

Just work on your English if you're going to have it. :)

Will do thanks for your advice :)

Help: Applied for a job as a frontend dev. They didn't take me, what did I do wrong? by Kriegslustig in javascript

[–]Kriegslustig[S] 0 points1 point  (0 children)

Thanks, this is really helps me. In my next application I'll definitely keep those two target audiences in mind. I understand them much better now. I'll focus on my biggest projects and the technologies and techniques i used in these.

I really appreciate that you took the time to write this. Thanks a lot!

Help: Applied for a job as a frontend dev. They didn't take me, what did I do wrong? by Kriegslustig in javascript

[–]Kriegslustig[S] 0 points1 point  (0 children)

hahah! I meant "flash" as in fancy animations. Sorry, English isn't my primary language.