|
leper khan posted:The Russians just used java Unfortunately the Russian's code was used by another project, that was used by another project, which was used by another project, and one of the middle projects used node.js
|
# ? Oct 22, 2021 02:28 |
|
|
# ? May 15, 2024 02:42 |
|
Urthor posted:Unfortunately the Russian's code was used by another project, that was used by another project, which was used by another project, and one of the middle projects used node.js Also, the Java code actually caused a shitload of brief service interruptions due to poor garbage collection in a runtime. This is because that JRE couldn't be updated past 1.1 because of reliance on specific bugs in that specific JRE and the use of internal values the JRE should have, but didn't, prohibit access to. Everyone is afraid to touch the house of cards because it appears to rely on a compiler bug of some kind as well. NASA was able to reuse a FOSS project that was made with their needs as a possibility but not a specific requirement, so they not only received the code for effectively free, they got updates.
|
# ? Oct 23, 2021 23:03 |
|
two questions: anyone know any good common lisp books? if it helps to narrow it down i am already decently familiar with scheme. don't mind if it doesn't have a professional/serious focus, just asking out of interest. to what extent do front-end web developers reuse code between projects? i was talking to one of my friends about this and it sounded like they basically end up doing things from the ground up for each project, even though many projects had a large number of shared, sometimes almost identical requirements. is this normal? if it's not obvious I know jack poo poo about web development, or js for that matter, so I don't know how feasible code reuse is.
|
# ? Oct 26, 2021 01:50 |
|
Buck Turgidson posted:two questions: the frameworks and tools change so quickly that most of the time all that copy and pasting the old code will get you is a bunch of whining in code reviews about trivialities like let vs. var, or the code might not even be relevant due to the nature of the framework. most of the time the stuff you'd copy between projects is probably in an npm package somewhere anyway.
|
# ? Oct 26, 2021 04:44 |
|
I would guess that all the frameworks and libraries are people trying to reuse their code on their next project, but I know better.
|
# ? Oct 26, 2021 05:13 |
|
My experience has been that projects that look like they share functionality are quite often subtly different enough that it's easier to start from a clean slate rather than trying to work around an increasingly frankensteined local framework. The reusable stuff is more like institutional knowledge. But also "ground up" probably means something like "let create-react-app build a new project for you", which is like 90% of all the stuff that you would reuse
|
# ? Oct 26, 2021 14:30 |
|
Does anybody use Gitlab? Have they had any success getting a merge request from a fork to run on the parent project's pipeline. Their documentation claims it can but the Run Pipeline button isn't available in that tab for me. This makes it looks like I should be able to do it: https://docs.gitlab.com/ee/ci/pipel...-forked-project Our own IT is just a bunch of contracted 1st level support that doesn't actually know the tool and just rehash that pipelines can only be run under the CI/CD menu. This even as they literally read that documentation. They see the first half and ignore the second half. I'm getting pretty pissed off over it.
|
# ? Oct 27, 2021 16:52 |
|
Do you have the Developer role on the parent repo?
|
# ? Oct 27, 2021 17:06 |
|
necrotic posted:Do you have the Developer role on the parent repo? The Owner role.
|
# ? Oct 27, 2021 17:23 |
|
Anyone in here good with ML? I'm trying to filter out email spam with a Naive Bayesian model, but I am getting ValueErrors between my training/test sets and the actual data I want to apply the model to.code:
code:
|
# ? Nov 3, 2021 01:32 |
|
What is the shape of X_train versus df2_contents? I suspect you might find that X_train is something along the lines of (N, 1211) and df2_contents is (N, 249) where N is the number of samples for each dataset. I'm more of a CV ML person and not NLP, but my gut feeling is that there might be some funky usage of CountVectorizer going on. (I inform you that I don't know much about NLP to basically say don't trust my gut.) Maybe use CountVectorizer in a pipeline kind of like in this sklearn example? https://scikit-learn.org/stable/aut...e-extraction-py
|
# ? Nov 3, 2021 01:49 |
|
Gin_Rummy posted:Anyone in here good with ML? I'm trying to filter out email spam with a Naive Bayesian model, but I am getting ValueErrors between my training/test sets and the actual data I want to apply the model to. Without reading the code or thinking about it, if youre tokenizing by word are you asking it to make preds on words it wasn't trained on?
|
# ? Nov 3, 2021 02:32 |
|
Highly probable, though I can't say for sure. The training set was massive... thousands and thousands of emails.
|
# ? Nov 3, 2021 02:44 |
|
Gin_Rummy posted:Highly probable, though I can't say for sure. The training set was massive... thousands and thousands of emails. That looks like the issue to me. You're making a separate CountVectorizer for the second dataset, so it's vectorizing things differently. Use code:
|
# ? Nov 3, 2021 02:50 |
|
defmacro posted:That looks like the issue to me. You're making a separate CountVectorizer for the second dataset, so it's vectorizing things differently. Use Is "transform" the proper library call? Different variations of message_bow.transform, fit, and fit_transform have given me a new type of value error. If I am no longer using "CountVectorizer" would I still be able to call my analyzer, which was meant to parse my input text? code:
Protocol7 posted:What is the shape of X_train versus df2_contents? I suspect you might find that X_train is something along the lines of (N, 1211) and df2_contents is (N, 249) where N is the number of samples for each dataset. X_train and df2_contents both print in the following format: code:
Gin_Rummy fucked around with this message at 23:47 on Nov 3, 2021 |
# ? Nov 3, 2021 23:44 |
|
Gin_Rummy posted:Highly probable, though I can't say for sure. The training set was massive... thousands and thousands of emails. Yea you need to add a step where you make sure all of your real world words exist in your model. Handle the ones you dont however you want, (e.g. display them, drop them, etc.)
|
# ? Nov 4, 2021 00:21 |
|
Do feature selection on your words and you'll stop having this problem. You might also get better results.
|
# ? Nov 4, 2021 02:03 |
|
Gin_Rummy posted:Is "transform" the proper library call? Different variations of message_bow.transform, fit, and fit_transform have given me a new type of value error. If I am no longer using "CountVectorizer" would I still be able to call my analyzer, which was meant to parse my input text? Ah sorry, I remembered the syntax incorrectly. You'll want to do something like this: code:
The three methods of a vectorizer do the following things: * fit fits the words to the vectorizer and updates it's internal state * transform, given an existing fitted vectorizer, returns the transformed vectors * fit_transform does both A contrived example: code:
defmacro fucked around with this message at 14:42 on Nov 4, 2021 |
# ? Nov 4, 2021 14:40 |
|
Postgres admin trouble: I had a database running in a container. The data lived in persistent storage, but the configs apparently did not. I'm in a new container, and can see all the data files, but can't figure out how to restart the cluster / reload the db.
|
# ? Nov 4, 2021 17:53 |
|
Just put that volume at the data folder and it should start up as normal, assuming you have your new configs ready. Is it failing to start with some error?
|
# ? Nov 4, 2021 18:08 |
|
necrotic posted:Just put that volume at the data folder and it should start up as normal, assuming you have your new configs ready. Is it failing to start with some error? I was trying to use pg_createcluster -D /opt/scratch 10 scratch. That said I didn't have postgresql.conf, so I made a blank one and tried again. That said I didn't have pg_hba.conf, so I copied one I had sitting around (and re-made the blank one which got deleted???), repeat with pg_ident.conf, and then it says 'Error: cluster configuration already exists'. I don't know what all config files I need to have, or if I should be using something other than pg_createcluster. I'm installing postgres using apt-get install postgresql postgresql-contrib and working as the postgres user. EDIT: Started a new container, installed postgres, started db with /etc/init.d/postgresql start (the apt-get message said to use pg_ctl which didn't seem to want to work?), and after that I was able to do the same dance and get it going. fritz fucked around with this message at 18:32 on Nov 4, 2021 |
# ? Nov 4, 2021 18:23 |
|
Can anyone give me any hints (no flat out answers please) as to why this is running so slow? I'm passing most of my tests except it times out on hackerrank when given large sets of data. I'm taking in a string array and testing to see if the strings within the query params (query entries look like "31-50") start and end with vowels.code:
|
# ? Nov 5, 2021 01:39 |
|
Frequently, when a programming puzzle involves multiple questions over the same data set, and you know all the questions up-front, the trick to making it fast is to re-use work between questions instead of solving it from scratch each time.
|
# ? Nov 5, 2021 04:44 |
|
Just reporting back to thank you all for the ML guidance. I was able to sort through most of the problems and get it working! Now I have to ask if anyone can recommend a good way to "call" my trained model in another script/instance? I am thinking if I pickle my classifier and the vectorizer (and probably the bag of words too?), I can call each of the files in another script... however I don't seem to be able to pickle the analyzer (my process_text function) with my vectorizer, which makes it DOA in any new script.
|
# ? Nov 7, 2021 22:19 |
|
Predictive model markup language
|
# ? Nov 7, 2021 22:42 |
|
Gin_Rummy posted:Just reporting back to thank you all for the ML guidance. I was able to sort through most of the problems and get it working! Now I have to ask if anyone can recommend a good way to "call" my trained model in another script/instance? An error would help! I googled and found this saying you might just need to import it, but it's from a decade ago so who knows.
|
# ? Nov 8, 2021 16:28 |
|
I guess a general question I have is this: I feel like I should pick a language to learn, not really for pleasure, but for work. Work doesn’t really have a specific thing for me to learn, and I don’t really know what I want to learn here. (ideally speaking I want to get out of helldesk, not out of lack of interest in computer/tech, but l don’t want to work with bottom feeder computer users anymore. If wishes were fishes I would want to try doing game development, as probably over-saturated as that is, but that’s not even remotely the same as the work I do now.) That being the case, what should I learn? I used to take classes on HTML/Javascript/Java/C (basic)/CSS ages ago when I was in school, but nothing really since then. I do like messing around with JQL at work for the filters and dashboards, since we use JIRA for customer facing tickets but their position wants stuff like, LEAN and development on a large scale (out of my element) I was thinking maybe Python would be useful here, but IDK really and wanted some suggestions or a “do this” directive edit: I forgot I also tried learning VB in high school, and VB.net back then too. Never been especially good with math, but I did end up getting a C in Calculus 2 in college... (I found pre-calc and Calc 1 way harder. It made much more sense for inverse equations than regular ones...) GreenBuckanneer fucked around with this message at 05:22 on Nov 11, 2021 |
# ? Nov 10, 2021 23:49 |
|
GreenBuckanneer posted:I guess a general question I have is this: A significant portion of the games industry uses Unity. Though there may be less overlap with the portion of the industry you dream about working in. Experience with C# will get you pretty far there, and there are almost infinite openings working on enterprise C# Microsoft stack stuff. If your only goal is employability as an engineer, it's hard to go wrong with C#. JavaScript also, but then you'd have to work with JavaScript developers. Python might be an easier transition if you're already janitoring shell scripts.
|
# ? Nov 11, 2021 01:03 |
|
Take a look at the newbie programming thread. There are a lot of people who are a few months ahead of you there, and some who might be looking to hire them as well.
|
# ? Nov 11, 2021 01:07 |
|
GreenBuckanneer posted:I guess a general question I have is this: If you're in a support role in a Windows ecosystem, PowerShell. You'll start finding real-world uses for it almost immediately, which makes it a lot easier to learn and retain. And since it's built on .NET, it's a good prelude to learning C#. That may not be the most direct route to game development, but it might lead from helpdesk to a more interesting DevOps position.
|
# ? Nov 11, 2021 01:30 |
|
GreenBuckanneer posted:I guess a general question I have is this: Python.
|
# ? Nov 11, 2021 04:37 |
|
Toast Museum posted:If you're in a support role in a Windows ecosystem, PowerShell. You'll start finding real-world uses for it almost immediately, which makes it a lot easier to learn and retain. And since it's built on .NET, it's a good prelude to learning C#. That may not be the most direct route to game development, but it might lead from helpdesk to a more interesting DevOps position. Yes this would be the most immediate thing they could do. I have to add a personal counterpoint to this that I find PowerShell's syntax to be the most opposed to the syntax of the languages I'm otherwise using for programming standalone applications right now. I'd also emphasize they they be careful with how they wind up getting into that because they want to become a hirable programmer elsewhere and not just "that guy" at their current company. I'm plagued with that problem right now and that's just from Python programming.
|
# ? Nov 11, 2021 19:42 |
|
Are there any tips or guides to help make IntelliJ's GUI designer less... dreadful? I'm trying to use it for a Java project for uni and the weirdness of pasting stuff directly "against" other elements is reminding me of my shitful time with AEM building websites. It's really hard to manually add any code to format the frames as well. Sizing the window for example I've had a look for tutorials (especially videos) but everyone seems to want to use Eclipse and build the whole thing manually using null layouts Sorry if this is a dumb question, I'm extremely new Synonymous fucked around with this message at 14:25 on Nov 12, 2021 |
# ? Nov 12, 2021 14:20 |
|
Synonymous posted:Are there any tips or guides to help make IntelliJ's GUI designer less... dreadful? For Java I would really recommend writing the layouts by hand. They are powerful, easy to grasp and you end up in the end with a more maintainable code than if you would go with a designer. Any designer. Start here: https://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html There are other layouts that people swear by, but they are not in the standard library (as far as I know): https://www.miglayout.com/ . If you can use whatever library you want, then MiG layout may be even easier than all the others.
|
# ? Nov 12, 2021 19:41 |
|
My big piece of advice for making Swing more sane is use the model interfaces, don't use the default models. Too many people screw up by trying to make a new layer that moves data between the real model and the DefaultWhateverModel when the default models are very limited.
|
# ? Nov 13, 2021 00:13 |
|
Rocko Bonaparte posted:Yes this would be the most immediate thing they could do. I have to add a personal counterpoint to this that I find PowerShell's syntax to be the most opposed to the syntax of the languages I'm otherwise using for programming standalone applications right now. I'd also emphasize they they be careful with how they wind up getting into that because they want to become a hirable programmer elsewhere and not just "that guy" at their current company. I'm plagued with that problem right now and that's just from Python programming. Yeah I don't want to be "that guy". I'm already "that guy" who does the helpdesk call stats, though, I wrote up a whole step by step document they can have if they wanted someone else to do it. It's a bunch of excel busy work I don't care for. I could make it nicer with pivot tables but
|
# ? Nov 13, 2021 03:38 |
|
Volguus posted:There are other layouts that people swear by, but they are not in the standard library (as far as I know): https://www.miglayout.com/ . If you can use whatever library you want, then MiG layout may be even easier than all the others. Literally re-implemented it when I needed to do UI layout in a different language. There's just no comparison.
|
# ? Nov 13, 2021 03:50 |
|
defmacro posted:An error would help! I googled and found this saying you might just need to import it, but it's from a decade ago so who knows. Figured it out without an import, but thanks! My model now operates and runs semi-effectively, with a 75% accuracy score. Can anyone recommend the best way to keep refining it from here? Can I add my now-filtered/properly tagged emails to my original dataset and re-run the original script to generate a new weighted algo? Or is there a way to manually adjust my weights in sklearn to directly affect my accuracy? EDIT: Never mind, I trained it with a different set of data and have achieved 88%, which from a cursory Google search may actually be quite acceptable. Gin_Rummy fucked around with this message at 00:10 on Nov 15, 2021 |
# ? Nov 14, 2021 20:19 |
|
Anyone know of some good resources for building a board game (not like chess, but more like trivial pursuit) in React? The official intro to React tutorial uses tic tac toe, which I have been able to adapt somewhat, but I’ve reached a point where I might need more input to guide my next path of thinking.
|
# ? Nov 23, 2021 22:26 |
|
|
# ? May 15, 2024 02:42 |
|
What specifically are you struggling with?
|
# ? Nov 23, 2021 23:20 |