Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Nice. welcone to event programing!
always make sure your event handler does not trigger the event you are listening to.
seems trivial, but not as much as you thing it is. -
BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS BALLS βΎπ±π³πΎπππππππππΎβΎπ³π±ππβ½β½π₯ ββπ΄π΄π΄π΄βͺβ«βͺ
-
jeffersong05yYeah, about 15 years ago there not so many antiviruses, I remember only 3: avast, MacAfee, and Kaspersky. All of these are awesome in their specific fields, I mean each has its pros and cons. When it comes to Mac, somebody keeps saying "there are no viruses on Mac!". But I am answering: "Well, let's bet on 100$ - if https://macsecurity.net/view/... won't find anything, 100$ comes to me. In another scenario - comes to you". I have already gained 500$:)
Related Rants
-
rephiscorth38Everyone here ranting about a fucking missing semicolon. I can't remember the last time a missing semicolon wa...
-
philcr54Linux doesn't need viruses people fuck that shit up themselves
-
linuxxx68So, someone submitted a 'bug' to Mozilla. As some of you may know, in the next year, the new mass surveillanc...
My first experience with Swift ended in me infecting myself with a virus (kinda). I wanted to create a macOS app that would listen for a global key event, catch it and then type a word.
During development I set it up to listen for ANY key event and to type "BALLS". So what happened? I compiled the code, everything looked good, I started the app and pressed a key which emitted a key event. The event was caught by my app and it typed "BALLS", just as expected. However, the typing of the word caused a NEW key event to be emitted, which the app also caught. The infinite loop was a fact. FUCK!
I tried closing down XCode but all I could see was "BALLS BALLS BALLS" everywhere. I tried everything I knew but it just kept typing "BALLS". I had to hold down my power button to make it stop.
I finally finished the app (which I named "The Balls App", I kept the word "BALLS"). I solved this issue by only listening for KeyUp and when emitting the "BALLS" word I just used KeyDown.
undefined
virus
swift
xcode
balls
fuck