Emerald_Knight's recent activity

  1. Comment on What’s something that you wish more people would inform themselves about? in ~talk

    Emerald_Knight Link
    Tech security. The bare basics. We're talking things like being able to spot a phishing email at first glance, not visiting just any random website that you're directed toward, checking filename...

    Tech security. The bare basics. We're talking things like being able to spot a phishing email at first glance, not visiting just any random website that you're directed toward, checking filename extensions and file sizes when downloading, being able to tell when someone is impersonating someone you know, the importance of avoiding password reuse, the fact that people can spoof emails and phone numbers without actually owning them, the importance of HTTPS... things that don't require a formal education and are incredibly important for anyone to know when using modern technology.

    It's like owning a car. You don't necessarily need to know how to figure out which part in your car is faulty and how to swap it out, but you sure as shit better understand why it's important for everyone in your car to be wearing a seatbelt (and how one person not wearing theirs puts everyone else inside in danger).

    2 votes
  2. Comment on The long-awaited moment... Dracula theme added! Oh also, the site is publicly visible now (but let's not be too noisy about it yet). in ~tildes.official

    Emerald_Knight Link Parent
    Yeah, it's apparently not a super well-documented bit of syntax, but I managed to stumble across it last night. I was curious to see if it would even work in the first place since I'd noted them...

    Yeah, it's apparently not a super well-documented bit of syntax, but I managed to stumble across it last night. I was curious to see if it would even work in the first place since I'd noted them as a possibility in another comment. I have most of the replacements successfully made locally and they seem to work, so that's encouraging. There are just some things that SASS does that I would need to try to find an equivalent for to get the last few items moved over.

    That being said, if you plan to tackle this one then I'm certainly not stopping you :)

    5 votes
  3. Comment on The long-awaited moment... Dracula theme added! Oh also, the site is publicly visible now (but let's not be too noisy about it yet). in ~tildes.official

    Emerald_Knight Link Parent
    This ties back into our other brief discussion earlier about how Tildes isn't meant to be ~comp and really shouldn't be. It's easy to forget about the average user when there are so many...

    This ties back into our other brief discussion earlier about how Tildes isn't meant to be ~comp and really shouldn't be. It's easy to forget about the average user when there are so many developers here and so many discussions of a technical nature, but it's important that we not forget about the non-technical users.

    11 votes
  4. Comment on The long-awaited moment... Dracula theme added! Oh also, the site is publicly visible now (but let's not be too noisy about it yet). in ~tildes.official

    Emerald_Knight Link Parent
    There is, actually! Here's an example: --background-primary: #{map-get($theme, "background-primary")}; The important piece is the enclosing within #{}. There's still the problem of e.g....

    There is, actually! Here's an example:

    --background-primary: #{map-get($theme, "background-primary")};
    

    The important piece is the enclosing within #{}.

    There's still the problem of e.g. conditional evaluation via SASS that isn't so easy to port over, but I was actually testing out these kinds of teaks last night as a PoC :)

    7 votes
  5. Comment on The long-awaited moment... Dracula theme added! Oh also, the site is publicly visible now (but let's not be too noisy about it yet). in ~tildes.official

    Emerald_Knight Link Parent
    Please try to understand something from a non-technical user perspective: the time it takes to perform a task and the amount of effort to perform a task are not the same thing. It's all about the...

    Please try to understand something from a non-technical user perspective: the time it takes to perform a task and the amount of effort to perform a task are not the same thing. It's all about the learning curve.

    CSS has a fairly low barrier to entry. You can find any number of the themes that were shared for e.g. Stylus and try tweaking what's already there to try to get the result you want. It still takes a fair bit of effort, but it's simple and accessible. Once you throw VirtualBox and Vagrant into the mix and start expecting users to use a CLI, you're ramping up the difficulty significantly. Users typically don't know anything about CLIs, VMs, port numbers, the developer console, Git, or any of that. Now, instead of just having to tweak some values in CSS that someone has already written, they have to learn an entire suite of tools and an entire new way of thinking just to get a VM spun up. Even during my first year or two of studying programming, just using a CLI alone was really fucking hard, and that was as a CS major.

    People like you and me have the technical background to have the luxury of saying "yeah, just spin up the dev environment and use the SASS route, easy peasy", but most people don't.

    16 votes
  6. Comment on The long-awaited moment... Dracula theme added! Oh also, the site is publicly visible now (but let's not be too noisy about it yet). in ~tildes.official

    Emerald_Knight Link Parent
    Absolutely. As a developer, I do enjoy spending plenty of time in ~comp, if my occasional long-winded topics and comments there are any indicator. But Tildes isn't ~comp, and it shouldn't be,...

    Absolutely. As a developer, I do enjoy spending plenty of time in ~comp, if my occasional long-winded topics and comments there are any indicator. But Tildes isn't ~comp, and it shouldn't be, otherwise we wouldn't have all of the non-~comp topics that we do. As much as I like programming, it's only a small chunk of what life has to offer. We need the ~humanities, we need ~life, we need ~music, we need ~food... we need that kind of diversity if Tildes is ever going to measure up to its purpose.

    I will always frequent ~comp, but I look forward to seeing how the other communities we have now and will have in the future will grow as our user base diversifies :)

    12 votes
  7. Comment on The long-awaited moment... Dracula theme added! Oh also, the site is publicly visible now (but let's not be too noisy about it yet). in ~tildes.official

    Emerald_Knight Link Parent
    I think you missed an important point: this is only easier for developers. Non-developers would have a hard enough time using something like Stylus and modifying plain old CSS, let alone setting...

    I think you missed an important point: this is only easier for developers. Non-developers would have a hard enough time using something like Stylus and modifying plain old CSS, let alone setting up an entire Vagrant environment and using SASS to compile the appropriate CSS for them. And although there are a lot of developers here on Tildes, there is still a substantial non-developer user base.

    15 votes
  8. Comment on The long-awaited moment... Dracula theme added! Oh also, the site is publicly visible now (but let's not be too noisy about it yet). in ~tildes.official

    Emerald_Knight Link Parent
    Jesus. Christ. That username has me splitting my sides. Now that I got that out of the way, welcome to Tildes! It really is fairly relaxed here. We've had a few incidents in the past where things...

    Jesus. Christ. That username has me splitting my sides.

    Now that I got that out of the way, welcome to Tildes! It really is fairly relaxed here. We've had a few incidents in the past where things got a bit heated between members (I'll admit that I'm among them), but for the most part we try to avoid or work through that kind of thing. It's definitely a breath of fresh air compared to the toxic environment of reddit and other social media sites. Hopefully we'll be able to keep that up! :)

    11 votes
  9. Comment on How debt kills in ~health

    Emerald_Knight Link Parent
    Here's a more radical idea: we should provide everyone with their basics means of survival and have those basic means untouchable by debt collectors. As a result, the minimum wage can be...

    Here's a more radical idea: we should provide everyone with their basics means of survival and have those basic means untouchable by debt collectors. As a result, the minimum wage can be substantially reduced (since its entire purpose was to ensure workers could make livable earnings), people won't have to take on crushing debt in an effort to obtain those basic life needs, and the worst-case scenario of having debt you can't pay off is "I'm stuck with only the basic necessities for survival and will have a very tough time regaining access to small luxuries" rather than "I'm not even able to feed myself, so I may as well end my life before starvation does me in first".

    The root of the problem is this perverse worship of capitalism and the abject rejection of anything that isn't a free market solution, even for problems that the free market fails spectacularly at solving. Healthcare being among them, due to its nature of being a highly price-inelastic service and the ability of healthcare providers to pick and choose which insurance plans they accept with strong favorability toward the ones that will pay them better (and thus will have higher premiums). We as a society need to accept that some things don't belong in the free market and should be socialized, namely the basic needs for survival. Everything else, the various goods and services we enjoy but don't actually need per se, can remain under the thumb of capitalism where the pressure of competition matters.

    6 votes
  10. Comment on The long-awaited moment... Dracula theme added! Oh also, the site is publicly visible now (but let's not be too noisy about it yet). in ~tildes.official

    Emerald_Knight (edited ) Link Parent
    The downside to using extensions is that you don't have access to the simple SASS setup that allows you to define the mapping of otherwise repetitive values and have the styles applied with...

    The downside to using extensions is that you don't have access to the simple SASS setup that allows you to define the mapping of otherwise repetitive values and have the styles applied with relative ease.

    Of course, that doesn't exactly eliminate the limitations you're referring to regarding the use of SASS. Probably the only way around that would be to write user themes directly to the file system which, in my opinion anyway, is kind of a terrible solution overall. Maybe it's possible to make use of custom properties? If so, then SASS could likely still be used just the way it is now, but with some minor tweaking to the theme system to apply the values to custom properties rather than directly to the target styles, allowing for user overrides.

    I'm not really certain of what limitations there are with regards to CSS, however, so I'm not going to speak authoritatively on the subject.


    Edit #1: I'll be testing out some minor tweaks over the next few days. So far it looks like custom properties can be swapped for most lines of code and apparently work; however, there are 18 lines of code which, unfortunately, rely on preprocessor-defined values to determine lightness for conditional checks and/or fallback values and would thus be incompatible with user-defined changes, so some additional work would need to be done to handle these correctly. I'll continue digging into this over the next week or two as my schedule permits :)

    5 votes
  11. Comment on The long-awaited moment... Dracula theme added! Oh also, the site is publicly visible now (but let's not be too noisy about it yet). in ~tildes.official

    Emerald_Knight Link Parent
    Oh, man. That's amazingly compact! That is really satisfying to look at, and it's clear just by looking at it that it would be fairly trivial for anyone to include a new theme now. Fantastic work,...

    Oh, man. That's amazingly compact! That is really satisfying to look at, and it's clear just by looking at it that it would be fairly trivial for anyone to include a new theme now.

    Fantastic work, @Bauke!

    10 votes
  12. Comment on Whats the most important alias or function in your bashrc file? in ~comp

    Emerald_Knight Link Parent
    Oh, fuck. Rails. I'm going to go on a tangent for a moment and tell a little story about my own little hell. During my own university studies, one of the required courses for my chosen "track" (a...

    Oh, fuck. Rails. I'm going to go on a tangent for a moment and tell a little story about my own little hell.

    During my own university studies, one of the required courses for my chosen "track" (a set of courses defining your specific focus, e.g. security or networking) was an introduction to software engineering principles. This was an upper-division course that focused on issues ranging from software development lifecycles, to project management, and in a later iteration of the course, even working on joint projects with teams from other countries (a story for another time). For this particular course, though, we focused mostly on doing a couple of "large" (by university project standards) software projects spanning multiple weeks in small teams.

    Well, my team was... "special". They decided, for some unknown reason--possibly the sadistic whisperings of Satan himself influencing them--that we should all use a language, framework, and tech stack that none of us had any experience with whatsoever. That was Rails. None of us--not a single one of us--even knew what the hell the difference between a "GET" and a "POST" request was... and they decided we should use Rails. Super.

    Oh, but here's the best part: I was the one who ended up blowing through the documentation, doing hours of research, and prototyping basic proof of concept implementations just so I could get the others on board with how Rails even worked. If I hadn't done that leg work, we probably would've still been stuck trying to figure out the most basic shit half way through the project timeline. We had to not only figure out how to work with Rails, but how to implement behavior that we'd never had to implement before in any project of any type. Things like geocoding, array serialization and de-serialization for storing in database columns, handling file uploads, and various other little pieces that would otherwise be pretty simple if literally any of us had ever worked with web development for anything more than basic JavaScript and DOM manipulation.

    And since the guy who was in charge of deploying the app onto a server so we could actually demo it couldn't figure out how to get things working, we ended up running it from a cloud IDE... which had a tendency to crash randomly when we wanted to test a critical piece of functionality. Including during our end-of-term presentation. So the entire time it was seriously the blind leading the blind through a freakin' minefield and somehow, by the grace of some merciful deity, we were given a passing grade in the end.

    It was truly a nightmare and I'm amazed that I never developed even a slight aversion to web development as a result.

    Kind of a long tangent, but seeing those Rails aliases brought that little bit of academic trauma out of physical memory and right into my L1 cache.

    2 votes
  13. Comment on Valentine's day in ~talk

    Emerald_Knight Link
    Well, this is the first Valentine's day in nearly a decade that I've been single. I brought home a bottle of wine and ordered some pizza, and now I'm about to get onto playing some games. Could I...

    Well, this is the first Valentine's day in nearly a decade that I've been single. I brought home a bottle of wine and ordered some pizza, and now I'm about to get onto playing some games.

    Could I have been out trying to get a date? Sure. But honestly, I have neither the time nor the energy to invest in dating right now, and I've got some baggage to work through that I've only pretty recently noticed that I'm not about to dump onto another person. I've got to show myself some love before I start trying to show it to someone else.

    4 votes
  14. Comment on Whats the most important alias or function in your bashrc file? in ~comp

    Emerald_Knight Link Parent
    Sorry for the delay. I've been a bit busy. Hitting udev would probably be the way to go, so you're likely on the right track. You might take a look at this Arch manual page regarding backlight...

    Sorry for the delay. I've been a bit busy.

    Hitting udev would probably be the way to go, so you're likely on the right track. You might take a look at this Arch manual page regarding backlight configuration management. They even touch on intel_backlight at some point, it looks like. Please note the following snippet:

    By default, only root can change the brightness by this method. To allow users in the video group to change the brightness, a udev rule such as the following can be used:

    /etc/udev/rules.d/backlight.rules

    ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
    ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"

    You'll have to modify it to hit intel_backlight instead, which might look something like this:

    ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
    ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
    

    You'll ultimately have to dig around a bit more to determine whether or not this is enough to suit your needs and, if not, which changes you'll need to make to get it working, but it should at least get you pretty close :)

  15. Comment on What programming language do you think deserves more credit? in ~comp

    Emerald_Knight Link Parent
    No problem. It was admittedly a brief mention. Easy to miss :)

    No problem. It was admittedly a brief mention. Easy to miss :)

    3 votes
  16. Comment on Why White People Don't Use White Emoji: Does shame explain the disparity in the lesser use of light-skin-tone symbols in the US? in ~tech

    Emerald_Knight Link Parent
    Same here. Not only do they feel wrong, but more often than not the emoji will turn out to be way, way different from what I'd intended with a simple emoticon. They're unpredictable. I don't like...

    Same here. Not only do they feel wrong, but more often than not the emoji will turn out to be way, way different from what I'd intended with a simple emoticon. They're unpredictable. I don't like that.

    3 votes
  17. Comment on Why White People Don't Use White Emoji: Does shame explain the disparity in the lesser use of light-skin-tone symbols in the US? in ~tech

    Emerald_Knight Link
    Or maybe the answer is even simpler: The default yellow takes less effort to use, isn't associated with a particular ethnicity and is thus unable to really misrepresent someone, and is what most...

    Or maybe the answer is even simpler: The default yellow takes less effort to use, isn't associated with a particular ethnicity and is thus unable to really misrepresent someone, and is what most people have gotten used to seeing for a very long time.

    It always feels weird to deviate from long-held conventions and habits. It always feels weird when you type ":)" into a messenger and a new type of emoji shows up that you're not used to seeing. It always feels weird when anything suddenly looks different from what you're used to (which is why people tend not to like sudden, unexpected UI changes). When anything disrupts the norm, we feel discomfort. So naturally we tend not to go out of our way to intentionally disrupt the norm. We don't like change and we're lazy. It's normal human nature in action.

    Then again, I could be completely off the mark. Still, it's worth considering. There doesn't always have to be prejudice underlying this sort of discomfort.

    18 votes
  18. Comment on What programming language do you think deserves more credit? in ~comp

    Emerald_Knight Link Parent
    ...I mean, I kind of did?

    I hear 7.x is better but if you're going to defend it, at least argue against the things that people complain about.

    "I hate this language because the older versions that aren't even relevant anymore sucked!"

    ...I mean, I kind of did?

    3 votes
  19. Comment on What programming language do you think deserves more credit? in ~comp

    Emerald_Knight Link Parent
    I was being facetious. I know there are plenty of people who prefer to write code from a CLI. Every single code base that isn't complete shit usually has additional helper functions defined to...

    I do. Lots of other people do, too.

    I was being facetious. I know there are plenty of people who prefer to write code from a CLI.

    Should every PHP codebase in the world have a my_empty or real_empty function in some utils.php file to work around the standard library's empty being weird?

    Every single code base that isn't complete shit usually has additional helper functions defined to accommodate for the lack of functionality in any given programming language. Often times you'll find certain primitive types wrapped in objects to help avoid certain edge cases, and at others there are third-party libraries or extensions installed that don't have native support and you want to wrap some piece of functionality to avoid headaches down the line. These implementations will typically differ quite a bit from project to project.

    If every programming language is a language, then every project is a different dialect of that language. There are certain pieces of vocabulary that are used more than others, some new introductions, and even what you could call "slang" (e.g. a wrapper function for array operations). The different style guidelines and preferences regarding coding standards will quite often result in you needing to learn these different dialects, anyway. I mean hell, it's not uncommon to switch from one project where you're accustomed to using snake case for variable names and find yourself working on another where the convention is to use camel case.

    I don't think it's unreasonable to be expected to dig through a utils.php file at the start of any project just to see what helper functions and classes your project works with to solve commonly encountered problems that the language itself doesn't handle natively, and to see what changes might've been made to adhere to desired conventions.

    Would you want to do PHP development using purely open-source tech, and not the proprietary framework?

    By "proprietary", I mean that it was developed in-house by a company I used to work for. It's open-source, albeit lesser-known, and I work on a fork of it to be compatible with up-to-date tooling. There's a separate, more frequently maintained version in a private repo that gets licensed out as well, so there's an actual fully proprietary version. I'd plug it here, but it's used so seldom by outside companies that I'd definitely be giving away my identity if someone knew the name, and I'd prefer to keep some level of anonymity :)

    2 votes
  20. Comment on Whats the most important alias or function in your bashrc file? in ~comp

    Emerald_Knight Link Parent
    Regarding running as root, consider taking a look at this thread. Specifically, I would recommend looking at this answer or this one. Please note that it's absolutely essential in the case of...

    Regarding running as root, consider taking a look at this thread. Specifically, I would recommend looking at this answer or this one. Please note that it's absolutely essential in the case of using a crontab to set it as root via sudo crontab -e, otherwise you will run into the same permissions issues.

    As for what to do from there, I honestly don't know. This is why I'm asking for details about your particular problem. I have only the vaguest idea of what it is you're trying to accomplish. I literally cannot help you any further without additional details, otherwise I'll just be sending you random resources to look at that may or may not even be relevant to actually solving your problem. In order to receive even a modicum of guidance, you'll first need to describe exactly what it is that you're trying to accomplish and how you're trying to accomplish it.

    If you don't want a straight-up answer so you can figure it out on your own, then that's fine. But details are still needed to assess what would need to be done in the first place and whether or not you're on the right track so I can determine what direction to point you in.

    2 votes