|
I know I know the answer to this, but I'm drawing a huge blank. What's the name of this pattern?code:
|
# ¿ May 2, 2016 20:40 |
|
|
# ¿ May 14, 2024 12:40 |
|
Jewel posted:What kind of db could a an mmo like WoW or eve be using? I know there's a lot of instancing and caching involved but it still seems like there's a high data throughput. Unsure if complicated queries are necessary, though. I was involved with a (much smaller that wow) mmo a few years back, and I'm pretty sure it was some flavor of SQL. The whole game state is loaded on startup and kept in memory, so it's not like you have to be constantly pulling and pushing into the db.
|
# ¿ Jul 16, 2016 14:14 |
|
Marshmallow Blue posted:Hey everyone My guess is that you need to call Timer.reset before Timer.start. The documentation doesn't say anything about it, but start probably don't imply reset. My guess is that when it stops it gets into some undefined state that results it in ignoring the first delay when you restart.
|
# ¿ Aug 4, 2016 16:00 |
|
Jsor posted:I still don't understand how buffer overflows that allow the user to execute arbitrary code work. I mean, the concept is straightforward, but I have no idea how I'd be able to consistently target the instruction memory I'd want to overwrite. If you actually have a copy of the program sitting around, sure, you can run a debugger on it, and since programs generally execute pretty consistently you can target the overrun. On a remote program handling multiple connections allocating memory in unpredictable addresses? No clue how people manage it. If I had to guess you just inject the first <N> bytes with your malicious code and then just put in an absurd (i.e. megabyte sized or more) number of repeating "unconditionally jump to <start of malicious block>" statements afterwards. (Though if that's the case I'm not sure how you'd get the address of the start of the block it needs to jump to). On phone so can't really link but Computerphile on YouTube did a video on it recently that explained it well.
|
# ¿ Aug 18, 2016 03:52 |
|
The finder doesn't show the standard UNIX directories located on the root of the drive, but other than that wysiwyg, there's nothing to figure out. The Library(ies?) directory (in home and root) is likely of interest as that's the standard location for installing frameworks and the like, although you're free to put your stuff wherever you want.
|
# ¿ Sep 8, 2016 16:35 |
|
The day where I don't wonder if I'm writing a Daily WTF is the day it's time to find a new career
|
# ¿ Sep 30, 2016 18:29 |
|
Cuntpunch posted:But this comes from some rather senior people that I don't know well enough yet to doubt. Seniority does not imply competence
|
# ¿ Oct 18, 2016 01:36 |
|
I assume that everything that's not critical life threatening is always about to blow up. That's not to say critical life threatening things aren't the same way
|
# ¿ Oct 22, 2016 01:43 |
|
I've always, without any expertise or experience, figured that Big Data refers to breadth of data rather than pure size. That is to say, while Facebook and Google obviously have more data than Stack Overflow, what makes their data Big Data is that it covers a wide variety of information that you can cross-reference and use to make predictions or learn about your users or all of that other stuff they can sell ads with. Or in something like IBM's use of Watson in medical contexts, draw together disparate bits of information to figure our diseases and diagnose tricky problems.
|
# ¿ Nov 11, 2016 17:36 |
|
Modest Mouse cover band posted:e: Thanks for the example that really helps. I don't really understand what pointers are, no. I was thinking it was related to scope, but that seems wrong. For example why does this function need a pointer declaration: http://stackoverflow.com/questions/8958044/expected-constructor-destructor-or-type-conversion-before-token ? Massive oversimplification, but in c# whenever you pass a non-primitive value to a function, you're essentially passing a pointer (the location of the item in memory rather than creating a copy). While c# assumes the pointering, in c++ you have to explicitly declare it.
|
# ¿ Dec 3, 2016 02:06 |
|
Sounds like it existed pre 1997 (how many bets on usenet) and the last maintainers didn't give a drat about modernizing.
|
# ¿ Dec 10, 2016 00:38 |
|
I like the issue tracker on Github, but that probably doesn't make sense if you're not using github (in which case you probably wouldn't be asking the question). JIRA is a big monster that's probably overkill if you're not doing corporate-scale work.
|
# ¿ Dec 28, 2016 15:34 |
|
At my current job, checking a file in means pushing it to the test server Fortunately we're being forced by those on high to convert to git, but my boss thinks this is a step backwards and everything is fine
|
# ¿ Mar 3, 2017 15:24 |
|
I don't think there's any answer that doesn't ultimately end with "pray that their penetration defense is undefeatable"
|
# ¿ Apr 17, 2017 21:11 |
|
LP0 ON FIRE posted:The 1x1 image with the request and the Google thing to prevent it is blowing my mind too. Good to be aware a little more what's going on, instead of blindly using PHP to automatically generate emails for people. It's not just email, either. Tracking pixels (as they're called) are used to track web browsing, too
|
# ¿ Apr 20, 2017 20:30 |
|
Star War Sex Parrot posted:I highly recommend the textbook Computer Systems: A Programmer's Perspective if you want exposure to systems topics. For example, you'll understand why two algorithms that accomplish the same task with the same time complexity can take wildly different amounts of CPU time. For example (this is from that course's slides), these two functions do the same thing but have noticeably different runtimes. All that's different from a code standpoint is the order of the iteration for the two index variables: So what's the reason there? The j arrays are stored in a one after another, so (i,j) is just incrementing the pointer, but (j,i) means you're running around in circles?
|
# ¿ Jun 9, 2017 13:58 |
|
Linear Zoetrope posted:So I've never worked with JS before and for my own education I'm trying to look through some of the JS a colleague wrote in our new project: The event processing loop is dupersaurus fucked around with this message at 19:36 on Oct 16, 2017 |
# ¿ Oct 16, 2017 19:32 |
|
Linear Zoetrope posted:So I assume that the Websocket construction is secretly modifying some lower-level global state in the browser context or spawning something akin to another thread (I know JS doesn't have threads but I'm saying something async running its own loop even if it's scheduled on a single thread)? Nice to know returning from main doesn't terminate the program in JS I guess. Presumably the websocket object does something that keeps it out of the jaws of the garbage collector, yes. Also worth noting that that the function is called main has no special meaning to javascript.
|
# ¿ Oct 16, 2017 19:57 |
|
Shy posted:A global variable exists for as long as the context that created it, and the referenced object doesn't get destroyed as long as it's being referenced, so assuming the context is persistent (browser page?) the object persists too. The scope is the main function. Nothing outside of it (assuming var dealer doesn't appear in the global scope). Even if you're treating main as an object constructor, dealer isn't a member property, it's just there in the ether of the closure (the functions defined on dealer do technically have access to the dealer object). Edit: Linear Zoetrope posted:Well, right, but something, somewhere, has to be doing something along the lines of (pseudocode): Yes, WebSocket it itself listening to its own set of callbacks (I'm not familiar with the websocket api so I couldn't tell you what exactly the callbacks are). That you haven't explicitly defined every callback isn't a problem, it happens all the time in JS. dupersaurus fucked around with this message at 20:28 on Oct 16, 2017 |
# ¿ Oct 16, 2017 20:25 |
|
Linear Zoetrope posted:What I'm saying is there's a potential problem in like If you set the callbacks right after opening the connection there is no concern, this is standard JS usage. It's (presumably) all asynchronous, JS is going to have its callbacks long before the connection is opened.
|
# ¿ Oct 16, 2017 20:36 |
|
strange posted:If I want to render SPA DOM code on the server am I stuck with a something running on Node? Can I get any of the big front-end frameworks to hook into my server-rendered DOM + state object? Theoretically there's no reason you couldn't write your DOM into, say, React js files or Angular template files and serve those to the client. Although you'd have to be careful how you do that so you don't lose the advantages of caching. Node's just the natural use case since the built-in tools use it. Bruegels Fuckbooks posted:i'm almost inclined to say that if you want to render SPA on the server, you could like, consider not making an SPA. SPA is a specific technical term meaning "bloated website that uses a twenty megabyte of js framework to solve the challenging technical problem of making it so if the data in your model changes, your view should also update." Server-side rendering of the first page is a legit technique. Helps with web crawlers and speeding up the initial download and render.
|
# ¿ May 30, 2018 13:51 |
|
22 Eargesplitten posted:I see, that makes sense. So it is a formal name for a pretty standard way of doing things. The only parts that don't seem blindingly obvious are that the object is defined by URL endpoint and it being in JSON, although like Janitor Prime said it's not strictly required. And from stupid point of view it seems like you should almost always be using JSON for that sort of thing anyway. SPAs are about manipulating the DOM on the client to render, and can mean as much as rendering the whole page on the fly in javascript. Using anchors like back in the day means that you still have the whole DOM delivered to you as a static page that’s all there, but if you’re using an SPA framework like React or Angular, the page is provided as template pieces that the framework adds and removes and manipulates from the DOM as needed via javascript. So say you click a link, instead of pinging the server for a new static page, the framework clears the DOM and adds the new content where it needs to be.
|
# ¿ Nov 9, 2018 00:00 |
|
22 Eargesplitten posted:I see. What you say it is sounds more like what I was thinking. Then why do all those articles talk about scrolling being such a huge thing? Is it a terminology confusion thing? It seems like what you're saying would require just as much link clicking as a multi-page application. It’s about loading than clicking. Instead of making constant http requests for html, you make one big asset dump at the start, cache it, and then little api calls from then on. Also, the client knows better how to render for itself than the server does, so responsiveness is a little easier.
|
# ¿ Nov 9, 2018 01:12 |
|
22 Eargesplitten posted:Interesting. Responsiveness seems like it is probably one of the most painful parts with how many different resolutions and screen sizes there are now, so that seems like a big plus. The first load can be painful but the browser can/will cache some amount of it, and if the app is built well the code that changes a lot will be separated from the code that does not, so future visits will load quicker. Server and client are then happy since from then on they're essentially only talking in deltas, not whole pages.
|
# ¿ Nov 9, 2018 13:43 |
|
Dominoes posted:Hey dudes. I've been working on a proj and the past few commits are down a rabbit hole I can't wake myself out of. Want to revert a few commits without losing everything. First rule of git is make all changes in branches.
|
# ¿ Jan 20, 2019 14:31 |
|
And in your first case, all of the decrements are happening before the first after log is printed.
|
# ¿ Sep 20, 2019 20:52 |
|
You no longer need an iOS developer license to put stuff on a device, just to publish.
|
# ¿ Jan 4, 2020 15:46 |
|
Keetron posted:I am really bad at thinking up projects to do and I would like to help out in open source. Also I am rather proficient at writing tests and I like to work in java 11+ or Kotlin. Can anyone point out a project that could use some help? (xposting to java thread) Make an art prompt generator
|
# ¿ Jan 26, 2020 20:44 |
|
Volguus posted:I've seen it happen too (it was XML and they had if-like-statements and loops in there) and it's insane. holy poo poo don't tell me there's more than one of these in the world
|
# ¿ Feb 20, 2020 14:39 |
|
Rocko Bonaparte posted:Any sufficiently large organization--and probably several small ones--does this at least once. A decade-younger Rocko almost did this and managed to step back. But it's not just me. There was at least one other tool that definitely did this, and then redid itself as basically a graphical Python editor. Finally, somebody else decided to literally reinvent C++ and make a hundred other people try to write code in it. My case might be worse. My then-boss, somewhere in the early-middle '00s, decided he wanted to make something better than PHP. So he wrote an XML-compliant (and I think turing-complete?) scripting language: variables, conditionals, loops, functions, database access. The company's entire customer and customer service portals, spanning easily 15 years, was made with it. Last I heard, it's only now starting to be replaced by something sensible. It's quite an achievement to make PHP look good
|
# ¿ Feb 20, 2020 19:24 |
|
Plank Walker posted:Quick CSS/HTML question, a div's border appears to be always rendered "inside" its area, is there a way to center the border line on the boundary of the div? I.e. if i have a 10px border, 5px of the line should be inside the div's area and 5px should be outside. half in border, half in outline efb
|
# ¿ Mar 2, 2020 17:47 |
|
vscode is great and can get real smart about autocompletes and such, but it’s entirely dependent on the language plugin. It may be the Rust plugin isn’t that smart, or maybe there’s some config you’re missing? The plugin page would hopefully have documentation on it.
|
# ¿ Mar 25, 2020 03:33 |
|
tbf pair programming can gently caress off
|
# ¿ Mar 27, 2020 04:08 |
|
KillHour posted:Why? Javascript is
|
# ¿ Jun 11, 2020 01:38 |
|
sausage king of Chicago posted:this is a dumb question, but it came up at my job a few days ago and just wanted opinions: Option 3. If at some point you need to void specific coupons by id, you’d just slap it on the end.
|
# ¿ Jun 19, 2020 03:49 |
|
Nigel Tufnel posted:I’m currently learning React through Codecademy but, having previously learned Python through Codecademy and been unimpressed with where it left me once I finished the course, is there a better resource people recommend for learning React? I've always thought pretty highly of the official React docs and tutorials, and it looks like they might have improved the later
|
# ¿ Jun 22, 2020 13:54 |
|
OtspIII posted:Okay, I've got some follow-up misc questions I've built up over the weeks of working on this that I haven't been able to google my way out of. Here's my first: You can set it up in many ways, but the gist is: code:
|
# ¿ Jul 8, 2020 21:02 |
|
OtspIII posted:Oh man, I figured it out. That 6-requests-at-a-time is a browser restriction
|
# ¿ Aug 29, 2020 15:16 |
|
Away all Goats posted:Regarding CSS, is it possible to assign values to a particular tag, within a div tag? code:
|
# ¿ Feb 24, 2021 00:01 |
|
|
# ¿ May 14, 2024 12:40 |
|
Baby's first machine learning question: I've made a camera to watch my bird feeder, and now I want to get some automatic identification going on. I grabbed this pre-trained model for Tensor Flow, and it works great on birds, but it's also pulling birds out of thin air from no-bird images. I haven't yet dug into the evaluating prediction confidence (if that's even a thing), but it got me thinking about training for null cases. The model has a label "background", and I'm wondering: what's going to happen if I add some training using my own pictures, including feeder-only shots classified as "background"? Would it help, or is it going to confuse things since the feeder is always going to dominate the picture?
|
# ¿ Feb 26, 2021 00:05 |