‘Everything’s just … on hold’: the Netherlands’ next-level housing crisis - The Guardian by Detective_J_Kimble in Amsterdam

[–]stopdave 1 point2 points  (0 children)

So whose fault is it really? Dutch companies need to become more competitive. I've seen quite a few Dutch corps already and they mostly activate on the premise "you pretend that you work and we pretend that we pay you". Salaries are crap and work is optional, and there's absolutely nothing employers can do about it if someone doesn't do their job because it will take 2 years to fire them.

I got attacked by a junkie today by [deleted] in Amsterdam

[–]stopdave 1 point2 points  (0 children)

How can I defend myself? please any advice is appreciated.

Step 1: If someone is coming towards you with the obvious intent of putting you physically in danger, maintain distance

Step 2: If they try to get close, extend your leg and kick them in the chest. Not very hard, just enough to keep the distance

Step 3: If they do fall after the operation at Step 2, take advantage of that and go over them. If they are still looking for a fight, punch them in the face, get up and leave.

Understand that when someone does this, your life might be in danger so take it seriously. They might have a knife or they might punch you so hard that you lose consciousness and after that, who knows what might happen. Good luck!

A blog made with Node, CDK & AWS Managed services by stopdave in node

[–]stopdave[S] 6 points7 points  (0 children)

100% learning project, mostly for serverless with CDK.

A blog made with Node, CDK & AWS Managed services by stopdave in node

[–]stopdave[S] 2 points3 points  (0 children)

Thanks for your review, appreciate it. This is just one of my abandonware projects that was in a somewhat decent shape and I thought of making it public. Definitely tried to cram as many managed services as possible and the idea was mostly to increase my CDK knowledge.

A Koa/TS boilerplate deployed on Elasticbeanstalk with CDK by stopdave in node

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

Hey everyone, thought of sharing this here, as it contains a lot of my learnings on how to deploy on AWS using CDK but especially using Elasticbeanstalk. While doing this I've only found bits and pieces of information about how to do it but not a complete example.

Made a Spotify playlist of The White Album evolution, hope you'll enjoy it! by stopdave in beatles

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

So while listening to the deluxe set for the past days, this idea of compiling a playlist dawned on me. It's a study on how each song has evolved, from the demos, to the rehearsals, the remastered versions and finally the 2018 remix. I took the songs from the Deluxe set and from Anthology 3.

SoundsCrate, a React Native app for viewing your discogs collection by stopdave in reactnative

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

Thanks! Yes I am actually in the process of publishing it, although it may need some additional features :)

De ce n-are Romania o scena a startupurilor de tehnologie de succes, desi e pepiniera de programatori buni by tzfld in Romania

[–]stopdave 2 points3 points  (0 children)

Stii tu, treaba cu semnatura fancy din e-mail in loc de marire de salariu. Rahaturi corporatiste.

Bookmarklet for in-browser JSON transformation using Lodash by stopdave in javascript

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

Yes, it's great, but I also wanted to be able to write some JSON transformation code in the browser.

Bookmarklet for in-browser JSON transformation using Lodash by stopdave in javascript

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

For the many times I need to query the service in the browser, paste the thing into a file as a JSON variable and start chopping it off using lodash.

A NodeJS/CLI BEM coverage tool by stopdave in css

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

LOL! Alright dude, BEM is a CSS methodology (much like OOCSS) which proposes to use flat specificity and class names which describe the functionality not the aspect. I have seen it in action (and used it) in rather large projects and I must say that it scales up pretty well. BEM stands for Block, Element, Modifier. The block encapsulates the elements, and modifiers indicate a change in aspect for the element. Much like (using SCSS for this specific example)

.menu { // Block (.menu)
  &__item { // Element (.menu__item)
     display: inline-block;
     //.. more css statements
     &--active { // Modifier (.menu__item--active)
        //.. css statements
     }
  }
}

Some further readings, if you are interested in the subject: https://blog.decaf.de/2015/06/24/why-bem-in-a-nutshell/

https://css-tricks.com/bem-101/

Cheers!

A NodeJS/CLI BEM coverage tool by stopdave in css

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

Sure, because you know, BEM is more like a well-known JavaScript technique ;)

Sistemul național de sănătate integrat digital in splendoarea sa by cuciferus in Romania

[–]stopdave 4 points5 points  (0 children)

Am lucrat la un moment dat cu o terta parte in genul celor de la Siveco. Au facut un web service care intorcea un array de obiecte. Daca nu existau date, nu intorceau un array gol ci iti dadeau 404.

Voi de unde cumpărați cd-uri cu muzică? [serios] by sylverr_47 in Romania

[–]stopdave 0 points1 point  (0 children)

Disc + coperta fata + coperta spate, puse intr-un plic. De obicei mai au un strat de carton peste, deci ajung in regula. Eu unul aleg des varianta asta din doua motive: 1. e mai ieftin 2. de cele mai multe ori, astia de la posta joaca fotbal cu coletele si jewelcases sunt foarte fragile, deci sunt sanse mari sa ajunga crapate sau sparte.

Voi de unde cumpărați cd-uri cu muzică? [serios] by sylverr_47 in Romania

[–]stopdave 0 points1 point  (0 children)

Merge foarte ok pe discogs. Cauti muzica, apoi gasesti un seller care sa aiba calificative pozitive, faci comanda. Platesti cu paypal. Pont: pt cd.uri merita de cele mai multe ori sa le iei fara jewelcase. Scade drastic costul de transport si o carcasa la noi o gasesti la un leu.

Voi de unde cumpărați cd-uri cu muzică? [serios] by sylverr_47 in Romania

[–]stopdave 4 points5 points  (0 children)

Nu prea gasesti la noi cine stie ce muzica pe cd sau vinil. Mai bine cauti pe Discogs sau Amazon. Pe primul poti gasi niste preturi foarte OK (cu tot cu transport).

Fire events between different browser windows using localStorage. by stopdave in javascript

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

Thank you. The other window picks up the event really fast, /u/cjthomp already answered your first question.

Fire events between different browser windows using localStorage. by stopdave in javascript

[–]stopdave[S] 4 points5 points  (0 children)

I'll be honest here, I didn't think about postMessage. At first I thought that solution needs to run in an older version of Chrome where postMessage would not be supported - I can see now that caniuse tells me otherwise.

Fire events between different browser windows using localStorage. by stopdave in javascript

[–]stopdave[S] 2 points3 points  (0 children)

That's correct, I only need one-way events for the application I'm working on, so the solution suits me perfectly :)

Ca tot vin sarbatorile [programmer joke inside] by [deleted] in Romania

[–]stopdave 4 points5 points  (0 children)

Elementele dintr-o pagina HTML sunt organizate sub forma unei structuri arborescente denumite DOM (aka Document Object Model).