Between C++, C#, or Java, which language would be best to learn for a physics student? Ask Programming |
- Between C++, C#, or Java, which language would be best to learn for a physics student?
- HTML Website Help Needed
- Python homework help
- Why doesn't select() block Cntl-C here?
- Is it possible to make a pdf unsharable
- University Final Year Project Ideas (Mobile Game)
- Data store for durable key/value pairs
- SQL Assignment Help
- What are yoir tricks and tips for debugging code without an IDE or debugger in place?
- Is server engineering any less boring than software development?
- Are there people out there who are willing to convert code / pseudocode you've written into an app?
- Which technologies are recommended for web applications with multi-user support.
- Queue Help
- What are my options for ”programming“ music?
- NEED HELP PYTHON BEGINNER
- Security Question: accessing local filesystem with a browser
- Using a video feed on Python's tkinter
- Advice on Hiring a Programmer
- Adding React to by projects?
- HELP NEEDED C++
- What does a self-taught become job-ready? Our, for that matter, any programmer?
- Couldn't create emoji picker for dynamically generated form
- Experience with WiFi Aware
Between C++, C#, or Java, which language would be best to learn for a physics student? Posted: 27 Sep 2018 03:25 PM PDT Hi! I study physics and maths at university, and so far all my computational physics classes make us submit our assignments in Python. I like the language, it's easy to use, but I realise that it's always good to be able to do more than one thing. I'm pretty much only interested in scientific computing, things like modelling or solving complicated systems, data analysis, and other such things that are useful for physics. Is there one of the languages that has significant advantages over the other two? I know that Java is fully object-oriented, and that in C++ you have to manually manage your memory, but other than that I Have no comparison at all. Thanks for the advice! [link] [comments] |
Posted: 27 Sep 2018 10:18 PM PDT Hello! I am currently working on a project for school and I need some help. I have to make a website and it has to be creative so I went on a lot of websites looking for ideas. On one website, www.vml.com , I found a header that I really liked. If you click on the menu button it has a drop down page show up that makes it look really nice. Is there any way to do this in html/css or is this only possible through other coding languages? Thank you in advanced! [link] [comments] |
Posted: 27 Sep 2018 09:55 PM PDT I enrolled in my intro to programming class late because i was switching out of a terrible geography course. Anyways i have an assignment due tomorrow morning and i need help with it. A company has determined that its annual profit is typically 18 percent of total sales. Write and test a program that asks the user to enter the projected amount of total sales and then displays the profit that is made from that amount. Do not ask the user for the profit percentage, store it as a constant. The resulting program should look like: Enter projected annual sales: $30000.00 The projected profit on sales of $30,000.00 is $5,400.00. Run this program three times with three different sets of data. Display the results to 2 decimal places with the comma as the thousands separator. So i understand you need to do something like sales = float(input("Enter annual projected sales: ") but it says i cant ask for the profit percentage so im stuck there. I actually have no idea how to do any of this so im just gonna put a picture of the questions and if anyone could help it would be much appreciated. [link] [comments] |
Why doesn't select() block Cntl-C here? Posted: 27 Sep 2018 09:30 PM PDT I was trying to understand select() and pselect(). I'm operating in a Linux environment (Mint). I found code here: https://www.linuxprogrammingblog.com/code-examples/using-pselect-to-avoid-a-signal-race I was under the impression that select() (setup with NULL in the timeout) will block until it can read at a file descriptor, but won't return if a signal comes in. But I tried just using select() instead of pselect(), and it makes no difference. NB: in these cases no peer is connecting on a socket, I'm just trying to see blocking off signals. My one change to the code: https://i.imgur.com/AHsadZG.png The result: https://i.imgur.com/Aj8A2q0.png?1 So select() is blocking stdin, but doesn't block Cntl-C...even though Cntl-C is blocked in sigprocmask... Why is this? [link] [comments] |
Is it possible to make a pdf unsharable Posted: 27 Sep 2018 12:57 PM PDT Hey is it possible to make a pdf file un-shareable. Is there ways that I can lock it with a password that changes daily. [link] [comments] |
University Final Year Project Ideas (Mobile Game) Posted: 27 Sep 2018 09:08 AM PDT Hi everyone, I am about to start my final year project at university in which I get to decide what I want to make and write my dissertation on. I still have about a week to decide on what I want to make but I'm currently stuck for ideas since I need a project that will be challenging enough to last for the majority of the academic year, but nothing too large that will take longer than that. There aren't too many restrictions on the project, the only rule is I have to develop a mobile game for either Android or iOS. I've emailed my supervisor and they suggested implementing features such as AI for single player games or some sort of multiplayer functionality. In summary, I'm just in need of some inspiration and I would appreciate any opinions/suggestions on what projects I could do. Many thanks! [link] [comments] |
Data store for durable key/value pairs Posted: 27 Sep 2018 06:46 PM PDT I want to store key/value pairs indexed by an ID via an online data store. For example, I have a Thing that has an ID and a series of settings. As JSON, it might look like this: {"foo":{"bar":[{"baz":true, "buzz":2}]}, "blah":[9, 5]} I could flatten the structure, like these examples: "<Thing ID> foo.bar[1].baz true", "<Thing ID> foo.bar[1].buzz 2", "<Thing ID> blah[0] 9". I'm worried that in a relational database, I will not be able to efficiently search keys that have various array indices like that. I could also store the multidimensional data without the explicit key, such as "<Thing ID> foo.array_bar.baz true", "<Thing ID> foo.array_bar.buzz 2", "<Thing ID> array_blah 9" which would be more efficient because I would be able to use a relation to effectively store/search the key, but then I would need some way of guaranteeing the order in which the keys are stored to ensure proper grouping. This would be pretty easy if I were reading these key/value pairs from a file (where I could just read things line by line and thus have some grouping), but it would be nice to have some things that I'm used to in a relational database, such as transactions and being able to safely edit a single key/value at a time. Is there some existing technology/techniques for having to store data like this? Thank you for any info! [link] [comments] |
Posted: 27 Sep 2018 04:41 PM PDT For my SQL assignment I have to find as many ways as possible, to a maximum of 10, to return every 5th element from a table. Each way must have a unique execution plan, and we are allowed to use either SQL Server or Oracle. Here is the database, and the target table is the qsale table. So far I've found 2 methods: SELECT * FROM QSALE WHERE saleno % 5 = 0; And SELECT * FROM(SELECT ROW_NUMBER() OVER(ORDER BY saleno) as rownum, saleno,saleqty, itemname, deptname FROM qsale) AS saletab WHERE rownum % 5 = 0 Any help would be much appreciated. [link] [comments] |
What are yoir tricks and tips for debugging code without an IDE or debugger in place? Posted: 27 Sep 2018 09:59 AM PDT |
Is server engineering any less boring than software development? Posted: 27 Sep 2018 03:46 PM PDT hello. I am junior software engineer, working as one-man team on ios and android app development. I find the job boring, I find the job hard and the best part of it is leaving the office. I think that I have found out that staring into compiler for hours and constantly sighing is not meant for me after-all. Pure development jobs and being concentrated on the same shit for days or months, are some crazy business. I wonder, would I have it easier with some technical administration stuff, like server administration or site reliability engineering?While looking at starts in compilers sucks, could be (un)installing apps and antivirus programs any better? I have found out that doing shitloads of thing with short time-to-live span is pretty doable, but getting locked into compiler is making me suicidal. [link] [comments] |
Are there people out there who are willing to convert code / pseudocode you've written into an app? Posted: 27 Sep 2018 03:02 AM PDT I've tried my hand at several programming languages, but the only one that ever really stuck was the one I learned in college (high school,) which was VB.NET. I've wanted to try out several ideas for apps, but I've never managed to understand app coding. If I created an app or program on the desktop, or even mapped everything out in pseudocode, are there people out there who can convert it into an app? Do they charge you any less if you're willing to provide them a basically complete program structure and ask them to sort out graphics? I'd appreciate any other sub recommendations for this topic. Cheers. [link] [comments] |
Which technologies are recommended for web applications with multi-user support. Posted: 27 Sep 2018 08:26 AM PDT Hi, Today at work I was asked to develop a web application that does the following:
Now my question for you guys is, which technologies are the best to use for an application like this? (Language, Frameworks, Database Engine,...) Unfortunately my knowledge of web development is limited. I did develop a small web application 6 years ago, but I'm mainly someone who writes enterprise software in things like ABAP and C#. I do know HTML and JS, but it's a little rusty. I would appreciate your feedback. Thanks. [link] [comments] |
Posted: 27 Sep 2018 12:10 PM PDT I'm working on creating a queue, but I can't figure out this error I'm getting. "error: C2676: binary '[': 'const myQueue<int>' does not define this operator or a conversion to a type acceptable to the predefined operator" [link] [comments] |
What are my options for ”programming“ music? Posted: 27 Sep 2018 11:53 AM PDT Awhile back, I used Music Macro Language (MML) with BASIC. The syntax looked something like this: Dissecting this:
Overall, it pretty much works like SVG path commands. Is there anything similar to this in modern programming? EDIT: To rephrase, I want to code music in a text format, and "compile" it to something like midi with a command. [link] [comments] |
Posted: 27 Sep 2018 11:34 AM PDT So i have to program an approximation of an integral with the sum of n rectangles, my problem is with my if conditions, when i enter 0 i want the program to end ( ALL GOOD IT WORKS) when i enter a number n<0 i want it to just tell me that the number is too low and to enter an other number ( ALL GOOD ) BUT when i enter a number over 10000 i want it to tell me that its too high and to enter an other number, the problem here is that it still output an approximation value and then it says its too high and to enter an other number, BUT i only want it to tell me its too high not the approximation and the error message , ONLY ERROR MESSAGE. So i don't understand could someone help please :) thank you ! ------------------------------------------------------------------------- ar = 0 ar = 0 n = int(input('enter number of rectangle')) if n > 10000: if n == 0: [link] [comments] |
Security Question: accessing local filesystem with a browser Posted: 27 Sep 2018 03:32 AM PDT For quite some time I was using Electron for writing tiny applications for myself. I was unhappy for many reasons:
I realized that FF is offering everything I need, I have it open all the time open anyway so no loading time, everything perfect, just no option to access the filesystem directly, obviously. So what I was writing is a tiny Python (asyncio + tornado) program which offers the possibility to load/save files through a WebSocket. My security measures at the moment are:
At the moment I'm really happy with this, as I really can do everything I like (draw, sound, ...) and use the exact same webpage locally and later on a webserver (the filesystem is than replaced with a virtual filesystem only living in the browser, which later can be uploaded/download as a ZIP), without using any preprocessing tools. Both the JS libary and the Python script are less than 100 lines and easy to understand so far. Especially regarding point 1, is there a well known trick to circumvent this (iframe, ...)? I'm thinking about letting my application read/write in different directories, but this should only be possible if the website was started manually from a file:// URL. [link] [comments] |
Using a video feed on Python's tkinter Posted: 27 Sep 2018 10:56 AM PDT I want to create a label in a tkinter window that displays a video feed. How would I do that. For images, I would use the code below: logo = tki.PhotoImage(file="handimage.png") w1=tki.Label(root, image=logo).pack(side="right") Would appreciate any pointers [link] [comments] |
Posted: 27 Sep 2018 10:19 AM PDT I am helping in a start up company that needs to hire a programmer for one project that involves automating a email to text service. Currently they are flipping the messages from Corrlinks email service to Sideline web messaging manually. There are other companies who offer similar services that have the service automated so I know there is a way to do it. I am starting to learn the basics of programming but have very limited knowledge. I have no idea what language the program needs to be in or where to go to hire someone to write it. At this stage we are looking for quotes so we can evaluate when we can hire someone to write the automation. I have heard both good things and bad things about various websites where you can hire coders and I want some more experienced and tailored opinions to my situation on what the best course of action might be. [link] [comments] |
Posted: 27 Sep 2018 09:37 AM PDT I just got finished learning React, but I don't know how to actually use it in my projects in VSC other than by doing the thing where you install Node, open up the terminal, and do the "create-react-app" thing. It seems tedious to do it all the time. Is there any way I could find an easy way to just get a script and import it to my current project the same way I would with, say, jQuery via GoogleAPIs? Thanks! [link] [comments] |
Posted: 27 Sep 2018 09:19 AM PDT Hi, guys. I need to end up this program by fixing some bugs. Umm. So, there's Turing machine. It executes data taken from the files 1.txt, 2.txt, 3.txt and 4.txt. Firstly, machine stays in a loop too long while executing 1.txt. It gives right answer, but it prints it too many times. Secondly, someone told me that saving the tape in a string is quite illogical, so it would be great to change it into array. And thirdly, just simplify whole code that it would be more understandable. Here's my code: https://pastebin.com/TQcG6JM6 This is file 1.txt: 1 //position 00V0000000001111*A000000000001111*B000000000000000000000000ZR000000000H000000 //tape //instructions 0 0 0 R 0 0 1 1 R 0 0 V V R 0 0 * * L 1 1 0 * R 2 1 1 * R 3 1 V V R 20 1 V V R 20 2 * 0 R 4 3 * 1 R 5 4 A A R 4 4 0 0 R 4 4 1 1 R 4 5 A A R 5 5 0 0 R 5 5 1 1 R 5 4 * * L 6 5 * * L 7 6 0 * R 8 6 1 * R 9 7 0 * R 10 7 1 * R 11 6 A A R 20 7 A A R 20 8 * 0 R 12 9 * 1 R 13 10 * 0 R 14 11 * 1 R 15 12 B B R 12 12 0 0 R 12 12 1 1 R 12 13 B B R 13 13 0 0 R 13 13 1 1 R 13 14 B B R 14 14 0 0 R 14 14 1 1 R 14 15 B B R 15 15 0 0 R 15 15 1 1 R 15 12 Z 0 L 16 13 Z 1 L 16 14 Z 1 L 16 15 Z 0 L 17 12 C 1 L 16 13 C 0 L 17 14 C 0 L 17 15 C 1 L 17 16 0 Z L 18 17 0 C L 18 18 A A L 18 18 B B L 18 18 * * L 18 18 0 0 L 18 18 1 1 L 18 18 V V R 0 20 A A R 20 20 B B R 20 20 * * R 20 20 0 0 R 20 20 1 1 R 20 20 Z 0 R 21 20 C 1 R 21 21 0 0 R X 21 1 1 R X In the end it should give 3 or 4 rows of similar tape fragments:00V*0000000001111A00*0000000001111B0000000000000000000011110R000000000H000000And my code gives about 20 or 30 rows (1st bug) 2.txt 1 0000*0000 0 0 0 R 0 0 1 1 R 0 0 * * L 1 1 0 1 R 0 1 1 0 L 1 3.txt 7 00000000000000000000000*0000 0 0 0 R 0 0 1 1 R 0 0 2 2 R 0 0 3 3 R 0 0 4 4 R 0 0 5 5 R 0 0 6 6 R 0 0 7 7 R 0 0 8 8 R 0 0 9 9 R 0 0 * * L 1 1 0 1 R 0 1 1 2 R 0 1 2 3 R 0 1 3 4 R 0 1 4 5 R 0 1 5 6 R 0 1 6 7 R 0 1 7 8 R 0 1 8 9 R 0 1 9 0 L 1 4.txt 7 000100000000000000001111111000000000000000010000 0 0 0 R 0 0 1 0 R 11 11 1 1 R 11 11 0 1 R 2 2 0 0 L 3 2 1 1 L 4 3 1 1 L 3 3 0 0 R 0 4 1 0 L 5 4 0 0 L 4 5 1 1 L 5 5 0 1 L 12 12 0 0 R 6 12 1 1 R 0 6 1 1 R 6 6 0 0 L 4 [link] [comments] |
What does a self-taught become job-ready? Our, for that matter, any programmer? Posted: 26 Sep 2018 11:40 PM PDT Is there, like, a list of skills/frameworks/applications lying around somewhere? Perhaps a test or quiz of some sort? I'm a college student looking to pull my own weight by freelancing, but I don't know/think that I'm ready to ply my trade yet, so, since y'all must surely have experienced this sort of thing...... I'd appreciate any help, thanks! Edit: Title "When" [link] [comments] |
Couldn't create emoji picker for dynamically generated form Posted: 27 Sep 2018 03:23 AM PDT Can somebody help me in solving this: https://www.reddit.com/r/CodingHelp/comments/9j1wzx/javascript_cannot_create_emoji_picker_for/ Thanks so much! [link] [comments] |
Posted: 27 Sep 2018 06:14 AM PDT I'm unsure if this is the right place to ask this question... but here goes nothing. I'm currently looking into WiFi Aware and have a few questions. Outside of the offical WiFi Alliance page and the developer page of Android are not many resurces to be found about this topic. Has anybody made some experience with this topic? For example found an libary for any programming language outside of Android? Or a list with devices / chips that support this technology? Any advice or resource would mean a lot 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