|
Question and sorry if this seems dumb but what's the use of using a ORM to set up schema and tables over a tool like DBeaver?
|
# ? Feb 21, 2021 14:14 |
|
|
# ? May 30, 2024 19:36 |
|
Empress Brosephine posted:Question and sorry if this seems dumb but what's the use of using a ORM to set up schema and tables over a tool like DBeaver? People design their models in different ways. Some like to code the app first, some like to do data modelling, some like to design databases. With an ORM like entity framework, you can take a code-first approach and write your application domain logic first, and generate the database through that (e.g. write the domain logic in C#, and get the database just by providing type annotations for entity framework.) You can also generate the database using a model-first approach (e.g. use EF editor to create the data model, and generate the database from that.) EF can also go the other way and take an existing database, and generate model classes from that. Goal is to only have to create your model once using whichever way you're most comfortable with (e.g. code/model/db) and have the other representations be generated automatically, rather than manually translating your data model into code and database work.
|
# ? Feb 21, 2021 15:42 |
|
Some people want to pretend that the details of their data store don’t matter. This usually works out very badly, eventually.
|
# ? Feb 21, 2021 15:59 |
|
That makes sense and its nice to hear that I guess you can use what is easiest. I’m teaching myself Prisma but I’m not really understanding the concept of this:code:
|
# ? Feb 21, 2021 16:07 |
|
Empress Brosephine posted:That makes sense and its nice to hear that I guess you can use what is easiest. I’m teaching myself Prisma but I’m not really understanding the concept of this: Probably should start here: https://www.prisma.io/docs/concepts/overview/what-is-prisma The quoted text is a prisma schema. This schema is used by the prisma client to understand the content of your database (so you can use the api to query against it). You can get this automatically from an existing database by calling "prisma introspection", or you can create it yourself if need be. For @@map specifically: App developers like camel case (e.g. createdAt), whereas database people like snake case (e.g. "created_at"). @@map in the above example makes it so the "createdAt" field in the schema maps to "created_at" column in the database - e.g. in this case, prisma client api would have "createdAt" in any returned User objects, but the field in the database would still be labeled "created_at". Bruegels Fuckbooks fucked around with this message at 16:50 on Feb 21, 2021 |
# ? Feb 21, 2021 16:48 |
|
Thank you for explaining @@map because their docs didn’t from what I could see. That makes sense though. I did manage to figure the rest out, although I screwed myself over because I didn’t realize SQLite doesn’t support lists lol rip. I guess I could do a row entry for every “feature” I need to log of the item, but lists would make it more concise :v. Thanks for all the help
|
# ? Feb 21, 2021 16:52 |
|
If you only have a single database and no users you can just change the database directly if you want. One thing Prisma gives you is automation: it can create the schema on application startup if it doesn't exist, or migrate the schema if it isn't up-to-date. This matters more when you have multiple developers each with their own local database, and when you have test environments where new features can be tested before being released to the public. By keeping it in source control you can change the data model and code together. Note that you don't need an ORM just for the automation part. You can instead write SQL migration files describing schema changes over time, and keep the database up to date using a library like https://github.com/aaronabramov/node-sql-migrations.
|
# ? Feb 21, 2021 17:04 |
|
Huh I didn’t even think of that and keeping it all up to date, I figured developers just hosted the DB on a site like AWS and everyone just accessed it. Thats good to know though, thank you all for the help. I’m learning Prisma better now even within the last ~2 hours
|
# ? Feb 21, 2021 17:53 |
|
hbag posted:I'd prefer to do it with either bash or perl, but it's good to know I've got that as a backup. https://catonmat.net/introduction-to-perl-one-liners you can do all this with Perl, if you want
|
# ? Feb 22, 2021 17:21 |
|
Would people be interested in a thread for talking about language design and implementation? That would include compilers, interpreters, parsing, code gen, similar stuff.
|
# ? Feb 23, 2021 09:06 |
|
VostokProgram posted:Would people be interested in a thread for talking about language design and implementation? That would include compilers, interpreters, parsing, code gen, similar stuff. I'd be into that, but I don't often hunt for new threads.
|
# ? Feb 23, 2021 11:52 |
|
VostokProgram posted:Would people be interested in a thread for talking about language design and implementation? That would include compilers, interpreters, parsing, code gen, similar stuff.
|
# ? Feb 23, 2021 14:37 |
|
Alright, I will attempt to write an OP
|
# ? Feb 23, 2021 16:17 |
|
VostokProgram posted:Would people be interested in a thread for talking about language design and implementation? That would include compilers, interpreters, parsing, code gen, similar stuff. here u go https://forums.somethingawful.com/showthread.php?threadid=3481275
|
# ? Feb 23, 2021 18:11 |
|
Now there's a thread with a coherent topic!
|
# ? Feb 23, 2021 19:44 |
|
Looking for a fellow goon to help me out in CheatEngine..I've spent days trying to create a hack that's supposed to be real easy
|
# ? Feb 23, 2021 21:39 |
|
Regarding CSS, is it possible to assign values to a particular tag, within a div tag? For example I have a code:
I can't do code:
Away all Goats fucked around with this message at 23:47 on Feb 23, 2021 |
# ? Feb 23, 2021 23:42 |
|
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 |
dupersaurus posted:
This, and the topic you should read up on is called CSS Selectors.
|
|
# ? Feb 24, 2021 08:22 |
|
i thought all you could do with cheatengine was change memory values you can write poo poo for it?
|
# ? Feb 24, 2021 09:13 |
|
You can write scripts that automate the process of changing specific memory values, yeah. So that the next time you want to cheat at a particular game, you don't need to mess around figuring out how to change that specific thing - or you can share it with someone else, so that they can mess around with those values without even needing to find the right locations themselves.
|
# ? Feb 24, 2021 12:10 |
|
Away all Goats posted:Regarding CSS, is it possible to assign values to a particular tag, within a div tag? Also, SCSS lets you do exactly this but you then have to run it through a processing step to get the CSS.
|
# ? Feb 24, 2021 14:04 |
|
nielsm posted:This, and the topic you should read up on is called CSS Selectors. Thank you!
|
# ? Feb 24, 2021 20:03 |
|
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 |
|
Try it and see.
|
# ? Feb 26, 2021 00:19 |
|
My hunch is that shots of just the feeder as background would help the classifier differentiate between “a feeder” and “a feeder with a bird at it” but really justultrafilter posted:Try it and see.
|
# ? Feb 26, 2021 00:31 |
|
It's a totally legit thing to add background-only images to your training dataset. Images that have the target classes in them are often called "positive" samples and background-only are "negative" samples. Some neural network architectures fare better with the addition of negative samples in the training dataset, but ultimately like everyone else said, you won't really know if it helps unless you try it yourself.
|
# ? Feb 26, 2021 18:12 |
|
How can I find a good boot camp? I won’t be attending until I can do it in person, but i’ve been learning javascript (a mix of codecademy, exercism, and weekly lessons from a friend in the biz) for the past couple months, and I wanna take it to the next level so I can make this a career. It’ll most likely be for some kind of webdev, although maybe cyber security—i’m still pretty early on this journey and just figuring out what I’m into. What sorts of things should I look for or avoid? What’s a reasonable price? I’m located in NYC fwiw.
|
# ? Feb 26, 2021 18:33 |
|
Head Bee Guy posted:How can I find a good boot camp? I won’t be attending until I can do it in person, but i’ve been learning javascript (a mix of codecademy, exercism, and weekly lessons from a friend in the biz) for the past couple months, and I wanna take it to the next level so I can make this a career. It’ll most likely be for some kind of webdev, although maybe cyber security—i’m still pretty early on this journey and just figuring out what I’m into. I graduated from a bootcamp in 2016 and have a good job, but #1 my bootcamp doesn't exist any more #2 I've heard that bootcamps in general have changed a BUNCH since I graduated. I suggest reaching out to recent grads from the various bootcamps and see what they have to say.
|
# ? Feb 26, 2021 20:30 |
|
Slimy Hog posted:I graduated from a bootcamp in 2016 and have a good job, but #1 my bootcamp doesn't exist any more #2 I've heard that bootcamps in general have changed a BUNCH since I graduated. I suggest reaching out to recent grads from the various bootcamps and see what they have to say. I heard something similar from my tutor. I feel like I’m at a loss as to how to actually research this, as most of the google results I find are SEO sponcon garbage
|
# ? Feb 26, 2021 23:53 |
|
Head Bee Guy posted:I heard something similar from my tutor. I feel like I’m at a loss as to how to actually research this, as most of the google results I find are SEO sponcon garbage I have a friend who did "Fullstack Academy" a couple of years ago and is happy where she landed
|
# ? Feb 27, 2021 00:12 |
|
dupersaurus posted:Baby's first machine learning question: Because birds are part of Imagenet its gonna be super duper easy to pull them out of a webcam feed. I'd go at this like others are suggesting with a potential multilabel classification I find fastai extremely good for getting something up and running in a day or two to see fi this will be a hard problem or not. They have tutorials and make it super easy to use pretrained models.
|
# ? Feb 28, 2021 04:41 |
|
This project’s been one leeroy jenkins after another, so yeah why stop now I’ll check fastai out too. Though I got something out of tensor flow, it feels a bit too obtuse for starting from scratch.
|
# ? Feb 28, 2021 05:10 |
|
Binary time. I'm trying to mangle an output from a Mifare cardreader in Python, to convert the output from it to all the possible formats needed. The original software can only read one format at a time, can only run single instanced and needs to restart for each format change. Raw tag is E267F805, output from reader is 05F867E2. My problem is the third format, which after reading in from the reader gets converted somewhere in the bowels of the original program to 091BF2E2. Besides my example tag here, as the reader reverses the card UID, 0A2B4C6D -> 6D4C2B0A and creates the third format, the rightmost byte get preserved. code:
|
# ? Feb 28, 2021 12:50 |
|
I spent far too long looking at that. You’ve got an extra bit in there so its not purely shifting stuff around. A brief look at various card standards shows use of parity bits, maybe there’s some other clues in your reader program or documentation for the type of card this is that can help.
|
# ? Feb 28, 2021 20:52 |
|
dupersaurus posted:This project’s been one leeroy jenkins after another, so yeah why stop now FastAI's whole deal is to get subject matter experts using ML and DL without having to know much about it to make something useful. Especially for image recognition, they make it trivially easy to use pretrained models. The Hobby Coin Project (TM) in my red text was actually built w/fastai in a jupyter notebook which started with ImageNet.
|
# ? Feb 28, 2021 21:33 |
|
yippee cahier posted:I spent far too long looking at that. You’ve got an extra bit in there so its not purely shifting stuff around. A brief look at various card standards shows use of parity bits, maybe there’s some other clues in your reader program or documentation for the type of card this is that can help. Thanks, its good to know its not blindingly obvious as my pool of eyeballs on this little side project consists of only me. Have to pour over my dump of multiple tags again to see if there is some constant to the madness. Only clue from the access control program is that the last format is called block read. As a sidenote it mangles both Mifare and prox tags in the same way, and changing formats does not affect whats comes in over the virtual com port.
|
# ? Feb 28, 2021 23:20 |
|
sale on Udemy for new users (it'll be over soon though). i picked up a comprehensive Python course and a machine learning course for $26, should keep me busy for a while E: I have been informed that it's their business model to have everything on sale all the time and this isn't anything special lol Still it was nice to find some courses in my unemployed rear end's budget tho, everything else I've seen was significantly more expensive so I was just using free courses turd in my singlet fucked around with this message at 15:33 on Mar 3, 2021 |
# ? Mar 3, 2021 14:57 |
|
I'm learning C# and I can't figure out this exception ("IndexOutOfRangeException: Index was outside the bounds of the array."). The program is supposed to read a text file, parse it one line at a time and then split the line into from/to/body/tag/id sections. It says index was outside the bounds of the array but it should be fine? This is the parse method that's supposed to split the line it gets fed: code:
code:
http://pastie.org/p/2Y7EPCCYEjXOTCvVRtuK5f What am I doing wrong?
|
# ? Mar 4, 2021 05:15 |
|
|
# ? May 30, 2024 19:36 |
|
Away all Goats posted:I'm learning C# and I can't figure out this exception ("IndexOutOfRangeException: Index was outside the bounds of the array."). I cannot open pastie.org for some reason, but the sample text you posted only has 3 tabs at most. It would fail by the time you want to get the tag.
|
# ? Mar 4, 2021 05:19 |