How to make an array lowercase? (Node.js) Ask Programming |
- How to make an array lowercase? (Node.js)
- Trouble with insertion on Doubly Linked list [C++]
- What approach is best?
- Running a file with VTK [Javascript]
- I've installed ubuntu 18.04 on virtual box, but its only showing the terminal. How do change to GUI like Unity GUI?
- Reviews / SEO API
- [php][ajax] Stuck on something stupid
- Evil Hangman Assignment
- How important it is to be able to write your own functions vs using something someone else already made? (specially in Math heavy fields such as Optimization, Machine Learning and CFD)
- How do I limit a number of visitors to my website?
- What is the best way to store, read, and extract info from a giant json file (18mb) to use in my React.js project?
- SonarQube analogue
- Eigenvectors without the need of covariance
- Confused about functions passed in as arguments to other functions and when its executed (Javascript)
- Issue with a backgroud (C/Html)
- React/Redux - Selecting Items and fill a list in new page/view with more data from a api
- Autosyncing database for filemaker pro like system
- How do I make divs change their padding to fit the entire page?
- Help on batch file automation with file names
- Parent Process to create 3 child process to exec functions.
How to make an array lowercase? (Node.js) Posted: 03 Jun 2018 07:41 PM PDT |
Trouble with insertion on Doubly Linked list [C++] Posted: 03 Jun 2018 06:53 PM PDT I'm not sure if this is the right place to ask this, so feel free to tell me if I am in the wrong. I have been assigned to make a doubly linked list (not circular) for class and I am about there but something with my insertion member function keeps bombing. It works just fine if I use these test words: list.insert("cat"); // insert back...into empty list But when I run a 3000 word input file it bombs and i will mark where. Any pointers to where I could look for my issue would be greatly appreciated- I'm at my wits end here. [link] [comments] |
Posted: 03 Jun 2018 06:08 PM PDT I have seen 2 approaches used by developers when dealing with database results.
What do you think is the best one' [link] [comments] |
Running a file with VTK [Javascript] Posted: 03 Jun 2018 09:39 PM PDT It's been a while since I've touched javascript and I'm running into a problem with just running the file. I created two files, one with javascript sample code with vtk.js and the other with HTML code that, all it does, runs the script. I tried finding a guide to vtk but I couldn't find a good one. It's giving me a compilation error at the very first line when I ran it. My initial thought was that I needed to relocate where the javascript file is looking at to find the vtk.js framework because they're not in the same directory. But it still was giving me the 800A03EA compilation error at the first line whenever I ran it (I'm using Sublime if that matters at all). Could anyone help me out here? That would be swell! [link] [comments] |
Posted: 03 Jun 2018 01:50 PM PDT |
Posted: 03 Jun 2018 08:29 PM PDT I'm trying to aggregate all reviews for my business from yelp, google, etc. on a regular basis. Is there a single API which gathers all that information with one call? Or do I need to use each of their individual APIs? [link] [comments] |
[php][ajax] Stuck on something stupid Posted: 03 Jun 2018 11:39 AM PDT I just can't figure it out why data is not posted to another file. I'm staring at the code for hours. Please no hate, just learning to code as a hobby .
[link] [comments] |
Posted: 03 Jun 2018 06:03 PM PDT hello i know that there are various version of this assignment floating around, but we are supposed to implement a slightly less evil version of hangman.
[link] [comments] |
Posted: 03 Jun 2018 06:57 AM PDT Hello r/AskProgramming . This question is probably trivial but I wonder because I come from a non-programming background and this semester I'm taking a course on Optimization. It's been math and programming heavy and I struggled a lot in the first assignments where we had to write our own codes to minimize the objective functions even if I understood the math behind the methods (at that time it was single and multivariable nonconstrained optimization so things like Golden-section, Conjugate gradient, Gradient descent, Quasi-Newton methods and so on) due to the fact that for me in the past programming has been mainly a hobby and my ability to translate those equations into code is subpar for not saying straight up bad. Fast forward a few weeks and for the subsequent assignments the instructor allows us to use existing code and functions to solve the problems and I have been doing much better. For this particular case we're dealing with linear programming, sequential quadratic programming and penalty function methods to solve linear and nonlinear constrained optimization problems. I have used functions from MATLAB and from users who posted them online and I have been able to obtain the results I wanted after some time debugging and changing the code for my particular needs. Now my question is for someone who is interested in this field (or in other highly mathematical heavy fields such as CFD), how important it is to be able to write code from scratch vs modifying and using existing code, functions and libraries from someone else to do the job? [link] [comments] |
How do I limit a number of visitors to my website? Posted: 03 Jun 2018 09:09 AM PDT And how I make the exceeders (who exceed the counter) get automatically redirected to a "sorry" subdirectory? [link] [comments] |
Posted: 03 Jun 2018 10:25 AM PDT I am creating a local weather web app by applying data from openweathermap api. THe instructions for openweathermap api recommend to use cityId to query the endpoint and get data for a specific city. The cityId's are stated to be found in a json file that can be downloaded from this link: [weathermap api json][1] [1]: http://bulk.openweathermap.org/sample/ Each object in the json looks like this: { "id": 707860, "name": "Hurzuf", "country": "UA", "coord": { "lon": 34.283333, "lat": 44.549999 } }, { "id": 519188, "name": "Novinki", "country": "RU", "coord": { "lon": 37.666668, "lat": 55.683334 } }, I first downloaded this json file and placed it in my project but it slows its performance down quite a bit so I did some research and thought that my best answer was creating a citylist table in postgresql where each city has an id and a jsonb column that would simply be a parsed city object from the json file. My problem is I don't know how to load each object from the json to the postgres db without manually writing insert sql queries for each object. What is the most efficient way to load this json file into postgres? Do i need to export the json from it's file and write a script in my project that imports the json, parses each object and converts it into a sql query string? That doesn't sound efficient and my gut tells me there's an easier way. Is there a way to do this with psql command lines? Suggestions on how to do this with postgres or any other approach would be appreciated. [link] [comments] |
Posted: 03 Jun 2018 11:21 AM PDT |
Eigenvectors without the need of covariance Posted: 03 Jun 2018 08:05 AM PDT Trying to recreate program mentioned in https://pdfs.semanticscholar.org/fdca/5ecdf5fff9b5580a6bf18a813e3982693ea9.pdf I am currently working on a project that involves performing PCA on a covariance matrix. It first involves turning N 250x250 (MXM) images into a (250x250)x1 matrix effectively turning every pixel into its own "feature" after doing this I then work out the average feature values denoted by X. I then work out the difference between each image and X and store these differences in a variable Y. This is where it becomes a little tricky in the paper described they state that they created covariance for each image and then took the means of these covariance matrices however the size of these matrices would be (250x250)x(250x250) which causes memory errors. I mentioned this to my supervisor who has recommended me to investigate decomposing an NxN matrix and then convert the eigenvectors instead, this to me makes it seem as though I can find the eigenvectors without computing the covariance matrix of each image and averaging them. So my question is how do I work out eigenvectors without computing a covariance matrix over N samples? I hope this makes sense, thanks for reading. [link] [comments] |
Posted: 03 Jun 2018 07:34 AM PDT Hello all. I am a fairly new to programming and i am currently taking the course "JavaScript: Understand the Weird Parts" and going through the section on Functional Programming. Logically, i understand that we are simply running the passed in function against every item in arr1 and the result is being added to the newArr but somehow there is a disconnect. I just can seem to visualize when that passed in function is actually executed. So my two questions are: 1.How does it look visually from a syntax standpoint if you were to replace 'fn' with the actual function being passed in?
I know its probably an extremely noob question, but after 24 hours of trying to visualize the steps i would appreciate any help [link] [comments] |
Issue with a backgroud (C/Html) Posted: 03 Jun 2018 11:07 AM PDT Hey guys! I'm currently programming a game for a university subject and I'm having some trouble with an image. The image used as background appears above the place where it was supposed to be even though it programmed with the correct coordenates (I believe) (0,0). What should I do? (I hope you don't mind it is in Portuguese) Thanks [link] [comments] |
React/Redux - Selecting Items and fill a list in new page/view with more data from a api Posted: 03 Jun 2018 03:53 AM PDT Ok so what im trying to build is a list of products or items with some data that is fetched through the API, the user then selects which ever products they want, they click on a compare button and they get directed to a new page or a overlay modal with the selected products and the rest of the data of those products from the API. But i also want to be able to go back to the previous page and select more and de-select items while retaining the previously selected items. Im just wondering how to move forward with this idea? If there are any examples out there of people having done it before etc etc. any guides etc etc. thank you. [link] [comments] |
Autosyncing database for filemaker pro like system Posted: 03 Jun 2018 05:51 AM PDT Hello everyone. I am working for a Lab. We mainly use google sheets to keep basic data. Whenever a change is made from a computer update is shown on every other computer too. We also use Filemaker Pro on some computers. I want the Structure and form of Filemaker Pro and autosyncing and formulas of googlesheets The one thing i can't seem to figure out on google sheets is how to change a cell's value from another cell. Google App script allows me to do this but i am wondering if there is another way. I am ok with learning another language and platform (SQL) as long as they have what i need. Thank you very much. [link] [comments] |
How do I make divs change their padding to fit the entire page? Posted: 03 Jun 2018 01:34 AM PDT So not really a programming question, more of a css thing, but my goal is to have divs, that are all inline-block. They should fit the entire page, maybe with some margin in between them. I want them to dynamically change their padding/width to fit along with their "sibling" divs and occupy 100% of the page. How can I do this? [link] [comments] |
Help on batch file automation with file names Posted: 03 Jun 2018 01:05 AM PDT I am a newb to this sort of thing and I've tried looking up for almost 3 hours on the internet not stumbling on any solution. Or maybe I'm just not searching for the right keywords so I decided to ask reddit for help. I am trying to do some automation for archiving purposes and here's a part of my code.. Assuming file name is TheBand - SongTitle.mp3 How would I echo them separately from artist and name of song? Output text file > Might be simple but I am not really that of a pc language expert. [link] [comments] |
Parent Process to create 3 child process to exec functions. Posted: 02 Jun 2018 10:41 PM PDT I am new to programming and i came across this post and am interested in figuring out how to create the 2nd and 3rd child process and have them execute other program/functions and then wait for them to execute to print out the parent is finished. I understand there is an answer there but i had issues trying to edit that code to make it work. Thank you. https://cboard.cprogramming.com/c-programming/103561-forks-child-processes.html [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