What would programming (more specifically software development) be like if everyone actually used "best practices". Ask Programming |
- What would programming (more specifically software development) be like if everyone actually used "best practices".
- PRNG that uses LFSR over the field GF(q): database of irreducible polynomials, period of random sequence
- Hey everyone. Need help with a specific web scraping question
- How much time did you spend with face-to-face collaboration in an office before the pandemic?
- Layperson here. Does "-1" in programming mean that the variable has no defined value?
- Regex expression to separate different instances of numbers?
- What technologies are necessary to learn how to build something like noise.cash or read.cash?
- Advice regarding Data Structures & Algorithms Course
- Anybody know how to recreate this website?
- Someone, please explain regex to me
- How authentication system work?
- Are you aware of any open source blog?
- Ideal way to clean some text?
- When do I put brackets around my code?
- How to get the 3D coordinates if the coordinates on the ground would be known?
- I need a simple program that spits out pre-input text in a certain order depending on my input selection
- Better way to navigate Python docs
- I have no web development experience, how hard would it be for me to build a database?
- Learning Systems Development? Looking for recommendations.
- How can an initiated property be null?
- Crud web app ?
- Raptor program
- Instructions Sets vs. APIs - Or does the SCOTUS decision on the Oracle v. Google case means that anyone can make their own x86/64 CPU ?
- How would I approach project? What would be the most efficient way to do what I am trying to do?
- PHP Code won't execute on apache webserver
Posted: 07 Apr 2021 10:07 AM PDT I hear all the time about the importance of best practices, but never have I worked on a team/assignment/project where we all used best practices. I understand we could all never uniformly agree as to what a best practice is or which one is the "best" one, but what would it be like if developers all used best practices to their best ability? How would software be different if we as an industry did more things the "right way" and the way that it "is supposed to be done"? What if there were more ridged "rules" in software development. Would it change how software is made? Would it change what type of software would be made? Would we have better security in our devices, databases, and networks? Would it change how we collaborate on projects? [link] [comments] |
Posted: 07 Apr 2021 07:18 PM PDT The task is to make a program that simulates pseudo-random sequence generator that uses LFSR, that can be described by recurrent equation over the field GF(q) Y(n+1)=F \ Y(n)*, where F is square characteristic matrix of size k of LFSR; Y(I) is the vector of I-th state of LFSR. That is, as I see, is the same as linear reccurence y(n+k) = a(k-1)\y(n+k-1)+a(k-2)*y(n+k-2)+...+a_0*y_0*, where *Y(n)=(y_n, y(n+1), ... y_(n+k-1))*. The program should contains the database of irreducible polynomials, should allow to calculate sequences of LFSR states and map them to integer and real numbers, to define the period of the matrix F and the initial state Y(0). 1) What do we need the database for? As I guess, the database should contain exactly one irreducible polynomial f(x) of degree n over the field F_p (we can take any of such polynomials) for each q=pn, where q is number of elements of field GF(q). When we generate sequence with LFSR over the field GF(q) for certain q, first we take the appropriate polynomial from database and use it to construct the addition and multiplication tables for GF(q). 2) As I see, we can find the period of sequence for some special cases of recurrent equation is ("Introduction to Finite Fields and Their Applications", Rudolf Lidl, Harald Niederreiter), but not for any given initial vector and recurrent equation. So how we can calculate it? [link] [comments] |
Hey everyone. Need help with a specific web scraping question Posted: 07 Apr 2021 10:37 PM PDT This is for a potential lead generation opportunity that would pay me some decent money. The guy is So I am researching ways to write a web scraping script using python and beautiful soup that would do the following:
I am new to this and so far I have figured out beautiful soup and am able to parse through the data. I noticed that each website could have a different way of embedding their ad urls but the good news is that almost all the ads that I saw in the inspect/elements page start with "https://googleads......" does anyone have any tips, ideas or resources that I could learn more from [link] [comments] |
How much time did you spend with face-to-face collaboration in an office before the pandemic? Posted: 07 Apr 2021 05:53 AM PDT Just thinking about the long term effect of the pandemic. Can you work fully remotely or do you need physical meetings? [link] [comments] |
Layperson here. Does "-1" in programming mean that the variable has no defined value? Posted: 07 Apr 2021 02:18 PM PDT I'm just thinking of the times one of the games I play would glitch out and a certain item would be renamed "-1" or "null". Or sometimes "-2" for some reason. Thanks for any answers. [link] [comments] |
Regex expression to separate different instances of numbers? Posted: 07 Apr 2021 08:13 PM PDT So I have text that gives me 3 things; a stock ticker symbol, the stock price, and the percentage change. I have a line that can grab just the percentage without grabbing the price, but trying to grab the price grabs the numbers from the percentage. what can I do differently to fix this? This is python btw. [link] [comments] |
What technologies are necessary to learn how to build something like noise.cash or read.cash? Posted: 07 Apr 2021 06:44 PM PDT Hello everyone, hope you're doing okay. I'm familiar with client/server typical architecture, basic backend server and fronend clients and a database. But I found noise.cash and read.cash, and was captured, I know they are built using Blockchain. My question is: what books/sites/courses/materials can guide me to resemble the client/server architecture with Blockchain to build something like these sites? Thanks in advance. [link] [comments] |
Advice regarding Data Structures & Algorithms Course Posted: 07 Apr 2021 06:40 PM PDT A course I am taking on data structures and algorithms is required for my major (I am a junior). I understand that the material is very important for programming jobs after college. I am not doing well in the class at all. The professor is new and overall really bad at explaining things. Wonderful person, but I think he is personally one of the worst professors I have taken so far. I feel like I haven't learned anything. The course is being offered again next year by a professor I have had before. She is absolutely brilliant, and I feel like I learn very much from her. Do I continue with the course and get it over with, risking a bad grade (or failure)? Or do I withdraw from this course and take it next year with the other professor I feel more confident in? If I do this, I would have to make up the lost credit, but I have a plan for that if I do. Are data structures and algorithms super important for after college? [link] [comments] |
Anybody know how to recreate this website? Posted: 07 Apr 2021 05:52 PM PDT I'm trying to recreate this website where you upload your own image and it turns it into a jigsaw. I'm so confused about what tech is behind the scenes or how the jigsaw gets split. Any ideas? https://www.jigsawexplorer.com/online-jigsaw-puzzle-player.html?puzzle_id=dicky-beach [link] [comments] |
Someone, please explain regex to me Posted: 07 Apr 2021 01:44 PM PDT okay so this is more specific than the title represents, but here is the issue I'm having. I'm supposed to grab the URLs from this text, but the regex expression I wrote grabs partial of the last URL and skips the first one altogether. What am I doing wrong? (www and full were my attempts to grab the first and last URL entirely, and they work but I assume there is an easier way) [link] [comments] |
How authentication system work? Posted: 07 Apr 2021 01:33 PM PDT Hello there the question is how a Real world register/login system work, the Idea i have is like the following: Registration: 1. user sends username and password to the backend 2. the backend encrypts and salts the password 3. after that insert the data to the database. Login: 1. user sends coordinates to the backend 2. server check for matching username 3. decrypt the password in the database and match it with the received one 4. if matching, respond with Ok signal this is the basic idea I have thanks for your time to read [link] [comments] |
Are you aware of any open source blog? Posted: 07 Apr 2021 05:05 PM PDT I don't mean open source blogging platforms but rather blogs that are community driven. A blog that has a repository that can be edited by contributors. For example like editing answers on StackOverflow. I just had the idea about creating one and wondered whether I'm the first one having this idea (probably not). Does anyone know a blog like this? [link] [comments] |
Posted: 07 Apr 2021 04:11 PM PDT I've been trying to download a clean, well-formatted version of the text of any Wikipedia article from the command line. So far I've explored using the API, which returns JSON and HTML. So far, I haven't been able to find a good way to extract the text cleanly from what it returns, as I found what it returns to be a bit messy. I then tried just dumping the page with w3m, but this also seems to have many newlines mid-sentence and so on. I guess try to write a script which cleans it up, maybe deleting only single newlines, but I'm curious what someone experienced would do. If you wanted all the useful text of a Wikipedia article, how would you retrieve it? API or straight from the browser? How would you clean the returned text efficiently? Thanks very much. [link] [comments] |
When do I put brackets around my code? Posted: 07 Apr 2021 12:24 PM PDT |
How to get the 3D coordinates if the coordinates on the ground would be known? Posted: 07 Apr 2021 05:49 AM PDT I am doing a project related with image processing and computer vision on the game FIFA 21. Through line detection i've found the corner points of the penalty area and the goalkeeper area. With making a coordinate system i've been able to transform the play into a bird's eye view (see image on the left) with the following lines: Here pt1 are the points of where I want the coordinates to be in the bird's eye view and pt2 are the points gathered from the normal playing field. With the coordinates of the ball in the minimap in the bottom of the screen, i was able to find where the ball should be if it was going on the ground as opposed to through the air as what is happening in the image. On the following image on the left you can see how the ball that was in the air is projected on the bird's eye view, and where the ball would be if it was on the ground. Ball in FIFA projected on bird's eye view and compared with ball on the ground What i want to achieve is knowing what the height of the ball is at this point as shown in the image. It is also possible to project where the ball would be on the full field if it was low to compare it with the ball through the air (as shown in balck on the right in the image). My question thus is how can i get the height (z-coordinate) of the ball within this frame knowing the matrix from the transform etc? [link] [comments] |
Posted: 07 Apr 2021 03:19 PM PDT Hi I'm very new to programming and don't know where to start or if this is possible to do myself but I'm looking for a good starting point: For work when we put in orders for clients we have to submit text from several different articles into 3 different parts of a form we have to fill out. So every day I end up opening these pdf's, and have to manually copy and paste text from 3 different sections into their place in the form. I have to do this not only those 3 times but repeat that process for each pdf file the client requires. So for example, the client requires that their order has to be put in for 5 different "qualifiers"., we can call each of those 1,2,3,4, and 5. For each of those qualifiers, I have to copy the first section and paste it into that place on the form, and so on for 3 sections we can call a, b, and c. So I'll end up copying and pasting sections into the right place 15 times for that client: first opening pdf for qualifier #1 and copying and pasting sections 1a, 1b, 1c. Then I open the pdf for qualifies #2 and underneath the pasted text from qualifier #1 in the form I will then copy and paste into their respective places from pdf #2: 2a, 2b, and 2c. This is repeated for qualifiers 3,4, and 5. I would like to pre-program the script with the text separated it into 3 sections from each pdf so that when I need to input the order for a client with 5 qualifiers for example, I just select those 5 qualifiers in the program and the text sections are spit out in order and separated into 3 sections for me to copy and paste. That way I am ever only copying and pasting 3 times per order, instead of 15 or more. It would save a lot of time. I hope that makes sense. Just looking for a jumping off point. Thank you for your time [link] [comments] |
Better way to navigate Python docs Posted: 07 Apr 2021 01:49 PM PDT I am trying to improve my ability to understand a Python module by reading its docs via pydoc or the "help" command (for example, the PRAW module). Is there any way I could launch an interactive app where I can select one of the class names under "content", view it, again select a method within, press enter, view it, press a back button and go to the enclosing class page, etc? If not, is there any other tip to maybe spit out all the public methods with their "class paths", i.e., in what sub-sub-class a method is called so I know where to call it from? Thanks very much. [link] [comments] |
I have no web development experience, how hard would it be for me to build a database? Posted: 07 Apr 2021 07:31 AM PDT I sell extended warranties for a living, I work directly for a finance manager at a car dealership, but I don't work for that car dealership. My job is great, I get paid good, it's easy, my boss is cool, etc. There is, however, one thing that bugs me. My boss has a website where people can just go online and either get a quote or just buy a plan right on our site. The problem is the "Instant Quote" tool is literally through formstack, no matter what make, model, year, mileage you choose, all of the prices will be the same. Example; an 8 Year / 100,000 Mile warranty for a Hellcat would be the same exact cost as a Chrysler Pacifica on our website. I asked /r/web_design what I could do and they suggested creating a data base would be the best solution with no hinderance on speed. However, I don't think I'm going to be able to get my boss to actually hire someone to build this so i want to know if it'd be possible to do it in a reasonable time frame by myself. I work in sales, the website prices are misleading 33% of the time, I feel like I'm baiting and switching people, it feels dirty. I want a solution. You can find our website here to see what I mean. Just plug in some info and then keep the plan but change make, model, year, mileage, etc. [link] [comments] |
Learning Systems Development? Looking for recommendations. Posted: 07 Apr 2021 09:26 AM PDT Howdy. I'm a Python, Java, Kotlin engineer who's wanting to get into more intense engineering. I've been learning C++ (god bless my soul) for the last month. I've been wanting to get more into systems development, specifically operating systems and the like. I've been watching the development of Andreas Kling's Serenity OS, and while it's interesting, a lot of it goes over my head. I'd like to get to the point where I could contribute something worthwhile. I was hoping to find a place to learn about the development of things such as emulators, operating systems, as well as comp sci / algos. Preferably using *nix. I hopped on the Pluralsight bandwagon, but can't seem to find much there (though haven't exhaustingly searched, just didn't see anything at a glance). What tutorials/essays/videos/courses/medium would you recommend? Anybody out there a systems developer? What's it like? Any advice? EDIT: Thought I found something on PluralSight but it turns out to be a course about actually using an operating system like Windows lol, not the development of it. It have videos regarding how to use settings lol. EDIT: found /r/osdev gonna look there EDIT: found this wiki [link] [comments] |
How can an initiated property be null? Posted: 07 Apr 2021 12:34 PM PDT Hi, I have a strange problem with my PHP class. I have some initialized properties but when the class is instantiated twice the initialized properties in the object are null on the second time. How is this possible? Here is an image of the debugger: https://imgur.com/a/SyXvwxz [link] [comments] |
Posted: 07 Apr 2021 12:13 PM PDT So I have created a Form which stores data in a table and one can also open a report view by using Ms.Access. (see images on links) Image1 https://ibb.co/7Yz9mxQ Imagew https://ibb.co/rtw6vHK I want to further develop this but ideally having it hosted online (server) allowing access for multiple users. The main reason is also to avoid redeploying the DB if any changes are made. Having it online would allow me to make changes to the main system, reflecting changes for all users. Im quite a noob when it comes to coding but willing to learn as long as I don't have to learn several coding languages as it would drive me crazy. Im honestly looking for something which would allow me to build this with a drag and drop functionality, requiring minimal knowledge of code. Or a coding language / method which isn't rocket science. Ive used Dreamweaver before and found it quite user friendly. What would you suggest me to use for front end as a form and for backend to store the data ? Any particular software / coding language ? [link] [comments] |
Posted: 07 Apr 2021 12:12 PM PDT I am having trouble with a raptor program. I am unsure how to end the program from a different subchart. It just loops back to main. Is there a certain command that ends the program? [link] [comments] |
Posted: 07 Apr 2021 10:53 AM PDT Basically the title, I was wondering after the recent news what was the difference between an Instruction Set such as x86 and and API such as the one used by Android. From my personal point of view, they both do about exactly the same thing : exposing a documented public interface for systems to communicate between each other. Especially in modern CPUs, the ISA is really just a near software layer over some proprietary hardware implementation at the transistor level. Now, of course from an economics perspective it might not make any sense when other open or cheaper ISAs are available and are becoming the majority, but I cannot help to wonder if there is any technico-legal reason for, say, nVidia or Samsung to not make an x86 CPU, given the SCOTUS decision. [link] [comments] |
How would I approach project? What would be the most efficient way to do what I am trying to do? Posted: 07 Apr 2021 09:46 AM PDT As a side hustle, I have been doing PPC management for several clients over the years. Now I want to go bigger and start an agency. One of my big draws is a free Google Ads audit that I provide to clients. What I am trying to do to improve my efficiency is using the Google Ads API to automatically check for issues. But I want to go one step further and have these findings sent into a Google Slide template that I can present to clients. Here is a use-case example. Let's say that one of the things I tell the Google API script to check for is 'enabled ads with a 404 landing page'. On the Google slides template, one of the pages will be for the analysis of 404 errors. On the left side will be a data field {number of ads with 404 errors}. The value found in the Google Ads API script will be printed into this field. To the right of this, is another value field called {404-rating} which will use logic like this: IF number of ads with 404 errors > 0 This is just one example, but there are other things that could be done like average keyword quality score, search brand conversion rate, etc. Could anyone point me out in the right direction? What type of coder should I be looking for on upwork? [link] [comments] |
PHP Code won't execute on apache webserver Posted: 07 Apr 2021 09:33 AM PDT Hello, on my website for a school project, I have some PHP code that won't execute properly. Whenever I try to use the login or register features, the body of the page goes blank and doesn't even display the error messages in my php code. However, I did disable php on apache just to test it and it ended up showing the php code in the body of the website. Anyone have any ideas? I can provide whatever code and the website. thanks. [link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment