We have low and high level languages.. but what do you predict the successor to current high level languages will be/do? Ask Programming |
- We have low and high level languages.. but what do you predict the successor to current high level languages will be/do?
- How does Mongoose Populate Work?
- Is there a way to use TensorFlow 1.15 in Android Studio?
- What datastructure do you recommend for my use-case?
- How to create a program for grading a Logics course (truth table, proofs, etc).
- Need help interfacing with ADC
- Password sanitization within stacktraces & errors
- What standard SQL isolation levels do the SQLite isolation levels correspond to?
- Amazon alexa for computers, kinda..
- Python documentation in IDE
- 3d mouse Interface
- Having trouble with a JavaScript excercise
- Does python have while, elwhile and else?
- Is there any way to create a loop in C without using while, do while, for, or goto?
- I'm at a loss here - why doesn't my background url image show up?
- simple doubt
- Why isnt there a professional basketball team of half robot players and half Human players? Are robots unable to beat Humans while obeying the rules? Or are Humans just not interested in watching professional basketball players get beat?
- Why does a server sign a cookie?
- Beginner in coding
- Quick Question
- How to build a low-code web-app builder?
- Script to manipulate browser page
- Integration with REST API dilemma - question
- error in javafx project
Posted: 22 Jan 2020 06:19 AM PST What we consider to be high level is certainly not the "highest" is it? What might the higher level languages of the future look like? [link] [comments] |
How does Mongoose Populate Work? Posted: 22 Jan 2020 05:22 PM PST So I'm learning how to use MongoDB with Mongoose and I've trying to understand how to reference between different Mongoose populations . I've read the documentation and several StackOverFlow/Medium articles about it, I understand how to implement it, but I don't understand how it works. For Example, let's say we have two schemas. One is UserSchema and it says and postSchema that says: How does do the postSchema and userSchema know which proper _ObjectID to select? [link] [comments] |
Is there a way to use TensorFlow 1.15 in Android Studio? Posted: 22 Jan 2020 01:31 PM PST I've trained a neural network in Google Colab using TensorFlow 1.15, exported the graph as a .pb file, and now I have Android Studio set up ready to use the network. (This is my first time using Android Studio or training a neural network so sorry if any of my questions are dumb.) But basically I get an error when trying to load the model, which a Google search suggests is due to me training the neural network in TF 1.15 and then trying to use TF 1.13 to load it in Android Studio. The solution was to simply change this in the Gradle file: However it seems I can't use TensorFlow 1.15, which is a problem as I could only get GPU support working with that version in Colab. Is there any way I can use TF 1.15? Or if anyone can offer any other solutions to my problem, I'd be happy to give more information on it (just thought it wasn't relevant to my main question.) [link] [comments] |
What datastructure do you recommend for my use-case? Posted: 22 Jan 2020 01:20 PM PST I need direction or help with my use case I want fast access to my data it should be something like a multindex map Attributes: (for simplicity only 3 in reality more) PSEUCODECODE The problem with doing this with a map is I cant do something like this where I ignore all second_moves values and only want to consider the first two. I mean I could just calculate the values for this/all cases but is there maybe a better way for this? Picture for illustration: [link] [comments] |
How to create a program for grading a Logics course (truth table, proofs, etc). Posted: 22 Jan 2020 02:48 PM PST Hi. I am a newbie beginner programmer and wanted a project to start on by helping my Philosophy professor with writing a program that checks the answers for proofs, truth tables and such. I figured this would be a step for me to better understand the full scope of developing, knowing what hurdles I'll be facing, and knowing where or how to start. [link] [comments] |
Need help interfacing with ADC Posted: 22 Jan 2020 01:06 PM PST Hello all I could really use your kind knowledge to help me with interfacing my ADC for a project as I can't seem to get a valid output. I want to write a code that interfaces the ADC to microcontroller. Appreciate if you could spot and tell me my mistakes as my coding skills are pretty trash. I also took a photo of the oscilloscope trace between MISO (Ch 1) and MOSI (Ch 2) triggered by SCK because it looks really weird. Thanks :) ADC: AD7714YNZ MCU: MAX32630FTHR Oscilloscope Trace: https://drive.google.com/open?id=1GEytO1E00ro-cPkTSfL_-YPJMki_DG1H Here's the code below: [link] [comments] |
Password sanitization within stacktraces & errors Posted: 22 Jan 2020 02:02 PM PST We're currently running into an interesting problem regarding the sanitization of error logs being printed into our server logs. We have proper global error handling set up and have custom error messages that are sent back as responses from our OSGi java servlets. We use dockerized containers as server instances that are autoscaled, so we're thinking about setting up a log aggregator and storing our exceptions within a DB in the cloud, that way we can also track metrics about our exceptions and pinpoint how we could improve our development process to reduce certain types of errors, etc. I did a bit of research about how that should be done and I found this. The OWASP Logging sheet cheat. It mentions that passwords should never be logged among a few other things. That brings us to my question: How do I go about properly sanitizing my logs without using some janky text processing or manually covering up all the potential cases? Example stacktrace: This is a pretty common error with registration systems that happens due to username collisions. Sure there's ways that this specific case can be avoided by ensuring the username isn't taken before the insertion isn't attempted and handling that case separately, but that's just a single case among many others. After looking around to find a solution there doesn't seem to be an obvious way to solve the problem and I'm wondering if everyone out there has simply implemented their own version of a log sanitizer? We could simply purge the stacktrace if some troublesome strings are present, but that's not the best solution. Any suggestions? [link] [comments] |
What standard SQL isolation levels do the SQLite isolation levels correspond to? Posted: 22 Jan 2020 01:14 PM PST |
Amazon alexa for computers, kinda.. Posted: 22 Jan 2020 12:53 PM PST Ok, so i wanted to do something like amazon alexa but for computers, basicly it would be something you install, it will then automatically luanch at startup, easy but i got a problem for example lets say i say "alexa, what time is it?" in my mic i want something to appear on screen like 8:42 for example on top of everything but i dont know how to do that. I also want to attach an image to the text that will appear anyone can help me with that? Or how that is even called? And in what language should i do my project? Thanks! [link] [comments] |
Posted: 22 Jan 2020 12:11 PM PST Hi, I'm still pretty new to programming. I learned the basics of python and now I'm learning some data oriented libraries pandas, numpy, seaborn etc. My issue is there is no way I can remember all the arguments and how to use them, so I constantly check documentation and i'm googling different websites, but that seems very inefficient. I use pycharm community edition and there is this ctrl + q feature that has help for some functions, I found that you can insert links to external sources there for reference, but it works for some and not for others, eg. pandas: https://pandas.pydata.org/pandas-docs/stable/generated/{element.qname}.html does work seaborn: https://seaborn.pydata.org/reference/{module.name}.{element.name}.html#{module.name}.{element.name} does not Is there any way to access documentation easier or should I just have all the documentations open at all times? Wrong IDE maybe? I used Rstudio for a while at university and it seemed crazy good at that. [link] [comments] |
Posted: 22 Jan 2020 11:43 AM PST I got some ideas about a diy Spacemouse thingamajig, my question is, I have a generic joystick thing with 6 individual axis, that shows up under windows, without any special drivers. Also many programs have a feature that you can use generic spacemice so that you don't need a specific add-on for your specific Spacemouse. So what would it take to remap the axis of the joystick to the axis of a generic Spacemouse ( sort of a translator joystick -> Spacemouse protocol ). Can anyone point me in the right direction? Thank you all for your help. [link] [comments] |
Having trouble with a JavaScript excercise Posted: 22 Jan 2020 10:59 AM PST I am trying to complete a CodeWars Kata that asks me to write a function that returns the sum of two smallest integer in a given array. Here's how I wrote it: ``` function sumTwoSmallestNumbers(numbers) { var smallest1 = numbers[0]; for (let i = 0; i < numbers.length; i++) { if (numbers[i] < smallest1) { smallest1 = numbers[i]; } } var smallest2 = numbers[0]; for (let j = 0; j < numbers.length; j++) { if (numbers[j] != smallest1 && numbers[j] < smallest2) { smallest2 = numbers[j]; } } return smallest1 + smallest2; } ``` This works as intended but when the smallest value is in position 0, both smallest1 and smallest2 gets assigned with that exact same small value. I can't seem to identify the problem. [link] [comments] |
Does python have while, elwhile and else? Posted: 22 Jan 2020 09:03 AM PST I know python has if, elif and else. Does python have while, elwhile and else? [link] [comments] |
Is there any way to create a loop in C without using while, do while, for, or goto? Posted: 22 Jan 2020 07:10 AM PST My assignment is to form a simple list without using any of these. No combination of Google searches is getting me anywhere. I saw that there is a for-each loop but that apparently doesn't exist in C. For reference the output looks something like this:
And so on [link] [comments] |
I'm at a loss here - why doesn't my background url image show up? Posted: 22 Jan 2020 06:39 AM PST Code Pic - https://imgur.com/a/8Bbzili What it looks like right now - https://imgur.com/a/TT5y6vE What it SHOULD look like - https://imgur.com/a/CGOpxzh I checked the path to the image, should be fine. Spelling - also checked (but maybe I'm wrong on both). Been fiddling for half an hour now. [link] [comments] |
Posted: 22 Jan 2020 06:32 AM PST I'm a freshman at college, going to finals in programming, and i found this while studying and I have no idea what this means, help me out pls. for(... : ...) {....} what does the : means? [link] [comments] |
Posted: 22 Jan 2020 02:36 PM PST I rarely watch basketball but would be interested to watch a game thats part Humans and part robots. [link] [comments] |
Why does a server sign a cookie? Posted: 22 Jan 2020 02:45 AM PST |
Posted: 22 Jan 2020 02:38 AM PST Could you guys help me with a bit of a very basic code that I tried writing and it gets stuck after the first input? Please don;t judge I'm just getting started. include<iostream>using namespace std; int main() { int sum,n,i,a,media; sum=0, i=0; cout<<"Input umber of values n=";cin>>n; while(i<n); { cout<<"Input values a=";cin>>a; sum=sum+a; i++; } media=sum/n; cout<<"Media este";media; } [link] [comments] |
Posted: 22 Jan 2020 06:16 AM PST Hi, I was wondering if someone could help provide some context to the question below: "What would cause an image to face bandwidth issue on a low traffic site?' [link] [comments] |
How to build a low-code web-app builder? Posted: 22 Jan 2020 02:26 AM PST Please no Christopher Nolan references. Could you please help me out with advice - I want to build a low-code web-app builder but can't find any hints/info on how to get started or which programming languages/frameworks to use. (so far I know how to build on react.js) [link] [comments] |
Script to manipulate browser page Posted: 22 Jan 2020 01:28 AM PST Hey! Id like to try to make some kind of script that does something to a webpage im currently browsing. Not a page that i host or can access in any other way than browsing. For example id like to be able to click buttons. Of course i would have to know the selector for the buttons or what event or function they trigger. But im not sure what to look up to learn how to manipulate a browser like this. Any tips? [link] [comments] |
Integration with REST API dilemma - question Posted: 22 Jan 2020 01:20 AM PST Hello. I need to integrate website with REST API, but i'm not sure if I want to do it correctly. Let say API provides cars for sale. Each car has properties like door number, color, engine type, fuel type. I can ask API by different makes - fords, chevrolets etc. I can also ask API to search by attributes. The thing is I want to create dropdown filters. API let me to ask about possible properties. But how to update filters basing on choices? Scenario 1: I select chevrolet. I would like to update different filters to show only available options. If we have only red Chevrolets in API - color filter should show only red now, different options should disappear. I know how I can do it: User select chevrolet -> request to PHP script that connects to API -> search chevrolets, and loop them to find colors -> return to browser. I get results by pages (30 offers per page) - what if there is 200 offers to loop by? Wouldnt that be slow? 200/30 = 7 requests to API Is it good way of thinking? Should PHP process API request or should I do it in JS? (let say website is PHP based anyway) What is proper way of doing this type of integration? [link] [comments] |
Posted: 22 Jan 2020 12:40 AM PST Hi, so I am creating a javafx project and everything worked fine until I was forced to chang it into maven project, which is something I never worked with. Please help, I am getting the following error: Exception in Application start method Exception in thread "main" java.lang.reflect.InvocationTargetException Caused by: java.lang.RuntimeException: Exception in Application start method Caused by: java.lang.NullPointerException: Location is required. ------------------------------------------------------------------------------------------------------------------------------ Part of code: package sample; u/Override public static void switchScene(String resourcePath) { try { package sample.views.login; login.fxml: <?xml version="1.0" encoding="UTF-8"?> pom.xml: <?xml version="1.0" encoding="UTF-8"?> [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