• Breaking News

    Tuesday, June 9, 2020

    Google FooBar glitched on me :/ Ask Programming

    Google FooBar glitched on me :/ Ask Programming


    Google FooBar glitched on me :/

    Posted: 09 Jun 2020 08:22 PM PDT

    So a while back, I got invited to the Google Foobar challenge. Excited but confused, I opened it up, and then quickly opened another tab to do some research on what it was and what it meant. However, when I returned to the FooBar page, it sort of flashed at me and then reloaded asking me to sign in - though you can only do so if you've completed the first part of the challenge and linked you account apparently. Has this happened to anyone else? Can I get back to actually attempting it or do I have to wait for it to find me again (if it even does)?

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

    How do i know if programming is really for me?

    Posted: 09 Jun 2020 08:14 AM PDT

    I love programming. I chose software engineering as my major. I didn't know anything about computers let alone coding. I came into this course thinking monitors was a rich people thing and everyone else just used computers.

    Its been 7 months since I've started learning c++. 2 of those months were spent learning and sharpening my basics and making a final coursework program. My program would devise menus for a user based on their needs and crosscheck their details and so on. It was inspired by wysa. Im really proud of it. Then for two months we had no teacher so i was just programming for fun on my own and dabbled in C#. I loved programming. I love watching it come together. I love planning a program. And i love learning new bits and pieces of code. I'd program for fun. Had a bad day? Programming will cheer me up.

    Then we got a new teacher. Corona also hit so everything moved online. We've had this teacher for two months and he isn't a very good teacher. He's very smart but i dont think being a teacher is for everyone. Its sad because his love for programming is so evident. Our group talked to the staff about it as well. In the end nothing happened. Since we only had two months left the course was also very sped up.

    I did most of my learning on my own. It took me a long time but i can now design uml diagrams really easily and instead of reverse engineering my diagrams from the code i can now relatively confidently make a code from my diagrams. Im proud of this because sir mentioned students still struggling with it.

    I also taught myself oop. This was also hard for me as i struggled with it even in c#. Now i can do oop relatively confidently too.

    But im still a slow person. My first computing lecturer told me I'm smarter than i think and that i pick up things fast but i dont see it. Im slow and i get confused easily. Doing mental maths for loops can be hard for me as the numbers start confusing me. I have a my final coursework due on monday.

    I have to learn unit tests and merging 3 ncurses and one oop into one program. That's all that is left. I know i wont be able to do it. I know i love coding so I'll 'perfect' my code after it's submitted and i can focus on it at my pace. Its just times like this i think i should change my major. Im slow, bad with numbers, easily confused and get overwhelmed easily too.

    I see my friend. They have an iq of a genius and have been doing c++ since they were in school. All of my friends have coding experience or are getting their work done by others and i feel so dejected. Liking something isn't enough...i should be good at it.

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

    Why does the recursive function give a stack trace error in the following C code?

    Posted: 09 Jun 2020 10:49 PM PDT

    I have the following C code using command-line arguments. The iterative function is called for example via main.exe 0 2 and the recursive via main.exe 1 2. The iterative works properly but the recursive returns a vague stack trace error that I can't fix for the life of me.

    #include <stdio.h> #include <stdlib.h> #include <math.h> int iterary_binsearch(int [], int, int); int recursive_binsearch(int [], int, int, int); int main(int argc, char** argv) { int A[25] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97}; int key = 0; int q = 0; int n = sizeof(A) / sizeof(A[0]); int zero = 0; if (argc == 3) { key = atoi(argv[2]); if (atoi(argv[1]) == zero) { //iterary if (iterary_binsearch(A, key, n) > -1) { printf("element is at index %d", iterary_binsearch(A, key, n)); } else { printf("element is not in array"); } } else if (atoi(argv[1]) == 1) { //recursive if(recursive_binsearch(A, key, q, n) > -1) { printf("element is at index %d", recursive_binsearch(A, key, q, n)); } else { printf("element is not in array"); } } else { printf("improper argument passed"); } } else { printf("improper number of arguments"); } return 0; } int iterary_binsearch(int A[25], int key, int n) { int p = 0; int r = n - 1; int q; while (p <= r) { q = floor((p + r)/2); if (A[q] == key) { return q; } else if (A[q] < key) { p = q + 1; } else if (A[q] > key){ r = q - 1; } else { return -1; } } return -1; } int recursive_binsearch(int A[], int key, int q, int n) { int p = 0; int r = n - 1; if (r >= 1) { q = floor((p + r)/2); if (A[q] == key) { return q; } else if (A[q] > key) { return recursive_binsearch(A, key, q - 1, n); } else if (A[q] < key) { return recursive_binsearch(A, key, q + 1, n); } else { return -1; } } return -1; } 
    submitted by /u/engtaker
    [link] [comments]

    ELI5 please difference between servlet container and application server

    Posted: 09 Jun 2020 06:36 PM PDT

    10 Useful Visual Studio Extensions

    Posted: 09 Jun 2020 08:27 PM PDT

    What are the coolest hacks and tricks in your trade, especially ones for novice users/programmers and general tech enthusiast?

    Posted: 09 Jun 2020 08:02 PM PDT

    I am always hearing about neat little tricks people know or have come across in all areas of technology. I am a general lover of technology and programming and would love to take a broad step in hearing some general fun aspects about different areas I may not have a clue about.

    I am simply here to learn more about tech.

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

    Standalone project using Google Sheets API and Gradle

    Posted: 09 Jun 2020 04:06 PM PDT

    So I', creating a standalone project for a buddy of mine using Java Swing. It's basically just for querying and adding entries to a google sheets page. My question, however, is how can I take what i currently have in Eclipse, and turn that into an exe or other runnable file, so all my friend has to do is download the application and run it for it to work?

    If it helps, I am using Gradle, as as far as I'm aware, Google Sheets requires this.

    Thank you for any help!

    submitted by /u/Emergency-Visit
    [link] [comments]

    What do I need for to develop this app?

    Posted: 09 Jun 2020 07:35 PM PDT

    Sorry if this is the wrong subreddit but I didnt find a more suitable one.

    I plan to develop a desktop app for Windows (7 and up).

    What I want it to do, is for the app to pop up a form, you fill it and it will record that info in a table format (if needed be, also be able to edit an already saved entry).

    Then if chosen, I want to be able to select one of those entries and the app will print them in a certain way (for example in the printable format I will have 3 circles each representing a choice, depending on the choice selected it will fill the corresponding circle and leave the others empty, stuff like that).

    At last, if posible, export the contents of the table in an excel readable format (to graph, unless the app can do that as well).

    I am NOT asking for someone to do this for me, but an indication for where to start.

    Currently I have it in Excel VBA format, but at least as I have it now, its not as bullet proof as I want it to be. I want an app that anyone can use and you can click X or Y buttons and it shows you the graphs and stuff you want to see very easily.

    Edit: languages I am familiar with: html5, css3, javascript, vba, c# and python (these two a little bit)

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

    Ethical hacking as an end goal

    Posted: 09 Jun 2020 07:32 PM PDT

    I've just completed my first edx course in python, and have been mulling about as to what my end goal would be. It seems that the big question of "what to do next" is always answered with "what do you want to do for a career?"

    I have someone very close to me who is in network security, and from my description of what I seem to think I want to do they've recommended ethical hacking. If there's a better term for it please enlighten me.

    So what next? I can't go back to school, I've already got enough student debt. There are a bunch of classes and programs on edx but I honestly have no clue what to pick next. I can't afford the crazy expensive boot camps right now, but let's be honest with most of the country (US) still shut down I don't think they're running anyways.

    I really enjoy python, and naturally figured I should further my education with that? I know this isn't usually the kind of question asked on here but I figured you guys would be a great place to start.

    Thanks if you stuck through this!

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

    Want to learn how to program for hobby. Where should I start. Have a simple project in mind.

    Posted: 09 Jun 2020 05:51 AM PDT

    Hello, thanks you for looking at my post.

    The project I have in mind is to design a program that will go to a website daily and take data (a number x.xx and out put it into an excel file. What language would work best with this? Where do I start?

    I have very basic knowledge of HTML from when I was a kid and designed my own simple web page in early 1990s.

    Thank you for your time,

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

    Destroying inanimate objects

    Posted: 09 Jun 2020 04:47 PM PDT

    Most of the time I find writing software quite relaxing however yesterday I destroyed the chair in my home office after a particularly frustrating couple of weeks trying to finish some software. I have previously shattered an iPhone by throwing it on the floor.

    I was wondering if anyone else had the occasional (~1/year) war against inanimate objects or if it is just me?

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

    C++ dereferencing question

    Posted: 09 Jun 2020 04:30 PM PDT

    So I have C++ (yeah I'm new to compiled code) that I am trying to debug/make simple changes to:

    Here are it's 3 steps:

    1. a pointer to an array is declared at the top. Let's call that constant

       const 8bytedatatype* myConstant; 
    2. Then later we have an assignment:

      myConstant = obj->methodcall(); 

    obj is it own type:

    objtyp* obj; 
    1. Finally there is a simple while loop:

      while(**myConstant){ ..do stuff... } 

    My coworker commented out #2, and he still enters the while loop once at #3. I leave it in I do not. Why is it true in his case and not in mine... Have python experience to a fair extent, but confusing myself here. In my case, after step two I get a sizeof 4 on my constant. But if I cout a member i.e. myConstant[2] or anything it's blank.

    Don't want to be handheld, just want to understand what is happening so I can think for myself.

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

    Which language to prioritize to sharpen my knowledge and skills?

    Posted: 09 Jun 2020 12:35 PM PDT

    TL;DR: I want to sharpen my knowledge and skills in Data Structures and Algorithms via utilizing online sources to practice such as CodeForces, LeetCode, HackerRank etc. I know C and Java, I will definitely need to learn C++ and Python for the courses I will take in the next semester. Which language do you suggest me to prioritize, C++, Python or Java?

    Question in TL;DR, below is my background to inform you such that I can get a healthy feedback.

    I am a university student who is majoring in Electrical and Electronics Engineering and I am having my double major in Computer Science. I am about to complete my third year. Throughout my education in the university I have taken (excluding the courses that are unrelated to my question)

    • Introduction to Programming (Taught by using C progamming language)
    • Object-Oriented Programming (Taught by using Java)
    • Software Engineering
    • Data Structures
    • Algorithm Analysis

    courses.

    In addition to that, in Software Engineering course I have completed a term project using Java with a team of 4 members (including me). One group member was doing the GUI part and another one was handling the database, I and the other member wrote a web crawler and completed the backend in general. In one of my interships I had completed an embedded systems project using C programming language, where data acquired by one microcontroller (master) and sent to another one (slave) and processed by it. In my other internship, I was given the task to acquire data coming from an embedded system (handled by another team, I was Android device part) via Bluetooth to an Android device and process it. Thus, in that one I have used Java and AndroidStudio.

    So, I have some experience with C and Java. Also, I am planning to take a course where students are expected to complete a project using C++ and Machine Learning course where the homeworks are completed using Python (I have some experience with that, not much though). Lastly, I have solved some question from ProjectEuler and I quite enjoy it, however, I don't think that I am competent enough and I want to work on my problem solving skills, Data Structures and Algorithms knowledge.

    It is my first post in Reddit and I am sorry if it is not well structured. Thank you for your answers.

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

    What’s this in simple words or terms lol... as in what does the client log do, and what does it essentially mean is going to biggstop sync client

    Posted: 09 Jun 2020 03:56 PM PDT

    WARNING ComGoogleAppsBigtopSyncClientImplLabelsVisibleVisibleLabelFactory/main(1): Label map of visible labels is empty for thread thread-

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

    Flag Text on Screen

    Posted: 09 Jun 2020 02:30 PM PDT

    I work for a hotel and we have a list of people we don't rent to on a piece of paper. I would like to be able to have a program that I can give the list of names to and whenever someone types that name into a reservation it has some sort of flag saying they are on the do not rent list.

    I did some googling for an already made program that searches your screen for text or monitors inputs in a text field but came up empty, so any ideas would be greatly appreciated! Thanks in advance

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

    Concatenate two .csv files into one using .bat file

    Posted: 09 Jun 2020 08:29 AM PDT

    Hi I'm trying to figure out a way to add a single cell to an existing document. The cell will always be the same and will always be placed at the first of the existing .csv file.

    The csv I'm adding to is an extract that is coming out of an application, however; I'm unable to get that "header" into the application.

    I've saved what I needed to add as a separate csv file, I'm trying to determine a .bat script to run to combine those documents.

    Can anyone help me out?

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

    Try in your free time Pirates of the Caribbean | Game of Thrones | Nokia Tone | Pink Panther Theme Songs Using Arduino Musics

    Posted: 09 Jun 2020 11:47 AM PDT

    How to download files to Google Drive using Google Colab?

    Posted: 09 Jun 2020 07:37 AM PDT

    I've been using this code to mount Colab with Google Drive and download any file by pasting in download URL but I have noticed that it take quite long even though the files are few megabytes in size. Is there anything that can be done to improve it.

    **First cell:**

    from google.colab import drive

    drive.mount('/content/gdrive')

    root_path = 'gdrive/My Drive/'

    **Second cell:**

    import requests

    file_url = "DOWNLOAD URL HERE"

    r = requests.get(file_url, stream = True)

    with open("/content/gdrive/My Drive/FILE NAME HERE", "wb") as file:

    for block in r.iter_content(chunk_size = 1024):

    if block:

    file.write(block)

    submitted by /u/mr-mtg
    [link] [comments]

    Could you write a fully functional practical program in Scheme(Lisp)?

    Posted: 09 Jun 2020 11:07 AM PDT

    How can I automate this chemistry software?

    Posted: 09 Jun 2020 10:50 AM PDT

    This is using a chemistry software that allows you to visualize molecules in 3D--I want to be able to take saved files of a chemical fragment using this software, combine them to form a new fragment, and save as a new file. The functionality to combine them works within the software, (as does the ability to save it) but I don't want to have to manually combine them every time. I have no idea how to begin automatically doing this; can anyone point me in the right direction of where to look/know if this is possible?

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

    I'm looking bot analysis and related resources. Help?

    Posted: 09 Jun 2020 10:30 AM PDT

    Specifically stuff like Bot Sentinel. Books, resources, plugins, apps, papers, or whatever is out there about bot detection. I'd like to better educate myself on how to detect them.

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

    Assembly map drawing

    Posted: 09 Jun 2020 07:06 AM PDT

    Hi Can anyone draw this Assembly map and how many bytes does this take?
    I'll appreciate this

    X DB 'PLEASEWAIT'
    Y DW 4DUP(?)
    Z DD 35000,42000

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

    No comments:

    Post a Comment