Is programming too saturated? Ask Programming |
- Is programming too saturated?
- [PHP] Best Practice to avoid code duplication
- Looking for books regarding JavaScript, AWS, and Node.js
- Using fwrite() to write integers(C)
- How do certain websites seem to detect if a user agent string is false?
- I need book recommendations for C# I’ve never touched it before and I got use it for college.
- Quick question
- Cat does not exist in the current context
- Question about Facebook SDK
- What is the simplest technical instantiation of web tracking?
- How to Read DAT files
- Access content of highlighted text in macOS
- Need help with understanding this.
- Isn't spaming elif in python instead of having a real switch statement much more ineffective?
- Using C# to control servo motors on raspberry-pi 4
- Is it worth it doing a Software Tester course?
- What if the world economic forum is just a group of mega corporations making decisions for the rest of the world and their plan really is to create cyber attacks to usher in a new crypto currency? Globalization of finances would be the end goal.
- How do I solve this technical issue?
- Possible to make a webcrawler and host it on a free github io page?
- Auto click when time
Posted: 10 Sep 2021 02:47 PM PDT With the amount of free learning resources online, and with the amount of kids in China, India, etc who have been coding since the age of 10, it seems to me like programming is gonna be a pretty cheap and common skill in the next decade. Thoughts? [link] [comments] |
[PHP] Best Practice to avoid code duplication Posted: 10 Sep 2021 09:27 PM PDT i am currently doing an API with laravel. i have 2 controllers, FolderController and ImageController, both have their own "store" method. In the Front-End i have 2 separate forms, one to create a folder, and another to add an image to a specific folder, so 2 calls to different endpoints. Now i want to have a form to create a folder & add images at the same time. What is the best practice in this case ? 1/ Make 2 calls in the frontend, one after the other, so i need to create a folder, get its id to make the second call my (humble) opinion: ugly 2/ Make an ImageTrait with a store function to use in FolderController->store() and ImageController->store() my (humble) opinion : i think it's ok but what if i add other functions in ImageTrait ( related to Image process ) to use them in others Controller , if i load the Trait in each Controller, won't that overload the processus for nothing? 3/ ??? ( I think there are other existing solutions ) Thanks [link] [comments] |
Looking for books regarding JavaScript, AWS, and Node.js Posted: 10 Sep 2021 04:07 PM PDT Hi everyone, Recently I've started studying for AWS certifications. I've been trying to find a path for my career and I think I want to take the AWS and cloud route. Recently my job has let me explore this option by looking over our current codebase in preparation of me contributing to it. So with that, what books would everyone recommend for learning this information? TIA [link] [comments] |
Using fwrite() to write integers(C) Posted: 10 Sep 2021 06:33 PM PDT This may be a simple solution but I'm still new to C and I'm very confused. I am writing a program that does RLE compression, so for example if a text file has aaaaaaaaaabbbb the output would be 10a4b. When I use printf() it prints the answer out correctly, but when I try to use fwrite() the integers come out as weird symbols. What am I doing wrong? Thank you in advance! Here is my code: #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { FILE *fp; char current; char next; int count = 1; fp = fopen(argv[1], "r"); if( fp == NULL) { } current = fgetc(fp); if( feof(fp) ) { } do{ break; }while(1); fclose(fp); return(0); } [link] [comments] |
How do certain websites seem to detect if a user agent string is false? Posted: 10 Sep 2021 03:46 PM PDT (I realize this is more of a web dev question, so I hope this isn't too off-topic. Please let me know if there is a more appropriate sub.) When visiting certain sites on mobile, they seem to be able to detect when you have your user agent string set to, for example, a desktop Firefox browser, so you still receive the mobile version of the site instead of the desktop version. I was curious how they do this and how it might be circumvented. Thank you in advance! [link] [comments] |
I need book recommendations for C# I’ve never touched it before and I got use it for college. Posted: 10 Sep 2021 01:23 AM PDT I'm asking because I have no clue where to start. [link] [comments] |
Posted: 10 Sep 2021 12:36 PM PDT Hello! I want to know how to use arguments for classes in c++ in random order. If you don't know what i'm talking about see the example in flutter: Is there a way to do it in C++? [link] [comments] |
Cat does not exist in the current context Posted: 10 Sep 2021 12:27 PM PDT Hello. I am new to programming but I have this weird bug I am unable to solve. I have Program.cs and Tools.cs both in the same namespace. In Tools.cs I have string Cat(string filename) which I am trying to use in Program.cs, but I am getting this error : The name 'Cat' does not exist in the current context. How can I link the Tools.cs to Program.cs ? Thanks [link] [comments] |
Posted: 10 Sep 2021 12:15 PM PDT Hello! I would like to measure installs and in-app conversions using Facebook SDK in two native apps, one written in Kotlin, one in Swift. I followed multiple tutorials - since a lot of content in Facebook's docs is outdated if not completely deprecated - but I'm still not able to see ANY event in their events manager, not even test ones. I'm pretty sure setAutoLogAppEventsEnabled (Kotlin) and isAutoLogAppEventsEnabled (Swift) are set to true, I can't see any error/warning in the logs of both apps, but it's still not working. I've also set th Facebook app to "live", without success. Is this behavior normal? Am I supposed to see nothing at all until I start a campaign? This sounds very strange to me. Anyway, thank You for stopping by! [link] [comments] |
What is the simplest technical instantiation of web tracking? Posted: 10 Sep 2021 11:05 AM PDT Simplest. Does it have to be an API request? Can't it be using metadata from a single regular url request? Anything else? [link] [comments] |
Posted: 10 Sep 2021 10:39 AM PDT I'm trying to change the way some text appears in a program. I know the text I need to change is coming from this DAT (https://i.postimg.cc/4xCsRsx7/Screenshot-from-2021-09-10-13-38-13.png). But how in the world do you make any sense of this??? [link] [comments] |
Access content of highlighted text in macOS Posted: 10 Sep 2021 08:47 AM PDT Hello, I am looking to build an app for macOS that makes use of the highlighted text. In a way, it is meant to work the same way as the copy and paste function. Pressing a combination of buttons (a keyboard shortcut) would trigger a function that receives whatever text is highlighted and then does something with it. I have taken a look at xsel, but it allows to place content in the clipboard that can be pasted after, but it does not give access to the highlighted text. Another option I have taken a look at is Automator, which would allow for getting access to the content of highlighted text but can only be triggered from the selection menu, and not from a keyboard shortcut. Is anyone familiar with any way of programmatically getting access to the content of the highlighted text? Is there any package or OS level API that would allow that? Thanks in advance [link] [comments] |
Need help with understanding this. Posted: 10 Sep 2021 04:14 AM PDT //Why is it that; var num = 1; var newNum = num++; newNum = 1; num = 2; //while this code below gives the result as follows; var num = 1; var newNum = ++num; newNum = 2; num = 2; /* It's obvious that the ++ preceding and succeeding num is what makes the results different but what am asking is why? */ [link] [comments] |
Isn't spaming elif in python instead of having a real switch statement much more ineffective? Posted: 10 Sep 2021 04:03 AM PDT Im about to learn python for university (sadly, since my previous jobs were Java and C#) and I kinda wondered about the non-existence of switch. So, isn't elif compared to switch much more ineffective, especially when talking about runtime and generated runtime code (C or Assembly,...)? [link] [comments] |
Using C# to control servo motors on raspberry-pi 4 Posted: 10 Sep 2021 06:39 AM PDT Just starting out with my first pi project (pi 4 model B) and am struggling to find a way of controlling multiple servos using C#. I'm planning on using an adafruit PCA9685 to control the servos but can't find a C# compatible version of their Servo Driver library. Does anyone know if I'm on a wild goose chase or is this doable? [link] [comments] |
Is it worth it doing a Software Tester course? Posted: 10 Sep 2021 06:11 AM PDT I want to start coding but I am not consistent in learning coding myself so thought of doing a course. Where I oive they mostly have Java, Python and MEAN courses which last from 4-8 months. There's also a Software Tester course which lasts 3 months. Some suggested it would be better to do this one since it's easier and a bit cheaper. Get a job and then either learn a programming language myself or do a course. What would you suggest? [link] [comments] |
Posted: 10 Sep 2021 04:14 AM PDT Would a programmer consider this type of attack when planning and designing, and how could it be prevented when they are probably paying you, and they contain all of your algorithms and the data that you're using? What if they are the cyber criminals? How do we protect our data from them in that respect? Theoretically.. [link] [comments] |
How do I solve this technical issue? Posted: 10 Sep 2021 02:42 AM PDT windows and mac user here. I know how to format a harddrive or clear cookies and passwords. but thats as far as I've learned so far. me trying to read up on random .dll articles brought me nowhere. there is this setup as weba adresses for google chrome links. I don'tknow hwat .dll is, but I have this suspicion that the .dll registry is what seriously messes up the employees ability to login. we are supposed to follow a procedure with different logins dialer link. link ending in "workstation.dll" link ending in "interviwerlogin.dll" the issue is, if you're logged in one one computer, even if you log out, you can't log in from another computer. I think this is the issue. all day yesterday I tried logging in with different logins, and I couldnt' login until I tried a thrid, different, users login, on a fourth computer. we m,ay or may not be using a program called Nebu. I tried contac ting my supervisor to create a support ticket, but it seems the issues remain unresolved. as such I am reacing to you , Reddit, for guidance. [link] [comments] |
Possible to make a webcrawler and host it on a free github io page? Posted: 10 Sep 2021 02:26 AM PDT Hey! I'm trying to make a web app that will take a url as an input, read the html text that's in that url, create an .epub file with that content, and allow for it to be downloaded. I'm looking at my options. My go to tends to be python for this kind of small tasks, but i want this thing to be as easily accessible as possible, making python a bit tricky; many potential target platforms, app bundling is an issue, etc. So i thought to maybe host this thing on the web somehow. Thing is, I dont use a hosting service that'd host my app 24/7, and I dont have a machine to dedicate to this (at least not before evaluating other options). My question is would I be able to do something like this solely on a github.io page? I found a javascript library that handles .epub file creation, but it's the gathering of the content from inputted URLs that I cant tell how I'd do. I'm open for suggestions, advice, hints. Thank you very much! [link] [comments] |
Posted: 10 Sep 2021 12:23 AM PDT I'm a beginner of python I need some help: how to make automatically click when it comes to real time use python?? (Enter the desired time, when it is time to run the program) Sorry my English so bad, i used gg translate [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