|
Ape Fist posted:Interacting with Docker for the first time is as unpleasant or perhaps more unpleasant than interacting with Git. I disagree, but I come from an ops background.
|
# ? Oct 22, 2019 16:48 |
|
|
# ? May 11, 2024 12:29 |
|
I have experience in Node + Deployment + Postgres, but am looking to create a front end project for portfolio purposes. I was considering using localStorage/IndexedDB for some sort of permanence (and so I could possibly just host it on a GitHub Pages.) Has anyone used localStorage/IndexedDB for this purpose and have feelings about it?
Cheen fucked around with this message at 17:16 on Oct 22, 2019 |
# ? Oct 22, 2019 16:52 |
|
Ape Fist posted:Interacting with Docker for the first time is as unpleasant or perhaps more unpleasant than interacting with Git. as someone who does not come from an ops background, i agree with this statement i'll even go as far as to say that git is many degrees easier to get started with than docker.
|
# ? Oct 22, 2019 16:53 |
|
Gonna have to be that guy. As someone who has a LAMP stack and whatever node backend stuff going on my dev environment I have no clue why on god’s green earth I would use docker and having to gently caress with my bios for it is just pants.
|
# ? Oct 22, 2019 17:16 |
|
When Docker does what it's supposed to do, it's pretty pleasant and easy to manage. When it doesn't, it's like working with a live grenade.
|
# ? Oct 22, 2019 18:54 |
|
It’s not like when I gently caress up with docker I can’t just rebuild my image. If I gently caress up with git I risk my entire commit history.
|
# ? Oct 22, 2019 19:36 |
|
The Fool posted:If I gently caress up with git I risk my entire commit history. Thay would take some serious incompetence though.
|
# ? Oct 22, 2019 19:47 |
|
Docker, like git, is pretty easy for the 90 percent use case if you take the time to read the docs thoroughly instead of just Googlin for the one thing you think you need to do. Understanding how it works makes everything much easier. Docker, like git, has a bad user interface that interferes with its usage in the 10 percent use case. I think most devs should be using a docker-compose file. It makes life much easier.
|
# ? Oct 22, 2019 19:52 |
|
Thermopyle posted:Docker, like git, is pretty easy for the 90 percent use case if you take the time to read the docs thoroughly instead of just Googlin for the one thing you think you need to do. I think I found the problem.
|
# ? Oct 22, 2019 19:56 |
|
Thanks!
|
# ? Oct 23, 2019 02:34 |
|
I was contacted by an old client that I did a php/mysql application for over 12 years ago. They wanted a few updates. I was completely amazed that not only is the app still running, but they are still using it at the core of their business. Among the things I found was a comment before a debugging library include that read // REMOVE THIS IN PRODUCTION!!!! and apparently my pagination scheme did not stand the test of time:
|
# ? Oct 23, 2019 02:39 |
|
Genuinely curious: Are you going to provide a Few Updates™?
|
# ? Oct 23, 2019 02:59 |
|
I built an Access 93 database for a small business when I was a teenager. I heard a few years ago they were still using it on a Windows 95 machine.
|
# ? Oct 23, 2019 03:29 |
|
Vincent Valentine posted:Genuinely curious: Are you going to provide a Few Updates™? already done. You'd think that with an app like that they would need serious changes, but it was stuff like "update our address and logo on the invoices" and "add a new code in the codes dropdown" and "this one date is always 4 hours off". They didn't mention the pagination thing so I didn't touch it. It was a little scary. The server hasn't been updated in around 8 years, and I didn't want to start doing updates because then everything might have stopped working. There's no source control at all. I was thinking of installing git, but I figured I'd probably need to do an apt-get update to install it.
|
# ? Oct 23, 2019 03:29 |
|
I know Docker just enough to not break it, but definitely use it via CLI and my understanding is that most standard docker builds are up at docker-hub. https://hub.docker.com/ Now that I use it regularly and switch between different micro services the company I work for maintains, all with different versions of rails, ruby, and Postgres, I find it absolutely critical.
|
# ? Oct 23, 2019 05:18 |
|
Awesome Animals posted:Now that I use it regularly and switch between different micro services the company I work for maintains, all with different versions of rails, ruby, and Postgres, I find it absolutely critical. I've always felt like the software world being ridiculously terrible at versioning compatibility like this is 95% of why Docker exists.
|
# ? Oct 23, 2019 05:33 |
|
Hey, I wanna build a website for myself while I'm between jobs/semesters at uni. I really don't know all that much about whats popular and in demand at the moment and would look good to an employer. I was thinking of going with react because I'd done a bit of that before, but not for a while
|
# ? Oct 23, 2019 09:47 |
|
Vue is easy.
|
# ? Oct 23, 2019 11:12 |
|
Tech can be kind of regional so check job boards around you but I think React is still the most in demand. Gatsby is probably the best way to build a personal site with React.
|
# ? Oct 23, 2019 13:40 |
|
Roadie posted:I've always felt like the software world being ridiculously terrible at versioning compatibility like this is 95% of why Docker exists. I think you’re right on. It’s the exact reason it’s encouraged at my place of employment.
|
# ? Oct 23, 2019 14:13 |
|
Same for us. You need specific versions of both Java and Node running for each of our projects, so we just dumped everything into docker containers that mimic production servers and it solved a ton of problems.
|
# ? Oct 23, 2019 21:47 |
|
Vincent Valentine posted:Yeah that's been my experience. If you want someone's username and password, just ask. They'll tell you. If they don't, suggest that they have to move five feet and spend 30 seconds typing in a username and password. They'll be so frightened of work they'll write them down for you! The number of passwords I know from not-even-intentional social engineering is immense.
|
# ? Oct 24, 2019 06:35 |
|
PT6A posted:If they don't, suggest that they have to move five feet and spend 30 seconds typing in a username and password. They'll be so frightened of work they'll write them down for you! The guy in the seat next to me told me his password once. I didn't ask him for it. I told him to log in on his machine and check a bug out, to see if it was account specific. He just goes "Oh log in with mine, my username is my first and last name and my password is Capital-P Password123" I just kinda went "uhhhhhhhhhhhhhhhhhhhhhhhhhhhh, well, it's a good thing we change those every 60 days." "Oh I just change it to the same thing every time. If you put a whitespace character at the end it counts it as different, but then trims it off on submission." edit: Password123 was his actual password by the way.
|
# ? Oct 24, 2019 11:00 |
|
Can we ask Vue questions here? I am stumbling and I am not sure what to do. I have a calendar that is being used with a min-date prop that goes to today. How would I set it up that it allows you to pick up to 7 days in the past too? code:
E: Solution, ugh, why didn't I try this earlier. code:
Vintersorg fucked around with this message at 16:09 on Oct 25, 2019 |
# ? Oct 25, 2019 15:52 |
|
Vintersorg posted:
/me eagerly awaits daylight savings time derail
|
# ? Oct 25, 2019 17:55 |
|
Lumpy posted:/me eagerly awaits daylight savings time derail How about we just skip all of that and I just post this video now: https://www.youtube.com/watch?v=-5wpm-gesOY
|
# ? Oct 25, 2019 18:43 |
|
Well, poo poo - what to do? Just leave it? This calendar is only ever gonna be used in our place - but we do recognize DST.
|
# ? Oct 25, 2019 19:50 |
|
Just use a library like moment
|
# ? Oct 25, 2019 19:55 |
|
The Fool posted:Just use a library like moment That's not going to solve all your problems trust me.
|
# ? Oct 26, 2019 05:45 |
|
ban all time zones
|
# ? Oct 26, 2019 12:40 |
|
Ape Fist posted:That's not going to solve all your problems trust me. Well, all he needs to do is select seven days ago. For that purpose it will. It's just a matter of moment(new Date).subtract(7,"days"). You get all the time zone stuff for free. It's probably not ideal for public facing international appointment based business, but for what they're describing, it's sufficient.
|
# ? Oct 26, 2019 12:53 |
|
prom candy posted:ban all time zones Everyone laughs at me when I tell them I’m on Swatch internet time.
|
# ? Oct 26, 2019 19:02 |
|
Hi guys. Our React app loads some data from a graph db. We are currently using Apollo for this, and I'm a bit unsure of best practices and how this service is supposed to work with states. We load a list of different "goals" a user can choose from. This is done in the App.tsx component, which contains routes all the other pages. We also have a state object for which "goal" the user has chosen. We initially loaded all the goals from a static json, and would initialize the chosen goal state object from this json list. But now we need to set this as one of the loaded goals, when useQuery has finished loading the data. So I figured I would use useEffect for this. But this isn't working properly and feels wrong, like I'm missing something about how Apollo should be used? code:
code:
|
# ? Oct 28, 2019 16:53 |
|
uncle blog posted:Hi guys. Our React app loads some data from a graph db. We are currently using Apollo for this, and I'm a bit unsure of best practices and how this service is supposed to work with states. Seems to me the query and state are one level up from where they should be. GoalPage should care about that stuff, not App. If for some reason the whole app does care about that, you could use Context to make common state shared, or keep it in @client in the Apollo store and have queries inside components that care about it (or just have them duplicate the apps useQuery if it is cached) Lumpy fucked around with this message at 17:17 on Oct 28, 2019 |
# ? Oct 28, 2019 17:14 |
|
My experience with docker (and a opinion about Python): I am carefull about anything build around Python. Python is great, amazing even, and the people that develop systems under Python generally know what they are doing, but Python itself is poorly integrated in the OS. Is almost as if Python where designed to work inside a virtual machine, but somebody changed the design the last minute. On Linux, updating Python often present different paths and tools (apt, pip, ...) I have seen python use multiple pip versions for multiple Python versions. On top of that theres some system to "generate a custom made enviroment" for a single Python app so this enviroment have version X and version Y of libraries. Python comes with the batteries included, but sometimes it comes with 8 different types of batteries and you have to negotiate the volt levels not to break something. Also breaking Python on a Debian based system is scary because apt is build with Python. Before I was getting accustomed to editing Dockerfile files, I was introduced to docker-compose.yml. Dockerfile is not a right-mind name for a config file, but Okay, I accept your playerstyle, but docker-compose.yml is a completely different scheme of name conventions. The whole thing feels like trying to give a massage to mister elastic. Getting things to work with Docker don't seems specially hard, and once everything works is like magic. Interacting with docker is overly complex, with many layers of obfuscation you have to understand. I am a idiot. I design systems that are easy to understand by a idiot. My problem with Python and some tools generated in python is that are designed by smart people and they leak abstractions and present powerfull but complex enviroments that also may break in hard to fix ways. Docker is great, thanks to the developers that made it real!.
|
# ? Oct 28, 2019 18:01 |
|
You should never use the system python unless it's a system script. Always use virtual environments. Every language has the same leaky abstractions problem. Python has a bad packaging/dependencies story. Vitual envs are an ok solution to that.
|
# ? Oct 28, 2019 18:08 |
|
Thermopyle posted:You should never use the system python unless it's a system script. Yea, the last time I used somebody program made in Python, it hosted it inside a virtualenv. Easier that way. Docker is kind of the same idea, for loving everything.
|
# ? Oct 28, 2019 18:15 |
|
Is it possible via CSS to disable autofocus from child elements? If not CSS, any suggestions for another avenue?
|
# ? Oct 28, 2019 19:25 |
|
Thanks for all the suggestions. We do have moment built in already I learned which is rad and I will adapt this to use that.
|
# ? Oct 28, 2019 21:26 |
|
|
# ? May 11, 2024 12:29 |
|
Lumpy posted:Seems to me the query and state are one level up from where they should be. GoalPage should care about that stuff, not App. If for some reason the whole app does care about that, you could use Context to make common state shared, or keep it in @client in the Apollo store and have queries inside components that care about it (or just have them duplicate the apps useQuery if it is cached) Yeah, part of the whole reason to use GraphQL is that you can just staple read-only queries to whatever specific UI components are using that data, and it will then (if you have it set up right) debounce all the query stuff globally.
|
# ? Oct 29, 2019 02:51 |