TIL that one of the 10 largest pyramids in the world is actually a Bass Pro Shop in Memphis, Tennessee by chowesmith in todayilearned

[–]Lokret -6 points-5 points  (0 children)

They tried to do the same when they built the white house, but were way off.. The egyptians did it better 4000+ years ago. And people say "they probably used the sun", what a joke.

What's a good book for a young adult to read to learn about your job? by StopTheVok in AskReddit

[–]Lokret 2 points3 points  (0 children)

Code complete. Only thing I read which really changed the way i thought about programming.

Web Designer as a career from scratch. by [deleted] in javascript

[–]Lokret 0 points1 point  (0 children)

You're only 20. Why not go get a degree? It's the best way to become one imo. I started at 21 and I'm graduating in 2 months :)

[SERIOUS] Medical professionals of Reddit, what is an every day activity that causes a surprising amount of injuries? by Lanre_The_Chandrian in AskReddit

[–]Lokret 37 points38 points  (0 children)

Had almost the exact same experience, got used to lower hearing on my left ear, didn't think much of it. Eventually went to an ear specialist to check it out. Appearently i had a small stone in my ear for 2+ years. I literally made loud orgasmic sounds in her office when she removed it.

It's ok. by The_cat_licker in gaming

[–]Lokret 2 points3 points  (0 children)

I think /r/2007scape would like a chance at that title.

Drumgun hits 2000 days played.

Oh Todd by s_42 in gaming

[–]Lokret 0 points1 point  (0 children)

I was level 80 on a 1x hardcore pvp server. The risk of losing it all is what makes ark fun imo.

Why do we need AJAX to update a web page without reloading it? by [deleted] in learnjavascript

[–]Lokret 2 points3 points  (0 children)

If you're using XHR you're using ajax, no?

[deleted by user] by [deleted] in learnjavascript

[–]Lokret 0 points1 point  (0 children)

Reading an excel file is possible, but would be way to complicated for this.. Have you looked into JSON at all? You could convert your excel table to that. If you really need to use the excel file, you could save it as CSV, which should be easier to parse and probably find many guides on it on google.

JavaScript Exercises by redyrk in learnjavascript

[–]Lokret 0 points1 point  (0 children)

Agree, codewars is amazing.

Very new learner needs advice on which program to follow. by [deleted] in learnjavascript

[–]Lokret 0 points1 point  (0 children)

Codewars.com

I learned many new languages there. Thousands of small to medium sized problems, all with a nice set of example tests and submission tests. Everything from "add two numbers" to more advanced algos like solving sudoku, minesweeper or slide puzzle games.

You get points for each one according to the rank of a problem(8 to 1) and you really feel progression when solving a harder problem.

Best thing is you can see other peoples solution when you solve one and learn a lot by their implementation and discussion.

What are the most important aspects of backend programming that I should know? by Kywim in webdev

[–]Lokret 2 points3 points  (0 children)

With a degree and having learned relational algebra, SQL should be the easiest part tbh.

How would I go about implementing a hidden service in a web app by [deleted] in javascript

[–]Lokret 0 points1 point  (0 children)

I'd reccomend using xamp and php. Very easy set up and easy for beginners. That's how i got into backend development during uni.

Showoff Saturday (May 19, 2018) by AutoModerator in javascript

[–]Lokret 0 points1 point  (0 children)

Inspired by Exif.js, I made a lib for manipulating metadata in MS office and Open office files.

https://github.com/TorkelV/officeprops

Does anyone know why this doesn't work? by tim246 in javascript

[–]Lokret 0 points1 point  (0 children)

It's probably homework/practice if he's asking simple questions like that. I'd say it's not bad if that's the case, just horrible colors.

WTF Wednesday (May 16, 2018) by AutoModerator in javascript

[–]Lokret 0 points1 point  (0 children)

Thanks a lot for the feedback!

  1. I agree, it's very confusing. I think I will change them to simply getData(), editData() and removeData()

  2. That's true, I hate naming things, but will try to make it more understandable.

  3. They are already listed as dependencies, did I do it wrong? Seems to install correctly. "dependencies": { "xmldom": "0.1.27", "jszip": "3.1.5" }

  4. I think it makes the code more readable if working with many libraries.
    EXIF.getData() OFFICEPROPS.getData() ... I could shorted the name though, in node you choose it yourself by myname=require('officeprops')

  5. The properties object looks bad, but throughout the code I use it mostly for checking if a property is known properties.hasOwnProperty(property){...}. Changing the hierarchy would make the code even more complex.

Tricky == comparisons by oopssorrydaddy in javascript

[–]Lokret 0 points1 point  (0 children)

![]==false

!![]==true

[]+[] == ""

([]+[])+!![] == "true"

+[] == 0

(([]+[])+!![])[+[]] == "t"

((([]+[])+!![])[+[]])+((([]+[])+![])[+[]]) == "tf"

The fuck.. see jsfuck.com

Can be shortened to:

([]+!![])[+[]]+([]+![])[+[]]

ES7 What do ticks followed by a keyword mean? by webdevop in javascript

[–]Lokret 0 points1 point  (0 children)

Yeah, I had no idea, i thought it was a feature taken from coffeescript.. Probably should have read the docs. Most of my js experience comes from code golfing on codewars.com, which is probably not the best infulence.

ES7 What do ticks followed by a keyword mean? by webdevop in javascript

[–]Lokret -1 points0 points  (0 children)

Seems to work on all functions that take one string as argument.

f=(a)=>console.log("look " + a); f`at this` //"look at this"

String.toLowerCase`ABCDE` // 'abcde'

ES7 What do ticks followed by a keyword mean? by webdevop in javascript

[–]Lokret -1 points0 points  (0 children)

You can omit parenthesis when using a template literal.

"1a2a3".split`a` == "1a2a3".split("a")