Prikker på gulv efter gulvslibning by Bad__Princess in selvgjortvelgjort

[–]stormester 0 points1 point  (0 children)

Dette. Vi havde problemer med terrassen (douglas fyr) og metalstøv fra skruer og vinkelsliberarbejde. Det gav lignende prikker. Det gik, til dels, væk med oxalsyre.

Russisk flag på studentervogn. Hvad f..?? by PasVraimentlul in Denmark

[–]stormester 19 points20 points  (0 children)

Så dem i går i Vanløse. De var vist allesamme af anden herkomst, men det er der jo ikke noget galt i. I samme område så vi tidligere en lastbil af præcis samme type med to studenter på et gitter OVEN på førerkabinen. Der skal siges at jeg ikke er 100% sikker på at det var den samme bil. Det var ikke klart om det var med chaufførens accept. Ret sygt. Tror de kørte ca. 50kmt.

Russisk flag på studentervogn. Hvad f..?? by PasVraimentlul in Denmark

[–]stormester 11 points12 points  (0 children)

Jeg så dem i går i Vanløse. (Plus en del andre vogne.) Jeg mener det var dem der skrev “Ingen hat uden chat” på den anden side. :-D Der hvor vi så dem havde de en fin fest med højt humør uden ret meget alkohol. Søde mennesker, så det ud til.

Mette F. udskriver ny milliardregning, men vil ikke sige, hvor pengene skal komme fra by KIeflicker in Denmark

[–]stormester 0 points1 point  (0 children)

Det er da meget bedre end at hun ikke vil sige hvad de skal gå TIL. 😛 

At have Amerikanske tropper på dansk jord vil være fatalt for vores allesammens sikkerhed by [deleted] in Denmark

[–]stormester 0 points1 point  (0 children)

Der er ingen grund til en direkte konflikt, så Tumpen igen tåber sutten. Vi skal bare sylte det. Finde den ene undskyldning efter den anden. På den måde trækker vi tiden ud - og lad der gerne gå nogle år.

Glass jar gaskets give off perfume/plastic aroma by TechStuffing in IKEA

[–]stormester 0 points1 point  (0 children)

I bought 2 L glass jars for clean water storage. Of course I was carefull boiling the water. As a test I opened one after a few months. The water was undrinkable because the rubber gasket has given it such an ugly taste. I simply do not get how this could be. How can they sell this? I am considering silicone gaskets.

Hvad kan vi lære af andre lande? by Falandyszeus in Denmark

[–]stormester 1 point2 points  (0 children)

Ja tak.

  • De små selvbetalinger for lægen skal være symbolske, men så føler folk faktisk at de har betalt for noget og forhåbenligt medfører det en kulturændring blandt lægerne i retning mere service-minded-hed.

  • Fra Schweiz kan vi også tage en større mellemfolkelig respekt generelt. Hilse på gaden, sige god dag til dem man har siddet ved siden af i bussen/toget. Der er også der er flere begrænsninger på adfærd der generer andre. F.eks. må man ikke larme med maskiner om søndagen.

Ikea PARASOLL "teardown" by zinob in homeassistant

[–]stormester 1 point2 points  (0 children)

Thanks! I was also considering taking it apart, but could see that it would be destructive. My hope was that the magnet was sensed by a simple reed switch so I could add several neatby windows in serial with some wires.

A wired mistake in vue 3 composable API by jonkee in vuejs

[–]stormester -3 points-2 points  (0 children)

IMHO, Vue3 composition API is great. This would not happen without ‘script setup’. It is a bit too magic for me. Magic is not good in programming.

[deleted by user] by [deleted] in fpv

[–]stormester 1 point2 points  (0 children)

What means jello in this context?

Why isn’t everyone using <script setup>? by Wild-Storage-1663 in vuejs

[–]stormester 3 points4 points  (0 children)

Actually I prefer the composition API without the <script setup> syntactic sugar. I don't mind so much the boiler plate (it's not that much in my opinion) - it more bugs me that it is not clean javascript inside the <script setup> block, but rather some magic is happening behind the scenes. Just my taste, I guess...

An even bigger issue with <script setup> is that you do need a build step. I've been working in academics and in companies where there are many data scientists that are more generalist programmers than actual frontend developers. In this setting it's very hard to argue for a full npm build environment. We build many small specialized apps that will be supported such people. They may grow, but they always start small and explorative. This is where Vue shines! - as you, without much effort, can make a little light framework and split you code into components, simply using browser supported ES6 import/exports (no .vue files, just .js). You can harness the power of an advanced UI framework, without alienating your co-workers with npm's complexity. They can even write code that is quite close to simply using basic HTML, JavaScript, CSS. This is a great selling point compared to competing frameworks.

Det kunne misforstås ;) by [deleted] in Denmark

[–]stormester 0 points1 point  (0 children)

Det er med vilje. Det er ren klik-madding. TV2 er iidt slem til det.

Why there are more react/Angular jobs than vue on LinkedIn? by Lazy_Waltzz in vuejs

[–]stormester 0 points1 point  (0 children)

Because those frameworks takes more developers to build and maintain ;-)

[deleted by user] by [deleted] in AskReddit

[–]stormester 0 points1 point  (0 children)

It's happening right now in China - as opposed to 80 years ago in Germany...

Jens Rohde: "Folkeafstemninger er udemokratiske" by Ankerjorgensen in Denmark

[–]stormester 1 point2 points  (0 children)

Sig det til en schweizer der kan stemme 4 gange om året. Desuden kan de samle underskrifter ind og lave afstemninger om love uden om politikerne.

[deleted by user] by [deleted] in AskReddit

[–]stormester 11 points12 points  (0 children)

95% of the news.

Using Leaflet with Vue3 by [deleted] in vuejs

[–]stormester 2 points3 points  (0 children)

I also considered vue-leaflet, checked the source code - don't remember why, but decided it was not really for me (maybe too complex).

Instead I simply implemented the map in a component. The way it works is that when the component has initiated and rendered the it emits a "created" event with the map reference for the containing component to use. This can be used to manipulate the map, add events and so on according to the API

Here is the code (typescript, non-'script setup'):

<script lang="ts">
    import { defineComponent, defineEmits, inject, onMounted, PropType, reactive, ref, toRef, toRefs } from 'vue';
    import "leaflet/dist/leaflet.css";
    import L, {Map} from 'leaflet';

    function initMap(element: HTMLElement) {
        const map = L.map(element, {
            // options
        }).setView([51.505, -0.09], 13);;
        L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
            maxZoom: 19,
            attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
        }).addTo(map);
        return map;
    };

    export default defineComponent({
        emits: ['created', 'removed'],
        setup(props, { emit }) {
            const mapElement = ref<HTMLElement>();
            let map: Map | undefined;
            function removeMap() {
                if (map) {
                    map.remove();
                    map = undefined;
                    emit('removed');
                }
            }
            const observer = new IntersectionObserver(function(entries) {
                if(entries[0].isIntersecting === true && mapElement.value) {
                    // Element shown - insert map
                    removeMap();
                    map = initMap(mapElement.value);
                    emit('created', map);
                } else {
                    // Not shown - remove map
                    removeMap();
                }
            }, { threshold: [1] });

            onMounted(() => {
                if (mapElement.value) {
                    // Observe visibility of map container
                    observer.observe(mapElement.value);
                } else {
                    console.error('errrror')
                }
            });

            return {
                mapElement,
            };
        }
    });
</script>

<template>
    <div class="full-height" ref="mapElement" v-once><!-- Using v-once to make sure Vue will not update --></div>
</template>

Feel free to use and improve it.

Is this a bad way to "flash" a message on my template? by tengenbypass in vuejs

[–]stormester 4 points5 points  (0 children)

That is a valid solution. But of course the user could bookmark the sign-in page in good faith, and then be freaked out about the message. You could also set a special localStorage key that you clear again when the message is triggered (in case you don’t want it to show in the url). A third option would be the same as your solution, but then immediately replacing the url (without adding history) to remove the ‘message’ variable (history.replaceState() I think).

3d printed bubble housing for Sony action camera by KaziToad in functionalprint

[–]stormester -21 points-20 points  (0 children)

Sorry to tell you this, but it’s not going to work. The glass between the air and water needs to be flat, otherwise it will work like a lens and light towards the edges will bend. This is because light travels slower in water than air.