How to access a key in a list of tuples containing a dictionary in Python Ask Programming |
- How to access a key in a list of tuples containing a dictionary in Python
- What is the best programming language for calculating different bases?
- Is it possible to use AWS Key Management Service to generate a digital signature of a payload (with the key never leaving KMS)?
- Sending email from my provider back to my provider with data from user input secure?
- Linking libraries with g++
- Terrible at math, interested in Machine Learning
- Is there demand for DSLs for economics?
- Trying to figure out what this script does
- [Java] [Help] Building a scheduler
- audio for neural networks
- Need help with java script for Adobe Illustrator
- How best to convert text into a condition?
- Reading from db vs. file vs. hard coded
- What to use for In-Game overlay
- Are people learning ML/DS/DL really more intelligent than normal software developers?
- Can an email be held in space and time
- Angular and PHP
- I want to start freelancing to get work experience but what if I take on a project and they don't like my code or I get in over my head?
How to access a key in a list of tuples containing a dictionary in Python Posted: 29 Aug 2018 03:52 PM PDT Hello! I'm trying to access the key & value in a list of tuples that contain a dictionary. So for example:
Where the list, tuple1: tuple2: And each tuple contains a dictionary. I want to access for example, the string I know that printing or returning And printing/returning I need the key to compare with another list of tuples later, and the value for computation. Thank you for your time. [link] [comments] |
What is the best programming language for calculating different bases? Posted: 29 Aug 2018 12:28 PM PDT So, I'm kind of experimenting with a project on my own and found out I need a way to convert to octal, terinary, hexadecimal, ect. and have them as primitives Not only that I need to be able to calculate efficiently with them and not have functions all over the place (poor encapsulation). Which is why I'm trying to get them as primitives. I'm using Java right now. I'm not the greatest programmer but I'm just trying to figure this out along the journey [link] [comments] |
Posted: 29 Aug 2018 06:16 PM PDT It seems as though there is an Encrypt function in AWS Key Management Service but I am not sure if it can do exactly what I need. Payloads to sign will be SHA256 hashed so below the 4KB limit. Documentation is vague, and I can't seem to find examples when googling. [link] [comments] |
Sending email from my provider back to my provider with data from user input secure? Posted: 29 Aug 2018 06:44 AM PDT My boss wants me to create the following functionality: A user fills out a form on our website with some data. He can also upload some files, which have personal information. After the form is submitted an email is sent to my boss with the information from the form and all files attached. I am using Python & Flask for the backend and host it on heroku. The mail server is from our webhost (germany). So we basically send an email from us back to us. The website with the form has SSL protection Can this be somehow unsecure? Its an unusual approach and I have never heard of it. Is this a legit way to retrieve data? I would usually use a DB and upload the files to a storage like S3. [link] [comments] |
Posted: 29 Aug 2018 04:27 PM PDT See bottom for the real problem
Copied the code above from an opengl tutorial. When i try to compile it using:
I get these:
Both "GLFW" and "glm" folders are available in /usr/include/ Using Ubuntu 18.04 [link] [comments] |
Terrible at math, interested in Machine Learning Posted: 29 Aug 2018 04:08 PM PDT I am not good at math, I struggled through every course I had through high school, scraping by with C's. I needed a tutor for every college math class I had to take (only made had to make it through pre-calc), which was strenuous but it got me grades ranging from B+ to A-. Needless to say, it gave me a lot of hope but it was still a struggle. When I was done with math classes, it was a huge celebration in my head. Now, when I start reading something with algebraic equations I will just skip it because I mentally think that I'm incapable of understanding or it would be too complicated. All that said, I'm now fascinated with the idea (keyword) of neural networks after doing smaller projects that simply used Markov chains and wanting more. Seeing the products of — and results of — machine learning is really interesting to me. I took one look into an introduction to machine learning book with python and saw math equations and noped the heck right out (mostly because I didn't have time to think too much about it as I was on a work break). My question(s) is/are...do you have to be good at math to work with machine learning? If so, to what degree? If I struggle, can I make do if I go past the basics? How much machine learning-related programming requires strong math skills? Is it stuff that I would eventually just get used to because of the frequency in which it comes up? I can re-learn stuff from my courses, but if it's gonna go past the basics I should probably just accept the fact that it's either a) not for me or b) gonna be a huge struggle the whole way through [link] [comments] |
Is there demand for DSLs for economics? Posted: 29 Aug 2018 10:46 AM PDT I was wondering whether economists use or need Domain Specific Languages to do their computations (in econometrics, for example). Are there any popular languages like this? I know Python is widely used for all sorts of data science, but are there any well-known DSLs created specifically for economists? The only thing I could find online were a bunch of scientific papers that describe such languages, but they look more like proof-of-concepts. The main question is, is there demand for economy(econometrics? macroeconomics?)-specific programming languages? [link] [comments] |
Trying to figure out what this script does Posted: 29 Aug 2018 01:44 PM PDT https://hastebin.com/titedapiyu.php Basically someone tried to do something to my computer and I traced it back to that script which he tried to hide in a .jpg file. [link] [comments] |
[Java] [Help] Building a scheduler Posted: 29 Aug 2018 05:42 AM PDT Hello!, So I have been programming for a few months now, and I'm trying to take on a new task. I'm just not sure what the most effecient way to go about it is, since I've never dealt with anything involving a calendar in Java. What I need it to do; I was going to use Java to create a scheduler that will track up to 30 different classes and their instructors. It will also need to track instructor events for when they can't make class and automatically substitute in available instructors. It will need to display a full calender monthly per each instructor, and then a weekly calender for the entire course. I think my biggest hickup is triyng to find a way to have all of my classes function with a calender. For my ArrayList's, is there a way to produce Int's that output as a date? You guys tell me. I also am not sure what I could use in Swing to produce both the monthly and weekly calendars as I've never messed with dates before. Thank you in advance! [link] [comments] |
Posted: 29 Aug 2018 03:59 AM PDT Hello everyone! I am trying to code a neural network from scratch as an exercise, and I want it to take audio files as input. How can I turn an audio file into a valid set of values to put in my first layer? What would it look like? I'm very new to game so any ideas would be appreciated:) I'm writing in python btw [link] [comments] |
Need help with java script for Adobe Illustrator Posted: 29 Aug 2018 08:35 AM PDT Hi, I am trying to run a javascript that converts .ai documents into .html. The script works fine, but only comes with a couple of fonts preloaded into it. I am trying to add the fonts I need into the script, and it is not working. I am absolutely brainless when it comes to code, so I could use some help. Here is what the code I am looking at is. I am trying to add those three fonts at the bottom, and they are not working. The ones at the top are properly working fonts. The full script is here. Any help is appreciated, I am sure I am making some incredibly beginner easy mistake. Thanks [link] [comments] |
How best to convert text into a condition? Posted: 29 Aug 2018 01:02 AM PDT I'm making a C# text adventure game. I need to inlude if statements in the text that print different things. Ideally the text document would contain something like And then in my code I could: There are two ways I can picture this:
Both methods seem kinda hacky and just bad practice. Is there a better way? [link] [comments] |
Reading from db vs. file vs. hard coded Posted: 29 Aug 2018 06:28 AM PDT Context is replacing characters in a string, in particular using two matching index arrays eg. to_replace and replace_with and the PHP language with str_replace. Unwanted char count is just over 2K, wanted characters around/at least 30 but not entirely sure all the wanted characters hence comparison against 2K. Anyway the concern and while this is a file approach, but still technically code eg. writing a variable/array separately in a file to include. That vs. reading from a DB or periodically updating a hard coded array in the same replace function. The concern with the file is read lock eg. while it's being written to, to update the list of characters. edit look at this minmap screenshot from VS code, vs. Tame Impala's "Let It happen" music video(two monitors) haha perfectly timed. Interestingly it was backwards, eg. I had to compare the character entity names to match and replace with the symbols... had it backwards for using simplexml_load_string in PHP First world right? uses YouTube as a music streaming service, all that wasted bandwidth(unless youtube is smart enough to not play/send the video if the tab is not active? Not sure if they do that. Ugh... it's not going well... on one hand I got characters such as  (Acirc) to go through/not break XML but then now <b> and </b> breaks it ahhhh [link] [comments] |
What to use for In-Game overlay Posted: 29 Aug 2018 04:45 AM PDT Im planning to do an open-source ingame overlay (like steam) and i was wondering how can i do it. Which programming language to use, what resources i will need, if i want to add internet browser how to do it... the list goes on. [link] [comments] |
Are people learning ML/DS/DL really more intelligent than normal software developers? Posted: 28 Aug 2018 10:33 PM PDT It looks to me that every ML/DS/DL... students and people work in this industry always feel superior about their works. They disqualify every other software developers as being code monkey. A lot of them can't even write a single line of code but still think they are smart because their major involves hardcore math. So is it true that ML/DS/DL is really that hard that only very intelligent people can understand ? [link] [comments] |
Can an email be held in space and time Posted: 29 Aug 2018 12:27 AM PDT Hi I booked a company to meet and greet me and my car at the airport (uk) received no email or text confirmation, however I did send myself an email to my confirmation link saying I'd paid. Stupidly set of at 3am with two kids in tow and didn't check to find my confirmation email until I was on my way. Realised I had no messages from the company I booked with apart from the one I set to myself, can't contact anyone as it's the small hours, can't find any representatives for the company I book with when I arrived at the terminal and end up making a emergency booking at the airport and catch my plane by the skin of my teeth. Got in touch with the company when I landed, they were adamant the had sent an email confirmation, last Wednesday, however the email only appeared in my inbox today, dated last Wednesday with all the email either side of it open, can it have been treading water in the air until today? How can I prove it if so? [link] [comments] |
Posted: 29 Aug 2018 12:20 AM PDT Hi! So I have this angular app which I wanna send data to a mysql database, and I found information on w3 schools that I can do that with PHP. What do I actually need to install to get the PHP-script to work on my machine? (MacBook Pro). If anyone has other ideas to get the data to MySQL I'll be grateful af. [link] [comments] |
Posted: 28 Aug 2018 10:57 PM PDT |
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