I'm learning MVC and could use some help understanding ViewModels Ask Programming |
- I'm learning MVC and could use some help understanding ViewModels
- [Python] Google Sheets API (expires?) becomes unauthenticated while script runs
- Help with Javascript and server side web request
- Need quick help with a Java thing.
- How can I scrape instagram using user id instead of username?
- C# Keeping the console open through multiple uses
- Best way to learn about frameworks and which should I use for one thing or another?
- react help
- Why not 'command set'?
- How much of a future do you think Java web frameworks have?
- Good binary hosting site?
- Which language should I use for this project?
- How can i get the source of .mp4 files to play the videos in a html player?
- C++ strcmp().
- Help replacing file locations in m3u files
- MIT license [YEAR-OWNER]
- What is the PCH.H header file for?
- 'undefined reference' error when upgrading PHP on my RPI
- webpage image and blurb population when sharing via imessage
- Looking for some advice on test prep.
- Project Advice : (3D visualization)
- If I had a million simultaneous AI-game players on google cloud, how should I optimize for the data flow: from each of million players to game logic to multiple TPUs (petaflops/sec) to game logic to each of million players, IN THE LOWEST LAG?
- Need help converting a website to native app
- Spam email address
I'm learning MVC and could use some help understanding ViewModels Posted: 29 Sep 2018 02:09 PM PDT I recently began combing through and documenting a Software Dev solution that utilizes MVC, but noticed that almost every single Model is actually a ViewModel. Google results were somewhat helpful but I'm still not too clear on the distinction between a View, a Model, and a ViewModel. Layman's Terms explanation for real world decision making/use case would be highly appreciated! Thanks, and any other MVC tips are welcome :D [link] [comments] |
[Python] Google Sheets API (expires?) becomes unauthenticated while script runs Posted: 29 Sep 2018 06:10 PM PDT Hi, I made a script that runs over the course of a few hours and relies on the Google Sheets API to give you the results. I noticed that after 40 minutes or so I run into an error where my Google Sheets API becomes unauthenticated. Is there anyway for me to make sure that the API doesn't expire while its running or is there a way to reauthenticate? Others didn't seem to have this problem. [link] [comments] |
Help with Javascript and server side web request Posted: 29 Sep 2018 02:19 PM PDT I have a website with this code in an html page <div class = "col-4"><button type="button" class="btn btn-success" id = "submitWorkForm" onclick='work()'>Submit</button> which runs a javascript function work() also stored locally in a JS file. Instead, I would like when the button is pressed, to grab the javascript file from a server via a web request as to prevent the code from being accessible on the front-end, but i can't find any good documentation on how to achieve this. Can anyone direct me in the right way? [link] [comments] |
Need quick help with a Java thing. Posted: 29 Sep 2018 05:49 PM PDT Hello, reddit. I don't post very often, I usually just lurk. Recently I've started to learn some Java. I've been using many amazing websites, but I've never posted, only lurked and so on. This is because I hate bothering others to help me with my issues. Since whenever I learn a new part of Java (if statements, input, output, integers and so on) I set a goal for myself to make 3 different programs with the thing I'm learning about. This time around it's (((while))). My problem is that I don't know how to incorporate letters into input. I know how numbers work, but when it comes to putting words in, I don't really know how it works. If someone could tell me where I'm making a mistake, and how letter input works, that'd be really great. And the due Karma will be yours haha https://pastebin.com/Y1dMRP20 my java code. keep in mind, i've only been learning for a few days now [link] [comments] |
How can I scrape instagram using user id instead of username? Posted: 29 Sep 2018 05:16 PM PDT like the title says I need to scrape Instagram by user id number instead of username. How can I do it? I can use this url to get posts but it's only showing post information. I need Followers, Following, User type and other user meta information.. [link] [comments] |
C# Keeping the console open through multiple uses Posted: 29 Sep 2018 12:55 PM PDT Hello, I've created a program that solves mazes using depth first searching and breadth first searching. But I can't seem to keep the console window open while running them back-to-back. When I have them independent like or it will successfully run the searches and show the results in the console, as desired. *note: when I instantiate the classes it automatically performs the searches and prints as it progresses However, when I have them together like or it will either pause after the first search then close when I hit a button (first example) or will just close after running (second example). I'm pretty new to C# so I imagine it's something simple. Maybe I have to put some type of while loop to keep the console app active?? Any help would be appreciated. I want both results in the console, one after the other, and for the console to remain open until I hit a button to exit. Thanks. [link] [comments] |
Best way to learn about frameworks and which should I use for one thing or another? Posted: 29 Sep 2018 07:41 AM PDT |
Posted: 29 Sep 2018 04:03 PM PDT man, software stuff can be really intimidating. i feel like i can only just barely understand the surface of any language/framework/library, and nearly nothing else (how it was made, the environment you use it in, etc...). i was just looking through https://reactjs.org/docs/create-a-new-react-app.html#create-react-app to learn React.js, and i was hoping anyone could give any clarification on the roles of these terms: node/npm/npx/package manager bundler (webpack) compiler (babel) toolchain are these things needed for every language/framework/library, and are normally just in an IDE or something? idk, i feel totally lost on some fundamental questions. i'm sorry if this isn't the right place to be asking. thanks in advance [link] [comments] |
Posted: 29 Sep 2018 11:56 AM PDT This is a totally irrelevant question to any practical matter whatsoever, so if you are in a hurry, please continue to the next post. There won't be anything interesting here for you. But... if you for some reason have time to kill, please help me on this one: why is it called an "instruction set" rather than a "command set"? Linguistically, an "instruction" differs from a "command" very, very slightly -- an "instruction" carries a slight bit more of a connotation that one is telling the other how to do something, whereas a command does not carry such a hint of a connotation. (cf. https://en.wikipedia.org/wiki/Sentence_(linguistics)#By_purpose). This is why there are instructions for how to do something (set up your computer, use the laundry machine), but not commands for how to do them (that would be strange). I'm aware that the word "instruction" also has somewhat of a connotation of being a command (ex. The master instructed his servants to leave the room.), but this doesn't dampen my case -- "instruction" still carries a connotation, whereas "command" does not. For a CPU, we are not telling it how to do something; rather, it is actually extremely important that we need it to do something without us knowing how it is doing it. So.. help me out here. Why? Because that's historically what it always was called? If so, do you agree with the historical name? Do you agree with my view that "instruction" and "command" carry those different connotations? [link] [comments] |
How much of a future do you think Java web frameworks have? Posted: 29 Sep 2018 09:44 AM PDT I am talking about frameworks such as spring and hibernate. I am currently learning them and I love them. I have previous tried django but I'm not a huge fan of weakly typed and checked languages and already having a good grasp on Java , I thought I'd give it a try. I am done with my spring and hibernate course. [link] [comments] |
Posted: 29 Sep 2018 07:47 AM PDT I've written a gtk+ app, and on windows, the total release takes about 22mb, or 60 with a bundled theme, font, and icon theme. Gitlab only allows me to attach 10mb files max. Is there any free online service typically used to store releases? [link] [comments] |
Which language should I use for this project? Posted: 29 Sep 2018 01:41 PM PDT Hello, guys. So, I'm about to start writing a POS (Point of sale system/software). I'd like you to suggest me what way should I take. I wanna go a little ambitious and implement a mobile clitent to check all your data and do transactions as well as make it work with an Apache/PHP server with MySQL for storing the company's data. So I need a language witch which I could create a single core, and then just to addapt its respective port to Andoid as well as I need it to be able to work with PHP APIs, with tons of libraries and wide online comunity and support. Don't wanna use Java couse want to keep it simple and light. Also want to go for a metirial desing like UI, sort of like the Aronium one. Thx, dudes. [link] [comments] |
How can i get the source of .mp4 files to play the videos in a html player? Posted: 29 Sep 2018 09:13 AM PDT For example, i was testing with the html video example from w3schools and i changed the source of the video to this public video: r/http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4 and it worked, the player played that video. But how can i get a link from an .mp4 file hosted in google drive or a filesharing service like mediafire that works in html player? [link] [comments] |
Posted: 29 Sep 2018 12:39 PM PDT If I have a for loop that loops three times and add a name to an array each time. How do I use strcmp to make sure that the user input is unique for all three names? Thank you in advance [link] [comments] |
Help replacing file locations in m3u files Posted: 29 Sep 2018 12:21 PM PDT Hey /r/AskProgramming, I just had a quick question I'm hoping to get some insight on. Basically I run my music out of an external hard drive (F:) and that yet again has caused me issues w/ my latest iTunes migration. I now have a portable MusicMonkey installation located on the same drive with all my music, and the last step I'm taking is importing my playlists, which I exported from the old desktop using iTunes export to m3u. MediaMonkey found the files but didn't put any songs in the playlists, and when I opened the m3u files in a text editor, I realized that it was bc the file locations were still that of the desktop. I'm a total beginner at messing with code so I was hoping to get some help on the best way to just "Find and replace" the parts of the file location strings like so: From """ EXTM3UEXTINF:247,Snow Drop - Fanny Fink/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/Fanny Fink/Snow Drop/02 Snow Drop.mp3 """ to F:/iTunes Complete 2018/iTunes Media/... But keep the part after the ellipsis preserved bc the file structure from there is still Artist > Album > mp3 files. Note the above is an actual example of one of the entries from the m3u. Any help would be greatly appreciated!!!! EDIT: I don't know how to undo the bold on reddit. Each of these are supposed to be "hashtag" EXT I'll post the rest of that m3u in text here below for reference: """ EXTM3UEXTINF:247,Snow Drop - Fanny Fink/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/Fanny Fink/Snow Drop/02 Snow Drop.mp3 EXTINF:223,Summer Rain - MISATO KINOSHITA/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/MISATO KINOSHITA/Umi Tokyo Sayonara/01 Summer Rain.m4a EXTINF:266,Ronoe - Miyauchi Yuri/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/Miyauchi Yuri/Ronoe/01 Ronoe.mp3 EXTINF:309,Love You Bring - Prefuse 73/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/Prefuse 73/The '92 vs. '02 Collection - EP/04 Love You Bring.m4a EXTINF:318,reflection - Masafumi Komatsu/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/Masafumi Komatsu/Life/06 reflection.m4a EXTINF:189,夏は終る - Sohsuke(蒼祐)/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/Sohsuke(蒼祐)/夏は終る/01 夏は終る.mp3 EXTINF:193,Lu Lu - no11room/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/no11room/no11room/01 Lu Lu.mp3 EXTINF:260,Ador - fusigi/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/fusigi/Solitary Wonderland/01 Ador.mp3 EXTINF:219,Noshi - Origamibiro/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/Origamibiro/Cracked Mirrors And Stopped Clocks/02 Noshi.mp3 EXTINF:150,Tremolo - YOSA/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/YOSA/Magic Hour/02 Tremolo.m4a EXTINF:375,Lunaria - Chouchou/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/Chouchou/Lunaria - Single/01 Lunaria.m4a EXTINF:147,Tuesday Evening - Skyare/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/Skyare/Tuesday Evening/01 Tuesday Evening.mp3 EXTINF:346,Hello Past - A HOUSE OF WØLVES/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/A HOUSE OF WØLVES/Hello Past/01 Hello Past.mp3 EXTINF:169,purity (pro. LIBRO) - 田中光/Users/my_name/.Trash/iTunes Media 4.05.21 PM/Music/田中光/戦極MCBATTLE/01 purity (pro. LIBRO).mp3 """ [link] [comments] |
Posted: 29 Sep 2018 12:15 PM PDT I found on github a 400 loc c# class that's a nice base for what I want but I'd modified like half of the class. It has a MIT license from year 2013 and the author name on it. I know I have to leave the copyright notice but about the year and author:
[link] [comments] |
What is the PCH.H header file for? Posted: 29 Sep 2018 10:06 AM PDT I'm still self teaching, and after updating my version of visual studios community I ended up going back to C++ to do something, but now anytime I start a new project I can't compile anything without putting other headers into pch.h. On another note what was stdafx.h purpose as I never learned and this was in its place [link] [comments] |
'undefined reference' error when upgrading PHP on my RPI Posted: 29 Sep 2018 03:06 AM PDT Hi! I tried updating the PHP version on my RPI (7.0 -> 7.2) by downloading the files from PHP and using the 'make' command in the php directory. It runs happily for a while but exits with the errors 'undefined reference to 'php_register_internal_extensions'' and 'Makefile:268: recipe for target 'sapi/cli/php' failed'. I'm unsure what to make of this and can't find any answers by googling.. Any help is greatly appreciated :) [link] [comments] |
webpage image and blurb population when sharing via imessage Posted: 29 Sep 2018 07:52 AM PDT I've tried searching for this and cant get any traction. How do I get an image and blurb to populate when the link is shared through text message etc? [link] [comments] |
Looking for some advice on test prep. Posted: 29 Sep 2018 07:47 AM PDT My teacher loves to ask exam questions that involve reading through loops. It's an online class and we use a secure browser called RPnow so we can't use and IDE/JDK. I hate these types of questions and I haven't found a good way to move through loops on my own, especially nested loops. Does anyone have some advice that could help me with this? [link] [comments] |
Project Advice : (3D visualization) Posted: 28 Sep 2018 10:59 PM PDT Hi everyone, I need to design an application that inputs 3d cad files of a building, and dynamically produces a 3d environment (third person POV and first person). How should I approach this project? What tech is capable of fulfilling these requirements? I was looking into webGL, three.js and unity. I feel a little lost on how to approach the project itself. I'd appreciate it if someone could nudge me in the right direction. [link] [comments] |
Posted: 29 Sep 2018 01:27 AM PDT If the petaflops per second (or burst rate could be far more) is not bottlenecked by IO between game logic but of course I'll start small. Its about the statistical connection between their minds and the millions of other players minds in predicting what the combo of them will do and having this prediction kind of dance or play with your mouse movements, and other puzzles. The better it predicts, the more fun and intuitive it will feel. This incomplete game will be opensource hoping the many variants would network together in interesting ways. The critical thing is the lag. If its laggy, the calculations are less useful in the game, though there is still use for recent history. What should I do to optimize for this in coding? If the number of players doubles every 10 minutes after some particular part gets fun, and the more players the more fun it feels cuz its all minds to all minds not like seeing them on screen individually... then I want to be ready. Also some of the players might through some sandboxed scripting language write some of the code that others could try new variations of how minds fit together in such games. If 1000 people make significant difference of game and either go their own way or join statistics and some scripts in parts in realtime. Or if it happens to be too laggy for games, I guess I'll just creep along with a network of gpus cuz they're local. [link] [comments] |
Need help converting a website to native app Posted: 29 Sep 2018 12:37 AM PDT I am using gonative.io website to convert a website into a native app. Here is the website. I have already converted it into native app. You can view a simulated version at this link. The problem is that the camera does not initiate as a native application in both Android and Iphone. What might be the reason for this? [link] [comments] |
Posted: 29 Sep 2018 08:08 AM PDT Spam this douchebags email address please: [eddie_scoular@live.com](mailto:eddie_scoular%40live.com), [edward.scoular@fultonhogan.com](mailto:edward.scoular@fultonhogan.com) [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