Soptik's recent activity

  1. Comment on Why Go and not Rust? in ~comp

    Soptik
    Link Parent
    Sure! Maybe it's clear from the book, but I completely missed that lifetime isn't how long an object lives. It's how long an unchanged object lives in current location in memory. It's such a small...

    Sure! Maybe it's clear from the book, but I completely missed that lifetime isn't how long an object lives. It's how long an unchanged object lives in current location in memory.

    It's such a small detail, but it really helped me when building new programs. I can write about it in detail later, but I don't have time right now, so I hope the very core of the explanation is enough for now. I'll include some examples later.

    Edit: this is nice memory management cheatsheet.

    2 votes
  2. Comment on Why Go and not Rust? in ~comp

    Soptik
    (edited )
    Link Parent
    Rust is great. I love it. It’s brilliant language. But if I knew both of them, Rust would probably stand aside most of the time. You probably already know at least something about Rust memory...

    Rust is great. I love it. It’s brilliant language. But if I knew both of them, Rust would probably stand aside most of the time.

    You probably already know at least something about Rust memory model. It’s genious idea and it works great, but you need to think a bit different to actually be able to use it. It took me about 4 months to get used to it. Until than, I just wasn’t able to write any complex application. The learning curve is really, really steep. But one day, everything just clicked and I realised how powerful Rust really is.

    Once you get used to it, you start thinking in a different way. This is the main reason why I love rust. Not because it’s fast, efficient or powerful, not because of the environment or for the language features themselves. I love it because it made me think outside of the C#-y OOP box.

    So while I would strongly recommend Rust as a learning experience and means of learning new ways to program software, I don’t think it is the best language for day-to-day programming. You just aren’t as efficient with Rust as you could be with any other high-level language. It’s fine for projects that require high efficiency, or projects that I’m doing because it’s fun - I really enjoy writing in Rust. But for general day-to-day work when I have to get something working as soon as possible, and Rust would just slow me down? No.

    About Rust compiler, mostly irrelevant to this

    Oh and btw, the compiler is amazing. Using variable that is empty at the time? It’ll tell you what happened in plain english, tell you where are you accessing the variable, where (and when) you emptied the variable, and an example of good and bad code and reference to documentation. It’ll often even suggest what exactly should you edit in your code to make it work (and it’s correct most of the time!). And the same with all the errors you can encounter (even the greek question mark thing), especially rust-only ones, that you tend to encounter very often as beginner.

    And if you decide to start learning rust, get in touch once you get to lifetimes. I found a very good explanation of them, which I think makes it much more clean how they work than the explanation in the Rust Book. If I knew the explanation ahead of time, I could save like three weeks when I was trying to wrap my head around it.

    3 votes
  3. A long time ago, there was a discussion about anonymous comment posting. I’d link it if I wasn’t typing at mobile, but it shouldn’t be too hard to find. How did things about anonymous posting...

    A long time ago, there was a discussion about anonymous comment posting. I’d link it if I wasn’t typing at mobile, but it shouldn’t be too hard to find.

    How did things about anonymous posting evolve, @Deimos? Do you plan to eventually make something like this?

    There are plenty of topics such as this one which would IMO strongly benefit from anonymous comments - I can definitely see much higher participation if that was the case.

    Regarding the abuse, I won’t reiterate all the points made in the thread [todo: link] and purposed solutions, but what about turning anonymous posting on only in some topics, perhaps where the topic author manually turned them on? We could have them for sensitive topics while holding people accountable for their words in all the political topics.

    13 votes
  4. Comment on Programming Challenge: Convert between units in ~comp

    Soptik
    Link Parent
    Sorry about that, I should’ve put it into example to be clear what I thought.

    Sorry about that, I should’ve put it into example to be clear what I thought.

    1 vote
  5. Comment on Programming Challenge: Convert between units in ~comp

    Soptik
    Link Parent
    Yeah, that’s it. Thanks for clarifucation, I could’ve wrote it better.

    Yeah, that’s it. Thanks for clarifucation, I could’ve wrote it better.

    1 vote
  6. Comment on Programming Challenge: Convert between units in ~comp

    Soptik
    Link Parent
    Nice solution! But how would it cope if I mixed together different units - distance, area, volume, temperature, ... - during initialization? Some units won't have common unit, so you can't just...

    Nice solution! But how would it cope if I mixed together different units - distance, area, volume, temperature, ... - during initialization? Some units won't have common unit, so you can't just pick arbitrary one.

  7. Hi everyone! It's been a long time since last programming challenge list, and here's a nice one I've encountered. If you search for something like 7km to AU, you'll get your answer. But how is it...

    Hi everyone! It's been a long time since last programming challenge list, and here's a nice one I've encountered.

    If you search for something like 7km to AU, you'll get your answer. But how is it done? I don't think they hardcoded all 23 units of distance and every conversion factor between them.

    If you were programming a conversion system - how would you do it?

    First of all, you have input in format that you can specify, for example something like this:

    meter kilometer 1000
    mile kilometer 1.609344
    second minute 60
    ...
    

    Then you should be able answer queries. For example 7 mile meter should convert 7 miles to meters, which is 11265.41.

    Can you design an algorithm that will convert any unit into any other unit?

    Edit: Some conversion rates I extracted from wikipedia:

    ångström
    0.1nm
    astronomical unit
    149597870700m
    attometre
    0.000000000000000001m
    barleycorn
    8.4m
    bohr
    0.00846
    cable length (imperial)
    185.3184m
    cable length
    185.2m
    cable length (US)
    219.456m
    chain (Gunters)
    20.11684m
    cubit
    0.5m
    ell
    1.143m
    fathom
    1.8288m
    femtometre
    0.00000000000001m
    fermi
    0.00000000000001m
    finger
    0.022225m
    finger (cloth)
    0.1143m
    foot (Benoit)
    0.304799735m
    foot (Cape) (H)
    0.314858m
    foot (Clarke's) (H)
    0.3047972654m
    foot (Indian) (H)
    0.304799514m
    foot,metric
    0.31622776602m
    foot,metric (long)
    0.3m
    foot,metric (short)
    0.30m
    foot (International)
    0.3048m
    foot (Sear's) (H)
    0.30479947m
    foot (US Survey)
    0.304800610
    french
    0.0003m
    furlong
    201.168m
    hand
    0.1016m
    inch
    0.0254m
    league
    4828m
    light-day
    25902068371200m
    light-hour
    107925284880m
    light-minute
    17987547480
    light-second
    299792458m
    light-year
    31557600light-second
    line
    0.002116m
    link (Gunter's)
    0.2011684m
    link (Ramsden's; Engineer's)
    0.3048m
    metre
    1m
    m
    1metre
    km
    1000m
    mickey
    0.000127
    micrometre
    0.000001
    mil; thou
    0.0000254
    mil
    10km
    mile (geographical)
    6082foot (International)
    quarter
    0.2286m
    rod
    5.0292m
    rope
    6.096m
    shaku
    0.303 0303m
    span (H)
    0.2286m
    stick (H)
    0.0508m
    toise
    1.949 0363m
    twip
    1.76310
    yard
    0.9144m
    
    18 votes
  8. Comment on Some <details> about more <small> updates (you'll get that in a minute) and general Tildes feedback/questions/comments in ~tildes.official

    Soptik
    Link Parent
    Mostly general active users, I assume number of active users of ~anime would scale linearly to average number of votes per topic compared to other groups.

    Mostly general active users, I assume number of active users of ~anime would scale linearly to average number of votes per topic compared to other groups.

    1 vote
  9. Comment on Topic Requests: What subject would you like to see covered in more depth? in ~comp

    Soptik
    Link Parent
    Oh that would be interesting. I’m familiar with classical web vulnerabilities, but I’ve never even heard about this one. I would love more reading material on this topic :-)

    or making the mistake of leaving unit testing frameworks in your webroot directory on a web server.

    Oh that would be interesting. I’m familiar with classical web vulnerabilities, but I’ve never even heard about this one. I would love more reading material on this topic :-)

  10. Comment on What have you been watching / reading this week? (Anime/Manga) in ~anime

    Soptik
    Link Parent
    I either need a good night sleep or rewatch whole Madoka. Probably both. Btw, thanks for mentioning Homura’s wish - it makes more sense now, I didn’t consider it at all before and wondered how did...

    I either need a good night sleep or rewatch whole Madoka. Probably both.

    Btw, thanks for mentioning Homura’s wish - it makes more sense now, I didn’t consider it at all before and wondered how did she managed to do it all.

    Still, the very ending in school was... I had to rewatch it three times to make sure that no, there is really no hidden connection to original pre-11th-episode Madoka.

    I originally didn’t get the ending, but considering Homura’s wish, it actually makes sense.

    Still, if I had one wish, I would like to watch Madoka once again, untainted by previous experience. But this time, only up to ending of 10th episode.

    If they ended it with 10th episode, I would probably like it more? The whole rule rewriting part was really too far into fantasy for me, as opposed to primarily psychological anime, which it has been evolving into since 3rd episode.

    1 vote
  11. Comment on Some <details> about more <small> updates (you'll get that in a minute) and general Tildes feedback/questions/comments in ~tildes.official

    Soptik
    Link
    Just out of curiosity Deimos, could you provide some Tildes activity stats? I just started looking into ~anime, and it's activity is pretty low compared to other groups with high participation. So...

    Just out of curiosity Deimos, could you provide some Tildes activity stats? I just started looking into ~anime, and it's activity is pretty low compared to other groups with high participation. So I wondered how many of the about 10.000 registered people are active on Tildes.

    3 votes
  12. Comment on What have you been watching / reading this week? (Anime/Manga) in ~anime

    Soptik
    (edited )
    Link
    Madoka Magica, 3rd film: Rebellion This was recommended to me by @moocow1452 here, where I have my opinion to Madoka series, which is kinda relevant to this. Tl;dr: Madoka is great, watch it! But...

    Madoka Magica, 3rd film: Rebellion

    This was recommended to me by @moocow1452 here, where I have my opinion to Madoka series, which is kinda relevant to this. Tl;dr: Madoka is great, watch it! But the ending is weird.

    So, Moocow:

    Thank you for your recommendation, I guess? I'm not sure what to think about it. I'm not sure if I liked it. It was ... weird.

    I couldn't resist but to make notes while watching this:

    Wtf am I watching right now

    Something isn't right - How can she know?

    Did we always fight this way - How can she know?

    I get the sense that nothing actually exists outside of this Mitakihara City - How can she know?

    (last three notes crossed out)
    First 30 minutes are absolutely unnecessary and could be summarized in about 10 minutes

    Wow

    I don't know what to think about it

    They had to be drunk while making this

    I have to get drunk to watch this

    Wtf just happened

    Wtf just happened

    Why did I watch this?

    I have no idea what to think about it.

    I'm certainly grateful to you that you mentioned it. It was weird, but certainly wery ... strong experience. Before this, I wished I dropped Madoka after Homura's special episode (10th or so) - the ending kinda weakened whole series for me. Now, I ... I don't know. It was weird. I think I'll need to rewatch Madoka once more to form an opinion. This was too much at once for me. It was so fast paced to the end I had trouble trying to put everything together. If they cut the beginning a bit and made the end slower, I might enjoy it much more.

    I'd recommend the film if you already watched last episode. If you didn't continue after 10th (or so) episode (the one with Homura), well... The ending is not what you expect, but it was not bad. It was just ... weird. It steers whole series in another direction.

    It showed me the world from Madoka series in completely different light. I'm not sure if I wanted to know it, but I'm glad you mentioned it, Moocow.

    3 votes
  13. Comment on Mozilla takes action to protect users in Kazakhstan in ~tech

    Soptik
    Link Parent
    Tor. It isn't even that hard to use. My school blocks all ports except 80 and 443, so there's no way to access my server (that's running on raspberry on 8443). I used VPN for a while, but then...

    Tor. It isn't even that hard to use.

    My school blocks all ports except 80 and 443, so there's no way to access my server (that's running on raspberry on 8443). I used VPN for a while, but then they decided to ban VPNs. So I learnt how to use Tor. And IMO it's easier to use than VPN. And it's almost impossible to block. Even China couldn't do it. My school tried to block Tor as well, but it took me about 15 seconds to bypass the block.

    You just download tor, install it and start it. If you can use Chrome or Firefox, you can use Tor. It's built on top of Firefox, so the UI is almost exactly the same. It's usually slower, but you can stream 480p videos just fine.

    And if is Tor for some reason blocked in your country (or school), you just click "configure" button and click "Tor is blocked in my country". And that's it. That's how you bypass The Great Firewall of China, or anyone else that blocks/spies on you.

    5 votes
  14. Comment on Mozilla takes action to protect users in Kazakhstan in ~tech

    Soptik
    Link Parent
    Thanks for the article! It might be worth replacing the current link with yours. And chrome will build it into Chromium. That brings our total to about 97%, assuming Edge is still not based on...

    Thanks for the article! It might be worth replacing the current link with yours. And chrome will build it into Chromium. That brings our total to about 97%, assuming Edge is still not based on Chromium. And it looks like it worked:

    Kazakhstan reportedly said it halted the use of the certificate. But the browser makers' actions could protect users who already installed it or prevent future use of the certificate by Kazakhstan's government.

    Anyway, I'm glad Firefox and Apple are there. If this action has that big effect, imagine what could Google do if they controlled all the web browsers out there via Chromium. They could decide to cut out entire countries and no one could do anything about it. And one doesn't just fork Chromium and build their own browser - especially without working browser.

    7 votes
  15. Comment on Mozilla takes action to protect users in Kazakhstan in ~tech

    Soptik
    (edited )
    Link Parent
    Mozilla had exactly the same discussion. I wrote about it in this comment. What they try (together with Google Chrome) is to make people angry at the government, with hope that they will back off....

    Mozilla had exactly the same discussion. I wrote about it in this comment.

    What they try (together with Google Chrome) is to make people angry at the government, with hope that they will back off. If they did nothing, it would send clear signal to other governments (Russian Federation?) that they can do the same, without fear of any repercussions.

    I personally don’t think it’ll help, but at least it’s something. At least Google joined, together they have about 80% 97% market share.

    Edit: Apple joined the team, and Google's changes will propagate into Chromium.

    9 votes
  16. Comment on Mozilla takes action to protect users in Kazakhstan in ~tech

    Soptik
    (edited )
    Link
    What’s happening? After several failed attempts, Kazakh government did it. They created master certificate and forced every single internet user in Kazakhstan to install it in order to access the...

    What’s happening? After several failed attempts, Kazakh government did it. They created master certificate and forced every single internet user in Kazakhstan to install it in order to access the Internet.

    Doing this allows Kazakhstan government to spy on everyone, doing anything - even under https - and there is no way to stop it. They can read your mail, your personal facebook chat, see exactly which videos you watch and which articles you read.

    Kazakh government did what they could to market this as cybersecurity and aiding national sevurity, without saying one word what it actually means.

    Due to increasingly frequent cases of personal information theft and bank account hijacking, we are introducing a security certificate that will become an efficient way to protect the country from hackers, scammers, and other cyberthreats.
    Deployment of the security certificate will help us protect your data and stop attacks befoore they succeed.
    The security certificate is a set of digital data that is required for encrypted protocols to wrk. It will help protect the Kazakh people from attacks and illegal content.
    You should install the certificate on every device connected to the Internet, else there will be technical difficulties with accessing particular resources.

    Source

    Mozilla and Google banned Kazakhstan certificate, meaning user won’t be able to access the Internet if the certificate is installed. Mozilla also adviced users in Kazakhstan to educate themselves in Tor browser usage.

    15 votes
  17. Comment on Roll20 Blog - Conclusion of 2018 Data Breach Investigation in ~tech

    Soptik
    Link
    I asked them if they could tell me how did the attacker get through their system, as I'm compsci student and I'm interested in real life scenarios. After 6(!) days, this came back: (emph. mine). I...

    I asked them if they could tell me how did the attacker get through their system, as I'm compsci student and I'm interested in real life scenarios.

    After 6(!) days, this came back:

    Hello,

    Not a problem, I can help with that. Before we can process your request, we do need to verify your ownership of this Roll20 account. By confirming, you are certifying that you are the owner of the Roll20 account in question and you wish to receive an example of your data stored in the Roll20 Accounts database.

    If this is the email address associated with your Roll20 account, please reply to this email, and include the word "yes" in your response.

    If this email address is not the one associated with your Roll20 Account, please send a request from that email address.

    Thank you!
    Miles

    (emph. mine). I wonder if I'll be able to get to a human.

    2 votes