• Breaking News

    Monday, January 24, 2022

    What does "At least basic understanding of business intelligence tools (Tableau...)" mean in practice? Ask Programming

    What does "At least basic understanding of business intelligence tools (Tableau...)" mean in practice? Ask Programming


    What does "At least basic understanding of business intelligence tools (Tableau...)" mean in practice?

    Posted: 24 Jan 2022 03:10 AM PST

    What does "At least basic understanding of business intelligence tools (Tableau...)" mean in practice?

    submitted by /u/mavavilj
    [link] [comments]

    What are tech/tools are you making your resumes with?

    Posted: 23 Jan 2022 05:07 PM PST

    I haven't needed a resume in over a decade and back then you had to send doc or pdfs around. I'd love to create my new resume in vcs-friendly source code and compile it to pdf, but something nicer looking than LaTeX.

    What are your more modern resumes looking like, and what are you using to create and maintain them?

    Edit: typo

    submitted by /u/japgolly
    [link] [comments]

    .NET vs Django vs Node

    Posted: 23 Jan 2022 04:56 PM PST

    Hello, I'm a beginner at web development. I am considering learning web development and I need to choose a framework. What will you use .NET, Django or Node? I like being the language is typesafe. I'm currently learning C++. Could you please give me advice such as job opportunities, current trends?

    submitted by /u/kulasinghet
    [link] [comments]

    Is careerfoundry a good place to get a web development certificate?

    Posted: 23 Jan 2022 06:45 PM PST

    I think I want to do web development and don't want to have to go to school again for it. I read online that careerfoundry will teach you web development in 4-7 mouths and guarantees a job in 6 or your money back. Is this for real? It sounds great if it is. I know it'll be a lot of work but I'm already use to that so I should be fine.

    submitted by /u/MCButterFuck
    [link] [comments]

    Pausing a thread in python

    Posted: 23 Jan 2022 10:46 PM PST

    Hi all! I am doing some web automation in python and there is a captcha that keeps getting in my way. Its not something hard like pick the bikes or whatever recaptcha does, its just a simple click and hold for a certain amount of time. I thought i had it figured out but something changed and now i can't detect if the captia is active. I want to add a thread that is constantly taking screenshots and checking if the captcha is on screen and if so pause the main thread.

    I've never really done any multithreading and wanted to ask is there a way for one thread to tell the other one to pause/resume?

    submitted by /u/bimbimsala
    [link] [comments]

    Can someone help me please? How to create " Set “total” to 0. Set “count” to 1. [loop] Set “compare” to “count”. Subtract 11 from “compare”. If “compare” is zero, continue at [end]. Add “count” to “total”. Add 1 to “count”. Continue at [loop]. [end] Output “total" in RAPTOR with pseudocode?

    Posted: 23 Jan 2022 10:35 PM PST

    Here is how I think this is supposed to look: https://i.imgur.com/CxRCihV.png

    I've been learning how to code Javascript off and on for a while. I was taught in tech college the basics of pseudocode and I think I need to understand it better. I've started reading Eloquent Javascript (https://eloquentjavascript.net/2nd_edition/00_intro.html). I decided to use RAPTOR to try to figure out how exactly the first example in the introduction works. The Pseudocode is in the title and the

    Javascript version: var total = 0, count = 1;

    while (count <= 10) {

    total += count;

    count += 1;

    }

    console.log(total);

    // → 55

    Quoted from the text: "Can you see how the program works at this point? The first two lines give two memory locations their starting values: total will be used to build up the result of the computation, and count will keep track of the number that we are currently looking at. The lines using compare are probably the weirdest ones. The program wants to see whether count is equal to 11 in order to decide whether it can stop running. Because our hypothetical machine is rather primitive, it can only test whether a number is zero and make a decision (or jump) based on that. So it uses the memory location labeled compare to compute the value of count - 11 and makes a decision based on that value. The next two lines add the value of count to the result and increment count by 1 every time the program has decided that count is not 11 yet."

    Why do I want to know how to use this in Raptor? I understand the solution, but not quite how the code works. However, I just think if I can understand how to write this code in Pseudocode in the future I will understand future examples with how this is supposed to look.

    submitted by /u/chasemoreplz
    [link] [comments]

    How to keep public servers secure but 'hidden' (ie not using DNS)

    Posted: 23 Jan 2022 05:47 PM PST

    Say I have a central server at https://example.com and a bunch of micro-service servers.

    I'm looking to keep the micro-service servers secure without using domains/sub-domains which people could look up.

    The client contacts the central server, which responds with an address (looking to use IP instead of DNS) which the client can then contact through an encrypted connection.

    Is something like this possible? Thanks.

    submitted by /u/anon377362
    [link] [comments]

    Tic_Tac_Toe Help

    Posted: 23 Jan 2022 09:16 PM PST

    I was making Tic tac toe but i dont know how to repeat it can anyone help me

    this is the link https://github.com/Ame16/TIC_TAC_TOE-V2/commit/36bdf81c1ff9eb2a93498fbc8d766c4c092350f8

    submitted by /u/Ame_the_Puny
    [link] [comments]

    Finding out if a pixel is in a given area defined my straight lines drawn across the picture

    Posted: 23 Jan 2022 12:13 PM PST

    Hello! I have a more general programming problem that I'm not quite sure how to tackle. I'm looking for ideas rather than code!

    What I want to do is map each pixel of an image to the area it belongs to. See this image for reference. The different areas are defined by its surrounding lines as seen in the parts that are coloured. The lines would be "drawn" by me. They would not exist on the actual image and their representation would just be of the form y = kx + m, unless there's a better way. The end result that I would want is a collection of areas each mapping to all the pixels that belong to it. So something like this:

    area1 -> (0,0), (0,1) (1,1), ...

    area2 -> (23,43), (68, 11), (4,122), ...

    ...

    Any insights in how this problem could be solved? If my explanation is unclear then let me know and I'll elaborate.

    submitted by /u/Waffleloord
    [link] [comments]

    Stuck with Python Honors Project, any ideas?

    Posted: 23 Jan 2022 07:14 PM PST

    Hello everyone, I'm new here so I'm sorry if my question doesn't fit this subreddit.

    I am currently taking an Intro to Python class but have taken Java Programming classes previously so it has been easy to pick up Python so far. Since I'd like to get some projects on my resume, I decided to do an honors project for the class (basically a project that goes beyond what is taught in class and needs approval from the honors college). My professor accepted and told me to come up with an idea for a project. He told me to look at Kaggle for any datasets that could be useful in said project. An example he gave is a website that shows the amount of COVID cases in my county, something along those lines but a little more complex/interactive.

    Problem is, I have pretty bad anxiety, and this happens to me time and time again. Once I have a clear idea for a project, I generally don't have a hard time making it happen, but when it comes time to actually think of that idea, my brain just SHUTS DOWN (I come from a music background and I'm the same way with music ideas/projects). I did think of a fairly simple idea for an app and brought it up with him but he said it was too simple, which is another concern of mine since I've never made anything "big" or complex enough to take over a weekend to complete, so having to come up with a serious project has only given me more anxiety. Every time I think of something, I feel like he won't like it because it is too simple...

    The deadline is approaching and I'm afraid I may not come up with anything. At this point, I have turned to Reddit for any help, advice, or ideas. Anything is greatly appreciated.

    submitted by /u/michaelscotttot
    [link] [comments]

    Best programming lane for self-employment? Thinking web design but wondering about other possibilities

    Posted: 23 Jan 2022 06:40 AM PST

    Basic CSS structure file - is there anything I can do to improve on this?

    Posted: 23 Jan 2022 06:11 PM PST

    https://gist.github.com/Ratstail91/b37a7c928180e5aecedb145debdf2086

    This comes from my website https://eggtrainer.com, which uses a bloated version of this - I want to cut it down and make it better.

    Is there anything I can do to improve on this?

    submitted by /u/Ratstail91
    [link] [comments]

    Help with a listen server.

    Posted: 23 Jan 2022 12:04 PM PST

    If anyone can help I would appreciate it because I am new to network replication. I am working on a survival project where you can play single player or up to 8 co-op. I want to use a listen server to avoid server costs as the game is not to be planed as a online heavy game. So let's say there is 6 players on a map. One day 3 of 6 players are on the map and build a building. The next day the other 3 that weren't on yesterday are on today without the other 3 that where. How can I communicate the updates to the world to the 3 that weren't on the previous day?

    submitted by /u/VMS4125
    [link] [comments]

    Could someone make a crypto currency that computes useful output?

    Posted: 23 Jan 2022 11:23 AM PST

    I'm not sure the best place to ask this.

    What if a cryptocurrency was designed such that mining would produce answers to real-world qiestions?

    What I am thinking of are those screensavers like SETI@home or Folding@home which used PCs to outsource computing power for research projects.

    I can't claim to understand any of how the blockchain works. I know that complex math problems are used to create unique 'coins'. Are those math problems just random? Could we substitute real math problems?

    It seems like a better way to use all this computing power.

    submitted by /u/sigilvii
    [link] [comments]

    What would be used to do what?

    Posted: 23 Jan 2022 01:59 PM PST

    I have so many basic questions to be honest, don't know where to start.

    I'm thinking of a project where a user uploads a csv file with data, using that data a pdf is created that the user can download. The data needs to be manipulate like in excel eg. Sorted, cleaned, calulations etc. and then results presented in the pdf.

    Could this be done with MERN stack, or would phyton be needed? (Or something else better?)

    If I want the data manipulation to not happen in the browser but on the server, how would that work?

    How make it possibly for several users to run this at the same time? Would there be a que? (I assume no but, don't know how so I ask)

    Also if there is a login where user can find previous uploads and downloads. Is the code creating the pdf and then storing?

    Sorry for dumb 🙏

    submitted by /u/blomhonung
    [link] [comments]

    Identifying all Twitter users that meet a certain criteria

    Posted: 23 Jan 2022 11:37 AM PST

    Using Twitter's API, would it be possible to grab all users on the platform that meet a certain criteria, e.g. all user objects that have their location attribute set to be "Portugal"?

    I've tried using the "search_users" method - but it's limited as it always returns the same top 1,000 results based on a search query. Any help is appreciated, thanks!

    submitted by /u/mogo3
    [link] [comments]

    Need help filtering out inputs in Python 3

    Posted: 23 Jan 2022 11:37 AM PST

    Here's my code

    """

    def input_test():
    author = input('Enter the name of the author:')
    if int(author) == ValueError:
    print('yo')
    input_test()

    """

    As many of you professionals can see this code will not work.

    What I am trying to do is make it so that if author equals any numbers, to restart, and ask for another input again until it gets a word. In this attempt I am trying to ask if the integer version of author returns a value error then print('yo) to see if it worked or not. I am not sure how else to solve this.

    submitted by /u/Ok-Fault9101
    [link] [comments]

    help for my bachelor thesis

    Posted: 23 Jan 2022 10:35 AM PST

    Hey guys, got some questions for my bachelor thesis on how to work on it, and which technologies I should use.

    I am a big MMA Fan. And I would like to find out which is the best fighting style background to succeed.

    So I thought about writing a script to crawl the data from the UFC webpage (they got all information I would need) and to parse it into a database. And then to analyze it, and to write an algorithm to try to predict future fights, with the old information I currently have. I have a lot of free time to learn technologies I currently don't know how to use.

    But I am kinda lost on how to start. Does anyone have recommendations on how I should go on?

    submitted by /u/Creative-Wonder-4492
    [link] [comments]

    2 Python codes communicating through a third.

    Posted: 23 Jan 2022 10:15 AM PST

    I'm looking for a way to make 2 Python programs commuicate with each others (each one of them will send some inputs to the other and receive a responces) with a 3rd program being between them keeping records of all the messages sent.

    knowing that all 3 programs are on the same machine, How is this achievable ?

    submitted by /u/TheOtherAKS
    [link] [comments]

    Binary Search Problem

    Posted: 23 Jan 2022 04:23 AM PST

    I have to solve a problem involving binary search. Time limit is 4s, but my code is too slow. How can I improve it?

    Problem:

    You are given the array a consisting of nn integers.

    You are also given q queries. The i-th query is the number x_i. The answer on the i-th query is "YES" if the number x_i belongs to the array a (in other words, if a has at least one element x_i) and "NO" otherwise.

    Your task is to answer these q queries.

    Use binary search algorithm to solve this problem. We will look at your code and if it uses some other algorithm it will be rejected.

    Input

    The first line of the input contains two integers n and q (1≤n,q≤10^5) — the length of a and the number of queries, respectively.

    The second line of the input contains n integers a_1,a_2,…,a_n (1≤a_i≤10^9), where a_i is the i-th element of a.

    The next q lines describe queries. The i-th line contains a single integer x_i (1≤x_i≤10^9).

    Output

    Print q lines. In the i-th line print "YES" if x_i belongs to the array a and "NO" otherwise.

    My code:

    #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n, q, a, b, c, h; bool found; cin >> n >> q; vector<int> arr(n); for(int i = 0; i < n; ++i) cin >> arr[i]; sort(arr.begin(), arr.end()); for(int i = 0; i < q; ++i) { cin >> c; found = false; a = 0; b = n - 1; while(a != b) { h = a + (b - a) / 2; if(arr[h] == c) { found = true; break; } if(arr[h] > c) b = h - 1; if(arr[h] < c) a = h + 1; } if(found || arr[a] == c) cout << "YES\n"; else cout << "NO\n"; } return 0; } 

    EDIT: Figuerd it out! The problem was while(a != b), should have written a <= b and done.

    submitted by /u/TheSpaceGuy___
    [link] [comments]

    How can I practice TDD?

    Posted: 22 Jan 2022 02:02 PM PST

    I've read Test Driven Development: By Example by Kent Beck. I need to practice much more until I feel comfortable using it. How can I practice it? Are there any other resources worth looking at?

    submitted by /u/Frequent_Rough7719
    [link] [comments]

    Need help with template classes

    Posted: 23 Jan 2022 07:26 AM PST

    I am studying for a C++ exam at uni, and I came across an object declaration that I have no idea how to implement. The gimmick of the problem is that we are given the body of the function, and we need to add classes, member function, etc. to make it work.

    The part I'm stuck at is the GroupOfPeople. I have no idea how to make that class work, or why it has the Description part in <>, since I have never seen that during the creation of an object.

    Could someone explain to me why its there and how to do it properly?

    namespace Task_2{

    template<class T, class U> class Description{ public: T first; U second; Description(T first, U second) : first(first), second(second) {} }; template<class T, class U> class GroupOfPeople{ public: Description<T, U> desc; string name; GroupOfPeople(const string &name) : name(name){} }; void zadatak_2() { //************************************************************************** // --- 0.5 points --- // The entire code for task 2 has to be within namespace Task_2 using namespace Task_2; //************************************************************************** // --- 3 points --- // Description contains two values (height and hair color) of different types Description<int, string> dok1(180, "blue"); Description<int, string> dok2(172, "black"); //************************************************************************** // --- 3 points --- // GroupOfPeople contains descriptions GroupOfPeople<Description<int, string>> group("students"); // name of the group is "students" 

    /* // adding pairs into the group above

     group.add(dok1); group.add(dok2); 

    // there is more but its not important }

    submitted by /u/Lichmonarch
    [link] [comments]

    Beginner Question

    Posted: 23 Jan 2022 07:21 AM PST

    I want to make an app/ web app to download videos, pics from different platforms (yt, twitch, insta etc.). Where do I start? What technologies do I need to learn in order to build it? General advice? Thanks!

    submitted by /u/Weak_Nefariousness31
    [link] [comments]

    Is there any way to detect the user's system theme preference using JavaScript?

    Posted: 23 Jan 2022 07:01 AM PST

    I'm working on an application that has dark theme and I would like theme to be based on the default system theme(dark or light) rather than being light themed initially and requiring the user to change every single time. Local storage can be an option but I want the theme to change dynamically based on the system theme preference. Is there any way of doing this using JavaScript?

    submitted by /u/wazowski28
    [link] [comments]

    The spreadsheet

    Posted: 23 Jan 2022 02:19 PM PST

    How can I create/implement the spreadsheet by using a directed acyclic graph?

    submitted by /u/rahli-dati
    [link] [comments]

    No comments:

    Post a Comment