• Breaking News

    Sunday, March 28, 2021

    I genuinely suck at 'coding' and I don't know what to do Ask Programming

    I genuinely suck at 'coding' and I don't know what to do Ask Programming


    I genuinely suck at 'coding' and I don't know what to do

    Posted: 28 Mar 2021 04:30 PM PDT

    I put coding in quotes bc it's not coding. I'm a junior in HS taking AP Comp sci principles which uses code.org which is literally scratch. I cruised through the beginning and now I'm stuck. I have to build an app using 3 data sets and a traversal and I sort of have an idea, and I can sort of break it down into smaller pieces, but I don't know how to actually make it into code if you know what I mean. I figured I would ask yall if there was a mindset or something you have to learn because programming is probably what I'm going to major and work in.

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

    Combating Crippling Programming Anxiety

    Posted: 28 Mar 2021 08:46 PM PDT

    Ten years ago, I developed crippling anxiety towards programming halfway into my CS degree where I couldn't even look at code much at all. It's a miracle I even graduated. Fast forward to now where I got my first SE job and this crippling anxiety has come back as my training is finishing up. Has anyone dealt with this and how can I overcome this? I've been trying to think of possibly how to do it.

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

    How to write a GUI?

    Posted: 28 Mar 2021 07:57 PM PDT

    I'm planning on writing a desktop application as a helpful tool and to get more experience in software development but not sure how to go about creating it. I'm knowledgeable in JavaScript and Python, but was thinking now could be a good time to try and learn C#/C++

    I'm also going to be developing and running this program on a Mac, so not sure if C# is a bad choice for that since it's Microsoft?

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

    My new job at a small Rust shop is imposing an "aesthetic guideline" on all employees when it comes to hardware and software. I wasn't informed until after I signed my contract. Is this a red flag?

    Posted: 28 Mar 2021 12:43 AM PDT

    The guideline mandates:

    I find this highly... odd, and I'm not sure what this implies about day-to-day at the office. I start on Monday and I'm a bit concerned. I have no interest in anime, I've never used Mac OS and prefer a Thinkpad with Ubuntu, so right off the bat this will take adjustment before I even start working.

    I've only met the owner and one of the senior devs who interviewed me. They seemed alright, no hints of weird anime obsessions, clean, well dressed, and personable.

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

    Java VM vs .NET

    Posted: 28 Mar 2021 07:17 PM PDT

    So is .NET to C# what Java VM is to Java? Is this even remotely correct? What are the differences? Thanks in advance!

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

    Why do i have to practice?

    Posted: 28 Mar 2021 07:55 PM PDT

    I understand when I study coding + i memorize every code and it's functionality... So why do i have to practice it? And what is the importance of mathematics problems??? Why Math? Why???

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

    Why is javascript regarded as being awful?

    Posted: 28 Mar 2021 07:01 PM PDT

    I haven't used it enough to know the bad parts of it. I've only used it for functions here and there in JSPs

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

    How do I make a library in C and call the functions from it?

    Posted: 28 Mar 2021 09:58 PM PDT

    I am engineer who has worked with python and matlab, and now I am given bigger boy responsibilities of converting some of my code to C for efficiency.

    In python, I could create a file full of functions, my_lib.py, and in my main driver code, I could simply include a line up top that said "import my_lib" and bam, I could use everything from my_lib.py seamlessly.

    In C, I am hitting roadblocks all the time, lol.

    I want to create a simple function called sayHi and put in my library lib.c, so it'll look like:

    #include <stdio.h>
    #inlude <stdlib.h>
    void sayhi(){ printf("hi!"); return; }
    from some reading online, I saw that I need to create a header file, which should look like:
    extern void sayhi();
    now i want to call sayhi() to my main.c file, which is:
    #include <stdio.h>
    #include "lib.h"
    #include <stdlib.h>
    int main() { sayhi(); return 0; }
    However, this does not work.

    Does anyone have any advice, or any resources on how to go about calling functions from libraries? and learning C in general?

    https://www.youtube.com/watch?v=KJgsSFOSQv0&t=5204s <-- this is all the C education I have had. I want to get my job done well, so I really appreciate any advice you have for me.

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

    Always on top gui that processes input in real time

    Posted: 28 Mar 2021 09:54 PM PDT

    I'm trying to create a cheat for this videogame that involves tracking objects around a map.

    I want to create a minimap for this game. If I move, a small dot in the minimap should also move. Being a minimap, it should always be on top, even if a fullscreen app is being used

    https://images.app.goo.gl/FMWczYVngVm5nRCb6

    Something like that.

    Any ideas on where I can start?

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

    Looking for a decent bootcamp.

    Posted: 28 Mar 2021 12:17 PM PDT

    I have about $350 to play with, and I'm looking for something that basically allows me to learn by doing, without the stuff I see with the free Udemy programs so often. This is why I don't know if I should trust them at all. If you want to lure in crowds, you give them something spectacular, not dregs. I need something that has substance to it, is creative, and interactive every step of the way. Anyone have any hidden nuggets of awesome stuff hidden away somewhere?

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

    This is giving me this weird error

    Posted: 28 Mar 2021 11:42 AM PDT

    SET SERVEROUTPUT ON; DECLARE CURSOR cur_location IS SELECT tmname, arena, views, city, country FROM tournament_location; TYPE type_location IS RECORD ( tname tournament_location.tmname%TYPE, arenaname tournament_location.arena%TYPE, viewcount tournament_location.views%TYPE, cityname tournament_location.city%TYPE, countryname tournament_location.country%TYPE ); rec_location type_location; BEGIN dbms_output.put_line(' '); dbms_output.put_line('Tournaments with less than 1,000,000 views'); dbms_output.put_line(' '); OPEN cur_location; LOOP FETCH cur_location INTO rec_location; EXIT WHEN cur_location%NOTFOUND; IF viewcount < '1000000' THEN dbms_output.put_line(rpad(trim(rec_location.tname), 30) || ' ' || rpad(trim(rec_location.arenaname), 25) || ' ' || rpad(trim(rec_location.viewcount), 12) || ' ' || rpad(trim(rec_location.cityname), 10) || ' ' || rpad(trim(rec_location.countryname), 20)); END IF; END LOOP; close cur_location; END; 

    BTW this is SQL.

    The error I'm getting is "ORA-06550: line 15, column 43:

    PLS-00103: Encountered the symbol "VIEWS" when expecting one of the following:

    <an identifier> <a double-quoted delimited-identifier>

    The symbol "<an identifier> was inserted before "VIEWS" to continue.

    1. 00000 - "line %s, column %s:\n%s"

    *Cause: Usually a PL/SQL compilation error."

    Been working on this project where we need tons of queries and this is the first one that has given me any trouble. Any advice or tips would be greatly appreciated.

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

    Is there a website like hackerrank.com that factors in runtime?

    Posted: 28 Mar 2021 05:04 PM PDT

    I'd like to practice a bit

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

    Stuck on recursive problem.

    Posted: 28 Mar 2021 03:46 PM PDT

    I'm stuck on this problem.

    You have a deck of cards(list), you chose a card from one of the ends and then remove from one the ends, how can I calculate the maximum sum of cards I can get?I know I can use recursion, but don't know how use it in this case.
    E.g:

    8 2 4 5 2 1

    Then I choose 8:

    2 4 5 2 1

    And I remove 1:

    2 4 5 2

    And so on.

    How can I go through all the possibilities?

    submitted by /u/Bright-Barracuda1209
    [link] [comments]

    What are phone call screenings like?

    Posted: 28 Mar 2021 02:18 PM PDT

    I have one in a few days. I have had zoom ones before. Having just a phone call is making me nervous

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

    multiplicity

    Posted: 28 Mar 2021 01:53 PM PDT

    1. How would you determine the multiplicity at the end of an association representing a relation between the instances of three classes?

    like i hope im not over thinking this but it's just look at the number in the brackets right? the [1..1] thing?

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

    What should I learn next?

    Posted: 28 Mar 2021 07:23 AM PDT

    Hello guys, I've been programming daily for about 2 years now and have good experience with Java and python, my question to you guys is, what should I learn next? I'm interested in startups and want to make cross-platform softwares, I'm not sure if I want to learn Javascript and start with electron and VUE to build apps and so on or instead get into C/C++, my biggest interests are system administration and AI, so the right choice would be C/C++ but it's so tempting to learn electron for making desktop apps really easy, give my you're advice!

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

    Best GUI toolkit for open source research software

    Posted: 28 Mar 2021 12:55 PM PDT

    Over the past year I've been using Tkinter to develop a data visualization/analysis GUI for a suite of open source computational physics packages. It started as a small side project and my first attempt at a GUI (I have a background in computational STEM and proficiency with a few languages, but I'm very much an amateur) and ballooned into a fairly large project. I designed the application to do quick, on the fly analysis of input/output files while SSH'd into a Linux cluster and I chose Tkinter because it seemed like an easy toolkit to start learning. I also wanted to build a simple, stand alone application that would work without outside dependencies. I would say it's about one third complete at this point and the allure of more aesthetic and advanced toolkits like PyQt has me at something of a crossroads. Should I consider rebuilding the application with PyQt if my end goal is open source distribution to other researchers? Can I expect PyQt to be an available module on nearly every university-level computing cluster? I don't think the overall functionality of the app will suffer too much if I stick with Tkinter because I've gotten better at jerry-rigging my own solutions with the relatively simple widgets available. But the look and feel certainly leave something to be desired.

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

    (C++) decryptCodeSection()

    Posted: 28 Mar 2021 11:39 AM PDT

    So i've recently read a paper on Anti Virus Bypass Dynamics, and in alot of the code i saw this function: decryptCodeSection(). Here's the paper and heres one of the programs that uses decryptCodeSection():

    #define OVER_MEM 10000000

    int main()

    {

    char* memdmp = NULL;

    memdmp = (char*)malloc(OVER_MEM);

    if (memdmp != NULL)

    {

    memset(memdmp, 00, OVER_MEM);

    decryptCodeSection();

    startShellCode;

    }

    return 0;

    }

    I've seen these in most of the effective bypass methods but there is never an explanation of how to make this function. I havent really found alot of useful articles on this as most of the stuff on encryption if seen online or on youtube is on encrypting strings and numbers (which i can already do) but i could not find a way to "decrypt a section of the code". Lets say you have a generic int main() function on printing a string:

    #include <iostream>

    using namespace std;

    int main() {

    std::cout << "Hello";

    system("pause");

    return 0;

    }

    So what if the memdmp Bypass code was apart of thast script, how would you encrypt/decrypt the int main()? Do you know a method of doing this?

    Thanks in advance :)

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

    Honest Question, Looking For Honest Answers

    Posted: 28 Mar 2021 11:32 AM PDT

    I am relatively new to programming. I understand the very basics about how to set up an html, especially in such a way that i can use javascript code in it, and i know a little bit about javascript. as you can probably tell already, im not experienced by any means. ive seen some amazing things done on other subreddits and ive also seen some really interesting youtube videos (specifically by The Coding Train) and now I want to get serious about learning code. Where should I start? What language should I really fully learn first? I like JS a lot (even though i see a lot of trash talk towards it lol) so would that be a bad first language to learn? any advice would be amazing, thank you guys!

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

    Best book about basics of programing, regardless of language

    Posted: 28 Mar 2021 07:32 AM PDT

    I hope this is the right place to ask this; if not, sorry.

    I'm wondering what you think the best book about the basics of programing is, regardless of language.

    I'm learning JavaScript and I have half a dozen books on the subject. Even the better ones focus on techniques rather than concepts. That is to say, how to do something in Javascript rather than what something is and what its purpose is. E.g. the first time I came across recursion, first-class functions or higher-order functions (to name but a few things) I had to put the books to the side and consult Wikipedia. I was deep into prototypical inheritance before I found out I didn't know values vs references.

    I'm not looking for Javascript-specific books, I've either seen them or know about them. I'm wondering if you know of any books on elementary programming principles, hopefully ones that transcend language.

    Thanks in advance.

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

    Databases! Where to start...

    Posted: 28 Mar 2021 09:54 AM PDT

    I have done a lot of googling on the below, but i'm still a little confused as to which direction to move in. The application is the following -

    I work with a vessel that has crew members (employees), they must hold different emergency roles on board. The roles which they can hold depends on their qualifications (which also have expiry dates) Each time a crew member leaves the muster list is updated, this is a printed report outlining each role.

    In the future i'd like the database to email the crew member when their certs are about to expire too, is this something that would be possible?

    Now it would be my understanding that this sounds like a job for a relational database...

    I'd like to move into other programming languages and i'm looking to create a front and back end for the above problem. What languages/ applications would you recommend that I start learning. I understand that this could be done on Access too but i'm looking to use this as a learning opportunity.

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

    Which jvm language is easier to learn Scala, Kotlin or Clojure?

    Posted: 28 Mar 2021 08:56 AM PDT

    I need your help comrades! Please...

    Posted: 28 Mar 2021 07:18 AM PDT

    Howdy Comrades! I have a doubt that has been drilling my mind and I still can't find an adequate answer in Google and if you could help me, you will have all my virtual thanks.

    Maybe this is a pretty simple question for many of you, but I'm starting the 3rd year of computer engineering and believe it or not, I haven't been taught anything about this yet.

    My question is: How can I mix different programming languages in a software and also in a mobile application? For example, I have a free API that is in ruby but a part of my software is in Java and I want to put it together obviously to perform x's functions.

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

    My programma in c does not work. Teacher is sick. And i wasted 5+ ours on finding the issues.

    Posted: 28 Mar 2021 05:31 AM PDT

    Its a program that is a digitale clock on lcd 16x2 using a atmel 328p.

    my issue is is that i can only display seconds. If i do second and minute's for example. My lcd does not display anyting.

    Msteller is int that gets +1 every 1ms by a timer i added the lib parts of analoognaarstring and tekstnaarlcd.

    I commented al unnecessary lines to make seconds function for testing. I added the hole code so it the most clear.

    Any help would be appreciated

    Code

    ifndef F_CPU

    define F_CPU = 160000000UL

    endif

    include <avr/io.h>

    include <LIB_ED_JV/LIB_ED_JV.h>

    include <string.h>

    int tempmsteller;

    uint32_t int_seconden = 0;

    /* uint32_t int_minuten = 0; uint32_t int_uren = 0; */

    char string_seconden[2];

    /* char string_minuten[2]; char string_uren[2]; char string_totale_time[8];

    uint8_t setup_uren = 0; uint8_t setup_minuten = 0; */

    uint8_t setup_seconden = 25;

    int main(void) {

    LCDinit(); //init LCD bit, dual line cursor right LCDclr(); // clear LCD LCDGotoXY(0,0); // plaats cursor op 0,0 LCD Analog_Write_PWM(PWM0,10); //backlight dimming

    TekstNaarDisplay("klok v1",0,0); _delay_ms(2000); LCDclr();

    while (1) { tempmsteller = (msTeller) + (/*(setup_uren*3600000) + (setup_minuten*60000)*/ + (setup_seconden*1000)); int_seconden = ((tempmsteller/1000)%60); 

    /* int_uren = ((tempmsteller/3600000)%24);

     int_minuten = ((tempmsteller/60000)%60); 

    */

     Analoog_naar_string(string_seconden, int_seconden,2 ,'0'); 

    /* Analoog_naar_string(string_minuten, int_minuten,2 ,'0'); Analoog_naar_string(string_uren, int_uren,2 ,'0'); */ TekstNaarDisplay(string_seconden,0,0);

    /* strcpy(string_totale_time, string_uren); strcat(string_totale_time, ":"); strcat(string_totale_time, string_minuten); strcat(string_totale_time, ":"); strcat(string_totale_time, string_seconden);

     tekstNaarDisplay(string_totale_time,8,0); 

    */

    } 

    }

    /* void Analoog_naar_string(char Tekststring[16], uint32_t Getal, uint8_t MinAantalKar, char Aanvulling) { char TmpTekststring[16]=""; utoa(Getal,TmpTekststring,10); size_t lengte = strlen(TmpTekststring);

    if (MinAantalKar>lengte) { for (uint8_t i=lengte;i>0;i--) { TmpTekststring[(MinAantalKar - lengte + i - 1)] = TmpTekststring[(i-1)]; } for (uint8_t i=MinAantalKar-lengte;i>0;i--) { TmpTekststring[i-1] = Aanvulling; } } for (uint8_t j=16;j>0;j--) Tekststring[j-1] = TmpTekststring[j-1]; 

    } */

    /* void TekstNaarDisplay(char tekst[40], uint8_t xpos, uint8_t ypos) // Deze routine stuurt een tekststring (woord of string van max. 40 karakters) naar de gewenste locatie op het display // Pre-parameters zijn de tekststring, gewenste xpositie (0 t/m 15) en y-positie(0 of1 tbv regel) // Deze routine heeft geen post-parameter. { if (LCD_is_Set==0) //eerste keer initialisatie uitvoeren { LCDinit(); LCDclr(); LCD_is_Set=1; } if (ypos>1) { xpos+=16; // bij 4 regelig display gaat regel 0 over in regel2 16+ 16 karakters. regel gaat over in regel 3 ypos-=2; // We zetten de cursor via regel 0 of 1 naar 2 of 3 } LCDGotoXY(xpos, ypos); // cursor op de juiste plaats zetten size_t lengte = strlen(tekst); //bepalen van lenhte van de tekst, voor het aantal te versturen karakters for(uint8_t teller=0;teller<lengte;teller++) // aantal keren (AantalKar) een karakter op het display plaatsen { LCDsendChar(tekst[teller]); //verzend karakter per karakter } }

    */

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

    No comments:

    Post a Comment