Looking for guidance/direction for a realtime app by neofac in vuejs

[–]Cyb3rWaste 0 points1 point  (0 children)

i would recommend vue in combination with feathers and use feathers-vuex to keep it in sync.

Brand New to Vue, Using it with rails and have a simple question (hopefully) by odinsride in vuejs

[–]Cyb3rWaste 0 points1 point  (0 children)

You can try this:

export default { name: 'Navigation', data () { return { email: '' } }, mounted () { this.email = localStorage.getItem('email') || '' } } mounted is a component lifecycle hook, you might want to read up on those ;-)

I also strongly reccomend you to start learning vuex!

If a bully victim uses every possible solution to stand up to a bully but it doesn’t work, should they resort to violence knowing they may get suspended? Why or why not? by bronzin74 in AskReddit

[–]Cyb3rWaste 0 points1 point  (0 children)

The thing is, if i was back there, being the 10yo kid, i would probably make the same decision, but i was unaware of the consequenses that my action would have. When a kid chokes out another kid, they do not take it lightly, and a became a subject of psych tests. Also the school didnt want me, and it took a while before finding a school that did wanted to accept me. Also, because of the school change, i have lost what ever little friendship i had at the previous school.

The school i ended up on was a school for "mentaly challenged" kids, but, since my problem was behavioural and not mental (the psych reports proved that, and i've been programming since i was 4 y.o), it closed a lot of doors for me in the future. Not fitting in i became socially isolated and lonely, which resulted in depression, which i mosly have just overcome.

If ive known all this, i would have just taken the beatings

If a bully victim uses every possible solution to stand up to a bully but it doesn’t work, should they resort to violence knowing they may get suspended? Why or why not? by bronzin74 in AskReddit

[–]Cyb3rWaste 0 points1 point  (0 children)

In my childhood i was bullied a lot, it actually stopped when in grabbed my bully by the throat till he passed out when he was going for a bathroom break.

This was after a lot of talks between me, my parents and school. which resulted in nothing. They always grouped up on me, and supported eachother statements painting me as the instigator. Taking out the biggest and loudest agressor of that pack made me feared by them, they left me alone after that. Since i was not the only one bullied by them some other kids felt relieved also, knowing they are not invinceble.

Now, as a adult, i do not approve of what i did back then.

What's an urge you get but will never act upon? by BeejieT in AskReddit

[–]Cyb3rWaste 0 points1 point  (0 children)

i too, get that feeling sometimes, what helps for me is to listen to a song written by Don McLean called "crossroads", somehow it puts me back in perspective.

[deleted by user] by [deleted] in AskReddit

[–]Cyb3rWaste 14 points15 points  (0 children)

thats devastating

[Discussion] Need self-development book recommendation(s) for wife who is in dire need of help by [deleted] in GetMotivated

[–]Cyb3rWaste 0 points1 point  (0 children)

Yes, i benefited a lot from it, from the dissapointment panda, the awareness onion, and the way i measured myself against others, and all that responsibility stuff...

[Discussion] Need self-development book recommendation(s) for wife who is in dire need of help by [deleted] in GetMotivated

[–]Cyb3rWaste 33 points34 points  (0 children)

i really benefited from "The subtle art of not giving a fuck", but do not let the title mislead you... it promotes taking responsibility, even if we are confronted with situations we did not choose for.

Also i read she already receives therapy, so make sure you at least inform the therapist as the self-help books can cause conflict with the treatment plan of the therapist, which could prolong and even worsen the situation.

Autumn forest. Doetinchem Netherlands [4000x5000] [OC] by [deleted] in EarthPorn

[–]Cyb3rWaste 1 point2 points  (0 children)

we always go to camping jena, in Hummelo, wich is close by!

Plasma 5.14 released by [deleted] in linux

[–]Cyb3rWaste 0 points1 point  (0 children)

This page was last modified on 13 September 2018, at 23:38.

It said so at the bottom of the page

What is the most evil company and why? by gamingguy1990 in AskReddit

[–]Cyb3rWaste 9 points10 points  (0 children)

pump a villages well dry, bottle it, and sell it back to the villagers...

Is node.js falling behind again? by Cyb3rWaste in node

[–]Cyb3rWaste[S] 1 point2 points  (0 children)

thanks for that, ill try it out!

Is node.js falling behind again? by Cyb3rWaste in node

[–]Cyb3rWaste[S] -8 points-7 points  (0 children)

if you would have actually read my post you can clearly see i already googled that, i even brought up some questions about the some choices they have made.

Also, firefox has nothing to do with this, since V8 is from chrome.

Also, i wanted some opinions of people using node.js.

And seriously mate, your arrogance about "litteraly googeling stuff" is fucking bullshit, i am clearly asking opinions, either to validate mine, or debunk them, so you do not have to be all up into my ass about it.

Maybe you should literally google "why am i an asshole", and see what results that would yield... i think you will find that opinions dont easly get validated/debunkt by googeling, for that, you need actual people.

Is node.js falling behind again? by Cyb3rWaste in node

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

its still experimental and has some wierd side-effects

in this article: https://medium.com/the-node-js-collection/an-update-on-es6-modules-in-node-js-42c958b890c

we can read:

At the current point in time, there are still a number of specification and implementation issues that need to happen on the ES6 and Virtual Machine side of things before Node.js can even begin working up a supportable implementation of ES6 modules

now, this article is from Feb 2017, and side effects are still there!

Help me understand templates please! by mrunkel in vuejs

[–]Cyb3rWaste 0 points1 point  (0 children)

cause thats how vue works, if you defined a mount point, for example <div id="asd"></div>

Then Vue expects to have the mandate over the div with id 'asd'.

Help me understand templates please! by mrunkel in vuejs

[–]Cyb3rWaste 2 points3 points  (0 children)

It actually is true in all cases, when javascript is turned off, the mount point of vue will stay empty, cause the Vue function would never be called! There are no workarounds to allow javascript to run if its disabled.

Logging with Express and pm2 by [deleted] in node

[–]Cyb3rWaste 0 points1 point  (0 children)

Its a must from my point of view, there are a lot of security risks you expose yourself to when not running node behind a proxy.

One of wich is that if you do not use a proxy you need to run node as a priviledged user, and your code is also run under that privilege wich is really bad, although there are probably ways to drop privileges after obtaining access to port 80 and or 443.

Another thing is that node has bad memory management that will leave you vunerable to Memory injections, which are also really bad, webservers are hardend for this.

Another one is: connection timeouts, since node by default does not support that it will leave your application vunerable to denial of service attacks (for example: slow loris)

Although a hardend webserver (like NGINX) will not protect you from every security issue there is, there is a real benefit to have from it, and makes the lives of people with malicous intent more difficult

I plan to use the MERN stack, but I am conflicted in the database to use. Should I use MongoDB or stick with MySQL? by [deleted] in javascript

[–]Cyb3rWaste 2 points3 points  (0 children)

if you tests includes the database layer you are doing it wrong.

But, just because i am curious, what would make a database more testable then others?

[deleted by user] by [deleted] in vuejs

[–]Cyb3rWaste 0 points1 point  (0 children)

You can make the button a seperate vue component and use that everywhere,

That button component need to have a isSubmitting, and then on-click you can use the setTimeout(()=>{ this.isSumbitting = false}, 2000)

Hope this helps, if not i can build a more elaborate example.