|
Finster Dexter posted:The current frontend guy's readme says: Put necessary env vars in the appropriate `.env.*` file. Any local variables you don't want committed go in `.env.local` your dev is an idiot. the first faq entry on dotenv package: quote:Should I commit my .env file?
|
# ¿ Aug 2, 2018 22:44 |
|
|
# ¿ Sep 13, 2024 00:02 |
|
we use dotenv and it works fine if you set a variable in the environment, it supersedes the one in .env. as is documented in the package. fire your dev
|
# ¿ Aug 2, 2018 22:45 |
|
into the sun (along with javscsript)
|
# ¿ Aug 2, 2018 22:46 |
|
after a very quick google search, the top SO link had a comment pointing to this thread https://forums.developer.apple.com/thread/12885quote:Note Just as an aside, you can access peer-to-peer Wi-Fi without using Multipeer Connectivity. The underlying technology is Bonjour + TCP/IP, and you can access that directly from your app. The WiTap sample code shows how. you should read some links instead of... not.
|
# ¿ Aug 3, 2018 20:21 |
|
MALE SHOEGAZE posted:thanks to whoever recommended the emulator101 tutorial it's great. should probably thank the person who wrote it. hope they like bitcoins. yeah ive been building out an emulator because of that link. its been a fun distraction from work.
|
# ¿ Aug 7, 2018 19:26 |
|
MALE SHOEGAZE posted:oooh, so the problem is that all the branch targets are off because of the directive, so you need to shift everything down so that it starts at 0x100. yeah that took me a while to figure out. its even more unclear when you get through that rom as it calls a BDOS function, which if not implemented will end up moving the PC to 0x0005 and moving forward with gibberish. ive been using this reference for cpm/bdos whenever things cross over to that side, a bunch of diagnostics end up needing at least the print functions. edit: right, thats the FOR_CPUDIAG ifdef on that same page you linked before. those print branches are BDOS functions 2 and 9 on the page i just linked.
|
# ¿ Aug 16, 2018 04:06 |
|
dont you need the cycle count if you want an accurate clock?
|
# ¿ Aug 20, 2018 21:56 |
|
i decided to go with c for the emulator stuff. i dont regret it but its also been uh... different. but it works now! code:
|
# ¿ Aug 30, 2018 20:58 |
|
ctps: got the first screen of space invaders to render but then it segfaults. gotta put this down for the weekend though i dont want to
|
# ¿ Aug 31, 2018 14:44 |
|
primary/secondary is a fine replacement for master/slave imo parent/child seems to fit better in the cpython case though, or anything related to forking
|
# ¿ Sep 12, 2018 21:03 |
|
i think im going to try and follow crafting interpreters in rust for a new side project. i just finished the rust book and this seems like a fun way to get into a larger rust project.
|
# ¿ Sep 15, 2018 17:02 |
|
Shaggar posted:javascript is the worst thing the new safari release is caching arrays https://stackoverflow.com/questions/52390368/array-state-will-be-cached-in-ios-12-safari-is-bug-or-feature/52392901
|
# ¿ Sep 19, 2018 19:34 |
|
redleader posted:so what do you return if the request is well formed but invalid (because of rules like, i dunno, the caller passes an email address without an @)? i tend to use 400, but that diagram seems to reserve 400 for malformed requests and doesn't seem to offer any advice for this situation use 422 Unprocessable Entity https://tools.ietf.org/html/rfc4918#section-11.2
|
# ¿ Sep 21, 2018 16:37 |
|
Chalks posted:As long as the front end is always sending you data in UTC or with time zone information attached you're fine, yeah? yeah, utc doesn't have DST. if you send everything in UTC then you can figure out the correct poo poo (by letting a library handle iut for you)
|
# ¿ Nov 7, 2018 21:00 |
|
not my problem
|
# ¿ Nov 7, 2018 21:16 |
|
gcp has the best cost exploration out of all of the providers, with a simple way to split projects up and look at them individually. their kubernetes offering is also the best by far.
|
# ¿ Nov 15, 2018 17:07 |
|
Kevin Mitnick P.E. posted:do you mean scale 7 or 7 significant digits quote:All numbers have a fixed 7 decimal places, and the maximum permitted value is +- 99999999999, or just under 100 billion.
|
# ¿ Nov 29, 2018 23:00 |
|
it also appears to use floats for any division of two "Fixed" numbers. nice
|
# ¿ Nov 29, 2018 23:04 |
|
IE gave us the wonders of AJAX
|
# ¿ Dec 6, 2018 15:59 |
|
Sapozhnik posted:what's a good tool for building docker images yes people really use it a lot.
|
# ¿ Dec 12, 2018 20:30 |
|
Kevin Mitnick P.E. posted:yeah see that’s all v bad. don’t use k8s to store anything important how is it any different than running on bare metal? if a server dies you still need to replace it and spool up new replicas.
|
# ¿ Dec 14, 2018 16:08 |
|
Kevin Mitnick P.E. posted:i assumed that the thing op was talking about with pinning pods to hosts and hostPath volumes wasn't actually happening cause if you do that k8s is just a pointless complexity layer oh that makes more sense.
|
# ¿ Dec 15, 2018 16:43 |
|
yeah let me just load up a 300tb database whenever we run tests
|
# ¿ Jan 10, 2019 22:11 |
|
we use k8s for everything, across multiple clouds. We're even shipping on-premise packages using k8s so we don't have to mess with a bunch of different infrastructures. Doing our first non-cloud deploy soon, too. There are definitely some pain points but it's been great to have a consistent platform no matter where it is deployed, for any scale.
|
# ¿ Mar 13, 2019 05:01 |
|
suffix posted:or on rare occasions starve other more critical services Your critical services should have matching resource requests and limits so they cannot be starved. Proper resource limits and requests are hugely important to a stable k8s experience. Also pod priorities.
|
# ¿ Mar 13, 2019 05:08 |
|
Finster Dexter posted:For starters. We've had that happen multiple times, but also annoying bullshit like k8s deciding to move pods off a hosed up node, but then for whatever raisin it can't provision persistent volumes in the zone that node is in... so we end up having to do weird bullshit like re-provision nodes in different zones or create special pvc storage classes that are restricted by zone. Yeah volumes can be annoying, especially in AWS. There are improvements around making sure the pod ends up on a node in the correct AZ but the best approach is to set the affinity of those deployments to either only one AZ, and to use pod priorities to ensure those pods can be scheduled correctly. GCP and Azure don't have this issue as badly.
|
# ¿ Mar 13, 2019 16:38 |
|
Finster Dexter posted:WHAT WHAT WHAT?? There's a lot of different ways this can be solved, depending on the load balancer in use. In GCP the http balancers have a fixed 10 minute keep alive that you need to be aware of and have your services support. We moved to an L4 balancer with an internal ingress controller which helped a lot, but has it's own annoyances. I have some articles I can share, just need to go find them again.
|
# ¿ Mar 13, 2019 16:40 |
|
CRIP EATIN BREAD posted:I'm not sure if it's a function of kops or kubernetes itself, but all the nodes get labelled with "failure-domain.beta.kubernetes.io/zone=AWS_AZ" that you can easily use for node affinity to a specific AZ. this is useful if you actually have persistent volume claims. that's shortcoming of EBS though, since a volume is created in an AZ and not available in other AZs. This is a newer feature of kubernetes itself. We get those labels on GCP and Azure as well. quote:what state do you need to maintain in a file? seems like you would have the same issue just using AWS autoscaling groups. this really isnt a kubernetes specific issue. It's definitely not a k8s specific issue, but I think it shows up more frequently than for bog standard ASG setups. We run redis internally and it persists the state to disk. We use a volume for this so if the pod gets moved the data isn't lost. For the most part we stay away from volumes for persistent data, but our on-premise package uses them for elasticsearch as well. sometimes you just need a persistent disk, ya know?
|
# ¿ Mar 13, 2019 21:22 |
|
|
# ¿ Mar 13, 2019 22:44 |
|
You'd want to anyway. No telling how many people would have some random branches with that password still embeded locally. Committed password is always a change this password case.
|
# ¿ Mar 15, 2019 23:09 |
|
brap posted:this is only possible in closed source projects using centralized versioning isn't it? You can scrub the history and fix the main repo, but any clones can easily keep the old history.
|
# ¿ Mar 16, 2019 01:12 |
|
Krankenstyle posted:lol if you dont force push every day i have a coworker who does this for all of his prs and its getting frustrated. let me see the individual changes ya butt!
|
# ¿ Mar 17, 2019 17:37 |
|
poo poo please bring back the force pushing this is terrible
|
# ¿ Mar 17, 2019 17:49 |
|
gonadic io posted:Related to that, does anybody have some advice for how to accept work from users without being overloaded? I have e.g., a limit of 100 concurrent users and see when (if) I get there what the server load looks like? I'm on a free tier gcp machine so I don't think I need to be too worried about cost. The workload should be almost entirely network throughput limited if you are simply proxying requests and responses. I'd expect even a free tier box to handle 100 concurrent users just fine as long as there's enough network throughput available. edit: The free tier GCP instance are limited to 1GB of egress data a month. That may be a factor. necrotic fucked around with this message at 17:32 on Mar 20, 2019 |
# ¿ Mar 20, 2019 17:25 |
|
when do we get a shaggarscript? Is it wasm?
|
# ¿ Mar 22, 2019 01:31 |
|
dependency injection
|
# ¿ Mar 26, 2019 22:25 |
|
gonadic io posted:markdown has support for tables but discord doesn't support it no this is a lovely thing about "markdown": there is "markdown" (the original design) which doesn't include tables, and then a zillion "extensions" that do. saying it supports "markdown" doesnt really mean poo poo anymore.
|
# ¿ Apr 16, 2019 20:44 |
|
Aramoro posted:Just overheard someone saying My favorite coworker says switching to typescript would entirely solve all bugs for us.
|
# ¿ Apr 17, 2019 14:35 |
|
I am a 10xer and therefore right 10x fewer bugs poo poo there's a bug in that sentence.
|
# ¿ Apr 17, 2019 15:04 |
|
|
# ¿ Sep 13, 2024 00:02 |
|
Jabor posted:pretty sure effort actually goes down as figgies go up exponentially
|
# ¿ Apr 18, 2019 16:05 |