Breaks aren't working, how do you handle 40+hr/week programming? Ask Programming |
- Breaks aren't working, how do you handle 40+hr/week programming?
- Best site/resource for responsiveness?
- What's the best gpu acceleratable XY chart library for python?
- Embedded Google Calendar question.
- I am looking for some computer languages that has C interlop on it.
- How do I serve a multicast group?
- I need help writing an algorithm for a project
- Python: New school or old school?
- C++ help
- Searching for a Syntax-Hilighting Text Editor (component or standalone) that supports the substitution of certain patterns of text with an in-line GUI component
- Can a .dmg / .exe application minuplate another installed application e.g browsers
- Programming assignment using Lists, Loops and Logic
- What are the based standalone trello clones
- Best way to approach business process automation like Varsity Tutors?
- Turning an Excel reporting sheet into a standalone program
- How to call an outside controller action that depends on another controller in Rails?
- Does Google enforce high quality standards for its code base?
- How do I figure out a data structure from a binary field.
- Simple E-commerce program using C
- Is HTTPS encryption enough for mobile applications ?
- Nice Looking Programming Books
- strong typed, weakly typed and untyped lanaguages meaning=?? also static typing and dynamic typing=?. how these concepts are interrelated?
- Should I learn to code and build an app myself? Or should I invest into an experienced developer?
- how to include coverage for projects that don't have tests
Breaks aren't working, how do you handle 40+hr/week programming? Posted: 27 Oct 2020 11:31 AM PDT I can handle tough math problems, but programming is different. Reading code for hours or days to understand the problem, debugging for days or weeks to solve the problem. It's 100% on the moment I sit in front on the computer. I can take breaks, but they don't seem to help. I can only imagine that longer deadlines or working 6 or 7 days/week would be better as I'm wrecked after 3 to 6 hours of programming. Maybe I need more caffeine. Engineering was hard, but not like programming 40 hours 100% hard. [link] [comments] |
Best site/resource for responsiveness? Posted: 27 Oct 2020 07:21 PM PDT I'm trying to find a good resource for responsiveness and handling different device viewports. Specifically, on my error page (www.brian-holland.com/(entername here)) I am trying to maintain the location of the text that appears, as well as the animation that runs below it. It seems to work fine on desktops and some phones, but then gets pushed almost all the way to the top on wider screens. Is there a good resource for responsiveness or mainly handling absolute/relative elements across viewport sizes? [link] [comments] |
What's the best gpu acceleratable XY chart library for python? Posted: 27 Oct 2020 05:05 PM PDT I'm developing a custom price chart for automated daytrading. I've tried a few example scripts for pyqtgraph's gpu chart, but this seems to only provide a three dimensional chart which is not what I need. It seems there's a workaround to make it behave like a 2d chart but this is not the only problem i have with this chart. I also would like to have the y axis labels to show the price levels, which this chart library seems to lack. [link] [comments] |
Embedded Google Calendar question. Posted: 27 Oct 2020 09:49 PM PDT I have a website where which accepts a user's name and then outputs a series of dates connected to their name from a .csv file. Is there a way I can add these dates from the .csv into an embedded google calendar, so that each time a user logs in they will see a unique calendar containing their dates? [link] [comments] |
I am looking for some computer languages that has C interlop on it. Posted: 27 Oct 2020 09:39 PM PDT I am curious to know all the languages out there that has C interlop support. I know there are some such as V, Kitlang (the project for this is dead), Zig and C3 but what other languages that support C interlop exists? [link] [comments] |
How do I serve a multicast group? Posted: 27 Oct 2020 08:29 AM PDT To run a server I get a static IP (or use a dynamic DNS). I then listen() for connections on the server and connect to that IP address or URL. That's TCP... I want to multicast UDP packets. My understanding is that I need to host a multicast address which clients can then 'join'. How do I get my own multicast group? Is this even harder than getting a normal static IP address? Can I get a dynamic DNS style group? [link] [comments] |
I need help writing an algorithm for a project Posted: 27 Oct 2020 06:15 PM PDT Hello Reddit, I need help! I'm not the best at programming, so I have a question. I'm working on a personal project, where I'm going to be using sensors attached on a tight, the sensors would collect the data according to time ( approximately every 0.5 seconds ) and positions, save it into a CSV file. Then I'm looking to write an algorithm that would then compare the data in the file to a variable and print something such as " adjust your position". I don't know if I'm explaining this well, but so far I have found a way to read the file and print it out. but I need any tips. I'm using java! [link] [comments] |
Python: New school or old school? Posted: 27 Oct 2020 02:16 PM PDT Do you consider Python a "new kid on the block" or one of the older tried and true programming languages out there? Some would say it has risen in popularity in recent years and as a result has experienced better support and advancements which makes it new school. Others might say since it is older than Java by 5 years it's one of the old school programming languages. Thoughts? [link] [comments] |
Posted: 27 Oct 2020 05:29 PM PDT Hi, I don't know if this is the right sub to ask but I'm trying to do my programming homework and I seem to have hit a bit of a roadblock. We're learning c++ switch statements and everytime I run the program and put in the case it automatically goes to the default case even though I put all the break statements in. Can anyone help me figure out what's wrong? If you will help me and need to see the code I'll copy and paste it into the comments lol. [link] [comments] |
Posted: 27 Oct 2020 05:01 PM PDT I am working on a text-based scripting tool for parametric processing. I want to leverage the editing features of text-based scripting (vs, for example, graphical node-based data-flow "patching" environments). I have a satisfying prototype going with the backing in C++, Lua and SWIG for the scripting layer, using a declarative strategy for the Lua script that gets re-parsed on every "save" (file watch at the OS level). BUT there are some things that are clearly benefiting from a visual support; for instance, editing a transfer function. I would like that The above example has few parameters, but it could also deal with arbitrary lengths (1000's), so while the editing aspect is the main objective, the iconic representation also helps reducing visual information and reveal the structure of the script. So it boils down to a mouse-based editor (either standalone with API or C++ embedded component) that provides hooks for identifying certain regions of text, rendering an icon in lieu of that text, and connecting with a toolbox of GUIs contextualized by the script, while supporting the syntax-hilighting of Lua. In terms of prior work, MATLAB Live "interactive controls" are going a bit in that direction by integrating widgets within text. And I assume most WYSIWYG HTML editors work in a similar way, but they don't address the concept of the double-clickable mini-GUI. Pointers on other such "hybrid" editors (any license type) will be appreciated. [link] [comments] |
Can a .dmg / .exe application minuplate another installed application e.g browsers Posted: 27 Oct 2020 02:43 AM PDT Not familiar with c++ so just curious. Chrome extensions have to be downloaded from the store so I was wondering can regular applications manipulate with browser like a chrome extension does? Is it possible, or are software not allowed to touch the browser on Mac and Windows / not allowed to alter other applications. [link] [comments] |
Programming assignment using Lists, Loops and Logic Posted: 27 Oct 2020 02:53 PM PDT Can anyone take a look at this and help me out, I am just so confused and not even sure what this is really even asking for at this point, Your goal is given a FILE as a global string variable, break it into paragraphs, fill words onto a series of lines, then expand spaces on the line in order to have a justified paragraph, printing out each line along the way. Your MAIN function should take a length (of desired lines), and use several subroutines and functions to accomplish the goal of printing out the whole document with justification. One simple function, printline(line,spaces) is the workhorse. It takes a list of words and a list of integers representing the spaces after each word, and prints a justified line. printline(['This','is','a','test.'],[3,1,2,0]) prints out: This...is.a..test First given the whole file as a global string variable called FILE, your main function splits it into paragraphs with the string.split method. I've included "\n\n" as a separator between paragraphs. Now each paragraph is a long multiline string. To process each paragraph, first split each by whitespace (e.g. spaces, tabs, newlines) also using the string split method (look up documentation). Now you have a list of words to process for each paragraph. Main uses a for loop and calls for each paragraph printpara(words,length) Printpara(words,length) takes a long list of words representing a paragraph and the length of the justified line. While the len of words is non-zero, use line=getline(words,length) to strip out the first n words which don't overflow the length. Create a numeric list the same length as line of all 1's followed by a 0 and call it spaces. Spaces represents the number of spaces to print after each word. Now, if len(words) != 0 (final line), call addspace(line,spaces,length) to pad the spaces between words with spaces so the line is right justified. Finally, call printline(line,spaces) to print the justified line. Addspace(line,spaces,length) first calculates the total space used so far by adding the length of each word in line and each number in spaces. Then, while total < length pick a spot using randint and increment spaces[spot] and increment total. Printline(line,spaces) simply does a for loop using i in range(len(line)) and prints each word line(i) followed by the number of spaces indicated by spaces(i) Getline(words,length) assembles a line by adding words to a list, keeping track of each word's length + 1, until you either fill a line or run out of words. I'm including the code for this function: def getline(words,length): ans=[] total=0 while (length>total) and 0 != len(words): word=words.pop(0) total += len(word)+1 #add 1 for the space ans.append(word) #now we are one word too long if total > length: words.insert(0,ans.pop()) return ans A sample FILE constant to justify is included below with this assignment. Please show your justification with length 40 and length 60. FILE='''I am typing a bit of nonsense in order to test my text justification program. The goal is to split a file into paragraphs using a unique separator, and then for each paragraph, split it into lines and add spaces so the each line prints the same length. We are ignoring punctuation and carriage returns. The only caveat is that if the last line only has one word in it, it should be left justified. The goal of the program is to be a primitive simulation of one of the functions of a word processor, the most ubiquitous of software applications which used to have a vibrant ecosystem of variants, but which has collapsed into a monopoly governed by Microsoft word. Other parts of word processing require paging files into buffers, spell checking, display management and keyboard processing.''' Extra Credit: modify main to take a filename and length and read in a file (use included getty.txt) rather than using the FILE constant: [link] [comments] |
What are the based standalone trello clones Posted: 27 Oct 2020 08:47 AM PDT There's like 10million trello clones on github, written in a variety of languages and technologies. I want a standalone kanban board app for windows that I either pay for once or never. Ideally, it would be written in Native UI frameworks and not be an electron app [link] [comments] |
Best way to approach business process automation like Varsity Tutors? Posted: 27 Oct 2020 02:40 PM PDT I have a business model that is similar to varsity tutors, but in a different niche of graduate school education. My friend, who used to work for varsity tutors, explained the dashboard they have for tutors and it sounds like something I'd like to replicate. A tutor can log in, see new clients that are available for them to pick up, claim a new client, monitor the progress (number of hours completed/total hours), and see the open orders they need to work on. They can also generate invoices from this dashboard. Example of their dashboard: https://www.youtube.com/watch?v=Ml3onT-w0IA As a client, I imagine they can sign in, see their order status (number of hours completed and number of hours remaining), see who their tutor is, perhaps schedule an upcoming session, request support, etc. Does anyone know if there are white label solutions to a process like this, or if I would need something custom coded? [link] [comments] |
Turning an Excel reporting sheet into a standalone program Posted: 27 Oct 2020 10:03 AM PDT Through my work, I manage reporting. In the past, it was done manually with collecting updates manually and then converting that information into a summary/dashboard. I moved to using Excel (and various formulas) as a platform to reduce the burden of making new summaries every month. In short, the Excel file has work areas reporting separated into different tabs. This information is mainly just manually populated into cells, with a status of whether it's on track, off track or complete. I have created a dashboard to roll this information up into a single one or two page report. On the surface, it looks rather simple, but I have some complicated formulas working behind the scenes. These formula look in the information provided by the work areas, and contribute to the reporting dashboard. Obviously, this can't be the best way to run this reporting. It's relatively easy to manage once created, but adding new rows, deleting information, etc. can create a slough of updates to the formulas for myself. What I'm wondering is: How easy/difficult is it to translate an Excel spreadsheet into a programming language where you can manage the reporting as a standalone program? I assume that there's programmers that can manage this, but I have no experience with programming. In my archaic workplace, my Excel skills are looked at as a godsend, but I see the limitations in what I have created and want to move to an easier to manage system. Any insight appreciated. [link] [comments] |
How to call an outside controller action that depends on another controller in Rails? Posted: 27 Oct 2020 01:47 PM PDT I have a customers controller and every customer has their account details in customer/:id as well as the ability to add a payment method in that route. I also need to make a payment_method controller that handles stripe payments. [link] [comments] |
Does Google enforce high quality standards for its code base? Posted: 27 Oct 2020 03:51 AM PDT I mean, is the code well written, well tested and follows accepted design patterns and paradigms? In other words, can you find some "Spaghetti code" in one of their repos or they are really enforcing high quality code standards? [link] [comments] |
How do I figure out a data structure from a binary field. Posted: 27 Oct 2020 01:00 PM PDT I am currently working on a project to migrate data across from a legacy system. Some of the data seems to be stored as binary inside a database field. I'm pretty sure this maps to a fixed width structure. I'm not really sure how to begin trying to figure out how. Any pointers on how to get started would be greatly appreciated! [link] [comments] |
Simple E-commerce program using C Posted: 27 Oct 2020 08:43 AM PDT Is it possible to create a very simple buy and sell type of program using C? It's not online, I would describe it as a beginner stuff wherein I would make a simple program that stores data or information regarding products and their descriptions. Then there would also be an option for you to look at all those products that you've stored. Then you can also delete and update those data whenever you want to. [link] [comments] |
Is HTTPS encryption enough for mobile applications ? Posted: 27 Oct 2020 11:27 AM PDT Hello. I'm making an app that has pretty sensitive user data. Is sending these data through a HTTPS url to get/post safe? Or should I encrypt at client level as well before handing it to the payload? [link] [comments] |
Nice Looking Programming Books Posted: 27 Oct 2020 11:14 AM PDT Hi There, Not sure if this is the best place to ask but I was wondering if anyone had recommendations of "nice looking" programming/computing books. By this I mean books which are of good quality, have nice covers and are well illustrated. Some examples I've seen previously are
Thanks for taking the time to consider my question [link] [comments] |
Posted: 27 Oct 2020 09:43 AM PDT I want to learn these concepts in an organized way. How do I start? [link] [comments] |
Should I learn to code and build an app myself? Or should I invest into an experienced developer? Posted: 27 Oct 2020 09:40 AM PDT I have a dating app idea that I feel very strongly about. I'm intelligent enough that I could learn Swyft or Java on my own, but I've heard from one developer that there are little things that you just can't learn until you gain some experience. If I make the app myself, I could save a shit ton of money if it doesn't work out. I could even get a job as a developer as a "back up" plan assuming I'm proficient enough. On the other hand, if I saved up $50k or more (just making an estimate) for a good developer, it'll save the headache of debugging shit that I have no experience in. I don't know what to do. I've been going back and forth between both options. What do you guys think? And how much would it cost to hire a developer? The app would include using location services, real-time map location, chat, and sending and receiving pictures. [link] [comments] |
how to include coverage for projects that don't have tests Posted: 27 Oct 2020 09:06 AM PDT Say I have the following folder structure src └──projA └──projB └──testprojA Now I have unit tests for projA written in projATest and none for projB. If I generate coverage reports using the tests in src folder, is it possible to show that projB has 0% coverage. I wasn't able to achieve this in case of OpenCover or OpenCppCoverage. In case of OpenCover I have tried using the filter as ```+[*]* -[*.Tests]*``` but that included reports only for the projects that are used by projA from what I understood. Is it possible to achieve this? If so, what mistake am I doing in using my coverage tools? Sample command I used: OpenCover.Console.exe -target:nunit3-console.exe -register -targetargs:"<space separated test dlls>" -filter:"+[*]* -[*.Tests]*" -output:"outputdir OpenCppCoverage.exe --sources=src --export_type=SonarQube:output.xml -- test.exe [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