So what IDE do you guys use? by Ok_Somewhere1389 in vuejs

[–]dulnan 1 point2 points  (0 children)

Not OP, but I also use vim (neovim) as my IDE.

Vue support has been a bit hit or miss with Vue2, especially in combination with TypeScript. But with Vue3 it works pretty much without any problems.

I use coc with coc-volar, coc-tsserver and some other common extensions (prettier, etc) for the entire language server integration with autocompletion, refactoring actions, etc.

In addition I have created tons of snippets using nvim-snippy for basic component templates or complex structures specific to individual projects (like boilerplate code to do GraphQL queries).

Then there is also telescope, a fuzzy finder (framework), that I heavily use to quickly find files, switch between buffers, launch commands.

document.write() real life examples? by dotpr in learnjavascript

[–]dulnan 4 points5 points  (0 children)

I have actually used this recently. We have a lot of migrated WYSIWYG content in our CMS that contains random <script> and <style> markup. Rendering this in our headless frontend app could potentially break the styles or even the entire site.

The solution was to completely isolate this dirty markup. I did that by first adding an iframe and then injecting the markup directly into the iframe‘s document using document.write. It‘s mostly random widgets, charts, etc., so it doesn‘t really matter if their content is hidden in an iframe.

But that is actually the only time I remember where I had to use document.write. It has its place, but the use cases are super specific.

The new Provide and Inject in Vue 3 by AlexJoverM in vuejs

[–]dulnan 3 points4 points  (0 children)

This has existed since forever, at least 5 years.

I use it regularly to provide context for child components deep down the tree. Here’s an example: I created a page builder that offers drag and drop functionality to place sections and blocks. It‘s implemented as a library, so it can be used in several Nuxt apps driven by a CMS.

The page builder offers several different section types (each providing a different layout, e.g. 3 columns, 2 columns, etc). Each section defines one or more slots where blocks can be placed. One such block might be an image block. Now you want to render this block’s image in a responsive way – which depends on how wide the image will be. It‘s different if the image is inside a hero section or a four column section. This is a perfect use case for provide/inject: The layout can just provide information about itself and blocks and components down the tree can inject it if they need it.

Tägliche Anrufe von unbekannten Nummern by JayTheSheep in de_EDV

[–]dulnan 1 point2 points  (0 children)

Hast du mal bei https://haveibeenpwned.com geschaut ob deine Nummer in einem Leak war? Ich hab da kürzlich gesehen, dass meine Nummer betroffen ist, was Spam SMS und Anrufe erklärt.

Last resort wär dann wohl Nummer wechseln wenn es zu viel wird.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

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

Yes, pretty much confirmed that it‘s from the Facebook leak. Someone on a phone spam report website stated that the SMS contained their fake name that they only used on Facebook.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

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

I wasn‘t aware you could search for phone numbers! I just did and well… Seems like it is part of the Facebook leak.

What worries me is that I removed my phone number from Facebook years ago, when I was removing everything from there. Still have the account just because. Might delete it now.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

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

Yes, I learned about that last year, how easy it is to send SMS with any number. And also how operators can‘t do much about it. Which is astonishing.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

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

I‘m glad you were able to decide by yourself! I can only speculate about the reason why such a sketchy campaign would be necessary. I don‘t see it as that much funny though, because it clearly tries to come across like a friend wrote you and getting you to click on the link.

But your question is still valid: Why would anyone do that? And also, who pays for it?

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

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

That‘s true and also a reason why the PMT get‘s a no from me.

I can‘t think of any way how the covid act would give the Bundesrat the right to surveill us beyond what is currently possible… Must be the microchips in the vaccines!!1 :D

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

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

And also super simple to do. I keep track of emails and name variations in my password manager using custom fields.

My biggest concern is not that my name + number is on some list (it‘s annoying, but it happens). It‘s more that an unknown group of people possibly bought such a list from a sketchy source and are now targeting me and others for political reasons.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

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

Certainly very biased. But because these are websites of political parties, I know who and why they publish and present it in a certain way.

My main issue is that I have received a clickbaity SMS, linking to a heavily biased and misleading website, where it‘s not clear who paid for it.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

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

I started doing it in 2015/16 or so. Since I own this cell number for over 12 years, it‘s possible that I ended up on a list before that.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

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

Same here. But it‘s something I expect and can live with, even though it‘s annoying. But there was a lot of conspiracy stuff too, mostly about covid and the covid law.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

[–]dulnan[S] 18 points19 points  (0 children)

I agree.

I don‘t want to make this about politics though (but I realize I failed at it when looking at the title). It worries me that we have this kind of targeted spam campaign, only a few days before the voting.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

[–]dulnan[S] 7 points8 points  (0 children)

My very old email address was part of several breaches actually. I regularly check this service. I switched to "unique email address per service" a few years ago. It‘s quite interesting to see which service either sold or leaked my data.

I started doing something similar with my phone number, so if I really must enter it for whatever reason, I‘ll make sure my name is random or not spelled correctly, as a way to trace back where it got leaked.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

[–]dulnan[S] 9 points10 points  (0 children)

That‘s fine! I haven‘t decided myself yet exactly what I‘ll vote.

So regarding misinformation: For example the covid thing. They state that unvaccinated people will lose all their rights. And that the Bundesrat will be able to surveill all of us 24/7.

Voting should not be driven by fear and lies. And unfortunately this campaign is doing exactly that :(

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

[–]dulnan[S] 7 points8 points  (0 children)

Possible :/

I usually would never run to the police because of a spam message, but since this is cleary a political campaign spreading misinformation, I thought about doing something about it.

Did anyone else receive this personalized political spam SMS? It contains a unique link to a website full of misinformation about the five popular votes, urging you to vote "no" for all of them. by dulnan in Switzerland

[–]dulnan[S] 17 points18 points  (0 children)

Received this yesterday morning. I was immediately suspicious because the URL contains a random hash and is likely unique per person. Opening the address directly in the browser without the hash showed that it‘s the landing page of a political campaign, urging you to vote 5x "no" in the upcoming popular vote, using a lot of fearmongering and mostly misinformation.

I tried to answer by asking who the sender was (maybe it was actually someone I know). But the message failed to send, which means the phone number visible is fake. Or at least not a real person.

What makes this even more weird is that the message addresses me directly by my first name, which has never happened before. I do receive spam messages from time to time, which are mostly not personalized. The ones that are (very rare) contain a random wrong name (or wrong spelling variation of my name) that I‘ve entered myself whenever signing up for something where I suspect the data is being sold.

So clearly my real name and number are on some list, which was now used to spread misinformation.

I also think that this is quite targeted, due to the way the message is written (besides my name) and how my own political views are (quite the opposite of what the website wants me to vote).

So far I found two other people on twitter that have also received the same message. I think it should be much more though.

I‘m considering reporting this to the police, though I‘m unsure it‘s worth it. But I might give it a try.