What kinds of data structures would you have to use to implement your own database engine? Ask Programming |
- What kinds of data structures would you have to use to implement your own database engine?
- Looking for someone to code review my C# application?
- Parsing json using gson
- What hardware resources does Programming use? Is programming CPU-intensive?
- Trigger command prompt when file opens --?
- If a function runs a recursion, what causes it to stop its never ending loop?
- How to generate PDF from index.html in Cordova/Phonegap
- Which GUI do you not use because there's an alternative if you feel better using in the terminal?
- Finding best way to work with strings.
- Small mistake in my 20-line game with RNG (C).
- List multiple variables without floating commas
- Need help spreading Christmas cheer
- How to set up a virtual phone that answers and clicks a number automatically?
- What can I learn in C++ about web engines and such to help me be a better JavaScript developer?
- Some trouble using Bootstrap in PyCharm.
- A good book about gaming code design?
- What’s the best online course to learn about algorithms and machine learning?
- Amex Transactions API or similar
- How can i display my html pages full title?
- Where can I instantly talk to or screen share with programming experts on a chosen subject, paid by the minute?
- A cert aka pubkey, sig, and content signed, proves to everyone that privatekey signed that content. Is there such a thing, and what is it called, as an inverse cert, which is similar to a cert file or block of base64 text, except that anyone can create one that only the private key can read?
- Python built-in function problem
- How to use unity together with a team?
- I am feeling like I'm going to be used as a cost saver for software development
- Im implementing luhns algorithm, but i cant seem to figure out why it cannot check the length of the creditnumm??
What kinds of data structures would you have to use to implement your own database engine? Posted: 01 Oct 2020 01:02 PM PDT |
Looking for someone to code review my C# application? Posted: 01 Oct 2020 06:58 AM PDT 16-year old "developer", looking for someone to give constructive criticism on my C# application. For me, this is the easiest way for me to learn. I am autistic so I struggle with the "general" way of improving yourself and require a practical example with my own code to understand. The size of the application is hard to say, but it consists of around 30 classes, most of them being under 100 lines. In total its maybe 1,500 lines of code (a lot is boilerplate). Even if someone can look over just a few classes, it is still progression and would still help me out a huge amount. Suggestions in one area can probably be applied in others GitHub Repository: https://github.com/serializemylife/cascade-worker Additional information For security reasons, I've changed our acutal CDN url to a dummy one "cdn.cascade.io", if you would like to compile and run the application let me know and I can send you over the files & database. It shouldn't be too hard to reverse engineer it anyway. It is basically a profile scraper automated by Selenium, it works off a MySQL database and processes queue items (profile links) for scraping, determines if they are useful and caches/archives them to the database if so. It started out as a personal project for a challenge, mainly to take my coding to the next level. I don't think it is terrible, it implements the SOLID principles in areas although other areas I kind of refrained from refactoring so it got a bit dirty... Areas I want to focus on Not sure if I can really say this I'm happy with whatever reviewing is done, but if possible I would like to receive suggestions on how to abstract areas of two classes (ScraperWorker & implementations of ISocialEventHandler) to follow SRP, they're both 200+ lines and feel like they could be cleaned up by making additional classes, although I don't know which areas need to be abstracted, or what kind of class names to use to put the abstracted code in. Thanks, all the best. [link] [comments] |
Posted: 01 Oct 2020 10:54 PM PDT Hi guys i have this simple json that i can parse using gson im comfortable with the parsing methode that i use im not good with this but i understand the process and i have implemented it in my early days app then i wanted to learn how to parse something similar using the same method if possible please see the example and code below : Example 1 : this is the current json i use and works fine : [ { "name": "test", "description": "testing" "genres": "testers" "url": "http://xxxxxx", "image": "https://testparts.png", "backgroung": "https://testparts2.png" }] Example 2 : this is what i want to do now its a little complex for me and would like to use the same code with abit of modification : [ { "name": "test", "description": "testing" "genres": "testers" "image": "https://testparts.png", "backgroung": "https://testparts2.png" }, {"test2": [ { "Id": "test", "url": "http://xxxxxx" }] Channel Class : public class Channel { public String name; public String url; public Channel(String name, String url, String logoUrl) { this.name = name; this.url = url; this.logoUrl = logoUrl; } public String logoUrl; public Channel(String name, String url) { this.name = name; this.url = url; } } Parse code to return channels to content values: InputStream is = null; List<Channel> channels = null; try { BufferedReader reader = null; if (local) { is = context.getAssets().open("channels.json"); reader = new BufferedReader(new InputStreamReader( is, "iso-8859-1"), 8); } StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { sb.append(line); } String json = sb.toString(); Gson gson = new Gson(); channels = gson.fromJson(json, new TypeToken<List<Channel>>() { }.getType()); } catch (Exception e) { Log.d(TAG, "Failed to parse the json for channel list", e); } finally { if (null != is) { try { is.close(); } catch (IOException e) { Log.d(TAG, "JSON feed closed", e); } } } return channels; The 1st example works fine when i do this , so i want to do the 2nd example i have tried few work arounds but the url doen t play only spining so i assumed something is missing any tips or ideas or tutorials or part code will be appreciated thanks [link] [comments] |
What hardware resources does Programming use? Is programming CPU-intensive? Posted: 01 Oct 2020 09:09 PM PDT I am talking about normal programming and software development (backend, frontend, OS, databases, webdev). What computer/laptop resources does it utilize? Is a good CPU/processor better for programming or is it something else? I heard AI/ML require a good GPU. So, this made me curious about what hardware is most important for programming and software development. [link] [comments] |
Trigger command prompt when file opens --? Posted: 01 Oct 2020 08:29 PM PDT Hello! I'm not sure where to ask this, but I couldn't seem to find anything helpful online. I'd like to preface this with, despite the fact I sound like someone who doesn't know what they're talking about... I am. I picked up coding almost two summers ago and got super into it, then became busy with school and dropped it altogether. Thus I ask that you please don't spew crazy technical terms at me. Unless necessary, if then I'll look it up. Suffice it to say that I want to create a personal gift for a loved one. I am on a dell pc and program using atom. I've created my share of simple python programs to run through command prompt, but I was wondering if there was a way to trigger command prompt to open when they were to click on a file. I want to create a sort of scavenger hunt through files, with puzzles and clues that will allow them to progress to the next level of password-protected folders. I've created password-protected folders before, so I am wondering if it is best to simply use that code and add some additional printed text. Since I feel like I'm being vague, bare with me while I try to explain what I'd like to happen:
Thank you all in advance, please let me know if this is not the right tread, against rules, or need me to take this down. I appreciate it greatly! [link] [comments] |
If a function runs a recursion, what causes it to stop its never ending loop? Posted: 01 Oct 2020 02:29 PM PDT The code I'm working on ends its loop by calling its own function. The code returns after the recursion is called. What causes the recursion to ever end? In this code I've seen an unhandled error(one of the parameters=0) cause the loop to break.(by design?) Anything else that would cause the recursion to end? [link] [comments] |
How to generate PDF from index.html in Cordova/Phonegap Posted: 01 Oct 2020 08:10 PM PDT I'm using Cordova/Phonegap and the PDF Generator Plugin to build an app that's meant to convert a file's HTML to a PDF that can be saved client-side. Since I'm still pretty new to Javascript, I've been using this example. Right now, I'm able to specify a specific webpage and generate a PDF out of the page's HTML. However, I want to do this for my index.html page and not an external URL. I want the same exact thing, but with my index.html file within the app itself. I followed the example exactly and changed my index.js file to the following: With the above code emulated with the rest of the app in an Android emulator, I am able to generate a pdf from the specific URL in the Javascript, but I need it to work for a given file - in this case, my index.html. I believe all I need to do is change the line "pdf.fromURL('https://www.sheldonbrown.com/web_sample1.html', opts)" to generate the pdf from a file and not from URL, but I can't get the syntax correct. Any advice would be deeply appreciated! [link] [comments] |
Which GUI do you not use because there's an alternative if you feel better using in the terminal? Posted: 01 Oct 2020 09:35 AM PDT For example, I've found that for my use case I don't need Postman at all, good ol' [link] [comments] |
Finding best way to work with strings. Posted: 01 Oct 2020 07:36 PM PDT |
Small mistake in my 20-line game with RNG (C). Posted: 01 Oct 2020 07:34 PM PDT Hello fellow programmers. Before I ask anything, I have to say that I'm new to programming and I'm still happily learning. As they say, you learn best from your own mistakes, so I hope I can learn something from this one too. So, my friend saw a video where group of friends are playing drinking game with google RNG and person who hit 1 before others have to drink. The catch is you always have to rewrite the interval [1, N]. So I proposed I would make a program that rewrites interval by itself. And I made one, where interval is from 1 to RAND_MAX, and it starts decreasing. Problem occurs when I try to set the interval by myself. For example, I ask user from which number (higher number of interval) they want to start. For example they want to start from 45 and then decrease until 1. Game over. But. When I add that addition to my code, first number program randomize is always higher than the interval itself, and after first number, it gets normal. I cannot debug it at all. I cannot see very minor (or major) mistake I did. Can someone point that mistake out. Here is the code: include<stdio.h>include<stdlib.h>include<time.h>int main(){ } For example, output is: Which is the highest number? 45 361 35 3 2 2 2 1 Game Over! Thank you all in advance! [link] [comments] |
List multiple variables without floating commas Posted: 01 Oct 2020 07:25 PM PDT I need to check for 3 variables and list them on one line. Lets say I have 3 variables: a, b, and c. If I have all three it shows "a, b, c" If no a, it shows "b, c" If no b, it shows "a, c" If no a or b, "c" How can I accomplish this without having floating commas? I am using Pods so I cannot use AND/OR [link] [comments] |
Need help spreading Christmas cheer Posted: 01 Oct 2020 10:32 AM PDT TLDR below. Sorry if this is the wrong sub. We live on the busy main street of our neighborhood and COVID has hit the businesses pretty hard. In fact of the 9 shops on our block, it looks like only one is going to survive to the end of the year. Most of them are boarded up because we're only a few blocks from where the protests usually gather, but the one that just went out of business below us hasn't been yet, and our building owner told us we can decorate it for the holidays! Why I'm here: the landlord told me I can't have lights and a train running all the time, and while it would be easy enough to set up a timer, I had this merry idea that's very far beyond my abilities: Wouldn't it be fun if singing a Christmas carol turned on all the lights and decorations? I have no idea if that's possible or how to accomplish it but I figured maybe someone here could help. I just love the idea of hearing carolers and having something fun for the neighborhood that's powered by cheer when there's so little of it around lately. If you have any ideas on how to accomplish the technological side of this I would really appreciate it. I'm a capable woodworker and my neighbor is great with electrical. I'm prepared to drop some coin to make this happen but trying not to go crazy as I just had my salary cut. TLDR: How would you go about creating something that could hear a Christmas carol being sung and turn on a powerstrip? (Bonus: could it detect a Hanukah song to turn on a different powerstrip?) [link] [comments] |
How to set up a virtual phone that answers and clicks a number automatically? Posted: 01 Oct 2020 01:24 PM PDT Hey! I am pretty much trying to automate my building buzzer. Currently, I have to answer and click the number 9 to let people into the building, I have an iphone so I'm unable to code it into android (as I've seen these solutions online before) so I thought it might be possible to create a virtual phone online where I could route the calls and automate the clicking that way. Is this even possible? If so, what could I use to do it? Thank you in advance! [link] [comments] |
What can I learn in C++ about web engines and such to help me be a better JavaScript developer? Posted: 01 Oct 2020 01:07 PM PDT |
Some trouble using Bootstrap in PyCharm. Posted: 01 Oct 2020 04:37 PM PDT For a project I'm working on I had to download bootstrap and the video tutorials I'm using directed me to a page by FezVastra at this page. https://github.com/FezVrasta/bootstrap-material-design. The issue I'm running into is the videos are a few years old and I think that Bootstrap has update since they were made and now they are referencing a file that I don't think is there and causing me to create an error. The file it wants me to reference is a material.js file that appears to have been part of the bootstrap download at one point. For the files like this I was supposed to reference them like this: and I created a calling page called scripty.js where the page contains: Now the code itself isn't registering any errors the issue is on the webpage the $.material is said to undefined. This may also have something to do with JQuery but I don't really know. If anyone can help me clarify what went wrong and knows how to fix it please let me know. [link] [comments] |
A good book about gaming code design? Posted: 01 Oct 2020 12:33 PM PDT Hi I want to know if there is a book about how to design code for games, over the years and after reading a couple of books I can say that I'm decent designing code for general applications, when to decouple and what code schemas to use to do that, good abstractions for some cases etc... But when it comes to game coding I found that some times (not always) the same things tools I've use doesn't work as good and I wondering if there is a book that helps me figure out what patters and tools I should use in given situations. A lot of people will say to only watch YouTube videos and tutorials but what I've loved from the books that I've read about code designing is that they tell you the pros and cons of each approach and with that you know when to use each approach (and some times there are multiple viable approaches). For example what is a good code pattern to make a code that generate enemies, should I have one generator or should I have multiple depending on the types, another example is what is a good way of handling the user input (in sense of code design). I once watch a YouTuber that had a book about that and he explained why he was using those patterns but I can't remember who was it, I just remember the game was about a tank. [link] [comments] |
What’s the best online course to learn about algorithms and machine learning? Posted: 01 Oct 2020 03:23 PM PDT |
Amex Transactions API or similar Posted: 01 Oct 2020 03:15 PM PDT Anyone know if how I can get access to an API or something that allows me access to my own American Express transactions? [link] [comments] |
How can i display my html pages full title? Posted: 01 Oct 2020 03:00 PM PDT So i want to know how can i display my web pages title in 2 lines instead of just showing its start with ... in the middle and end of the text I tried using the pre tag and the p tag but it just ended up showing those tags in the tittle [link] [comments] |
Posted: 01 Oct 2020 10:04 AM PDT I often get stuck on little things and would like to talk to or screen share with a relevant expert for a few minutes or more, but if I wait for job applicants I'd likely figure it out by the time that process gets someone to me. I want something more like tech support but by experts on any chosen technical subject. I am willing to still pay them their per minute price (such as $1-$3/minute) even if they turn out to not be who I needed, as long as they are listed as having the relevant skill. [link] [comments] |
Posted: 01 Oct 2020 01:48 PM PDT and can publishing your private-key without publishing your public-key accomplish this and in what algorithms? [link] [comments] |
Python built-in function problem Posted: 01 Oct 2020 12:28 AM PDT sum([x for x in arr if x>0]) is exactly same as sum(x for x in arr if x>0) that is square bracket not required but len([x for x in arr if x>0]) is not same as len(x for x in arr if x>0) here if we remove square bracket it throws an error can anyone explain why i saw documentation bt didn't find anything. [link] [comments] |
How to use unity together with a team? Posted: 01 Oct 2020 08:36 AM PDT Hello guys, me and my friend are trying to start, making a game with unity, but cant find a way how to link it with 4 people together. 1.How to use unity with a team? we are 4 people. 2.Is there a way to use visual studio to code on unity , and if so can we use for example and github to link our codes? 3.if #2 is true, how to link the assets and stuff like that, how to link those stuff together? BTW WE ARE AMATEURS, AND THIS IS THE FIRST TIME USING GITHUB OR UNITY LIKE THIS. [link] [comments] |
I am feeling like I'm going to be used as a cost saver for software development Posted: 01 Oct 2020 08:36 AM PDT Hi, I am a Business undergraduate student, no professional experience aside importing Product from China. Long story short, I chose to learn software development in August 2020. Another Long story short, I chose a not well-known Bootcamp. However, I took for granted that the median salary for a junior developer from the well-known Bootcamp must be equal to this not well-known Bootcamp I took. During the Bootcamp, one of the instructors mentioned that if a PHP junior developer gets a minimum wage, it is considered lucky. I learnt JavaScript and Java. It's uncorrelated, Long story short after researching the Bootcamp's Hiring Partners, the median salary for junior software developer is the minimum wage, and the current Hiring Partner median salary for junior software developer is minimum wage. The minimum wage is 1/2 of the median salary for a junior developer from the well-known Bootcamp. There is also a contract, that is going to bind me for several years if I chose to complete the Bootcamp, which would put me in jail if I decided to reject the job offering. My aim is to be in the Management for IT department within 2 years. And money is my motivation to stay in a company. This kind of contract will force me to take whatever salary since there is a hefty fine if I bail while in the middle of the contract. note: I have zero professional experience in IT industry, bootcamp is my bootstrap of choice. If I bail out, I need to join the well-known Bootcamp for another 4 months before getting a job. edit: I gave wrong impression about the Bootcamp. The Bootcamp can't legally pressure me to take job that pay less than the minimum wage. My concern is since money and Management position is my motivation to stay competitive for at least 2 years, I am not sure whether the Bootcamp's hiring partner will be a good choice for me. I am considering to left the Bootcamp for the more well-known Bootcamp that is well connected with Hiring Partners and higher median salary for junior developer, which will waste another 4 months of my life. What would you do considering the information above? [link] [comments] |
Posted: 01 Oct 2020 11:55 AM PDT string = (str(input("Please input your credit card number"))) if 13 <= len(creditnum) <= 16: else: [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