• Breaking News

    Friday, April 23, 2021

    I developed an app that only shows positive news! learn programming

    I developed an app that only shows positive news! learn programming


    I developed an app that only shows positive news!

    Posted: 22 Apr 2021 07:33 PM PDT

    I recently developed an app that is based around happiness and only showing positive news, as well as jokes and cute videos of animals.

    Especially during a time like this where headlines are full of negativity and millions of people struggle with their mental health, I wanted to make an app that could brighten someone's day.

    The app uses a sentiment analysis AI to filter out the negativity and only show news that is uplifting.

    It would mean the world to me if you could take a moment out of your day and download the app, and if anyone has any feedback I would love to hear it!

    The app is free on the app store here:

    App Store: https://apps.apple.com/us/app/lapis-news-only-the-good-news/id1527590034

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

    My first real coding project!

    Posted: 22 Apr 2021 06:24 AM PDT

    Today I finished my first real coding project! It's an image to ascii text converter that I wrote in Rust. It was really fun to make and I think that it turned out well! If you want to see the project, here's the github page. If you see anything that I could improve upon and told me, that would be great!

    Note: This post is actually a week or two old, I just forgot to post it and it's been sitting in my "drafts" folder for a while

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

    CS degree - almost done and haven't learned how to apply the things I've learned

    Posted: 22 Apr 2021 07:01 AM PDT

    I'm a 4.0 CS student with one semester left, and honestly I feel like I barely know how to program. Is this typical?

    It worries me that I'm going to be entering the job market knowing so little. I know how to write very basic C++ code, but that's about it. I don't understand how to apply any of the things I've learned to a "real" project. Most of the classes I've taken are bullshit, easy A's taught by adjuncts with very little practical content.

    The most real program I've written is maybe 1000 lines of Arduino code for a lab project, but I have no idea if my style is good or my code makes sense. They don't give us any feedback on our code, just grade us on if it works or not.

    I think my school's CS program is particularly shit, but I'm just hoping employers don't care that I know essentially nothing. I would fail miserably if quizzed on anything even moderately advanced during an interview.

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

    Finally I built my first REACT APP.

    Posted: 22 Apr 2021 09:22 PM PDT

    Hello Everyone, I wanted to post and tell you guys I have built my first simple React App. Here's the code: https://github.com/mraza007/PokeDEX.

    Anyways you guys might be wondering why the hell I am just posting my simple dumb react app but this not the goal of the post. The reason why I am posting is this because sometimes we are scared to learn something new especially if we are told that in the beginning this technology is going to be hard to learn as the learning curve is steep so your fear stops you from learning that technology and you end up not learning that technology or keep getting away from learning that technology, For instance, in my case it was learning React, As I always avoided learning React , the learning curve was steep and it was difficult to grasp the concepts.

    But over the past few weeks I finally decided to get out of my comfort zone and decided to learn React and let me tell you guys it has been the best decision I have made while learning React I was able to realize how it has made so many things easier in the frontend world as you can use it build for mobile and desktop at the same time.

    So moral of this is that always get out of your comfort even if the things are going to be hard but if you keep trying things will start to make sense and once you start building things you'll feel great.

    Last but not least I am still learning React and I have long way to go so if you have any advice It would be appreciated.

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

    Veteran programmers - Do you read a lot?

    Posted: 22 Apr 2021 09:53 PM PDT

    I have a problem from the field I'm usually interested in, for which to model it I will have to learn to use databases and object oriented design principles, so I'm learning programming now. Enjoying this a lot.
    Does part of your practice involve reading and contemplating programming as much as actual coding?

    Probably a bad analogy, but I recall Stephen King once saying that an equally important part of being a writer is being a reader. So what's the reading you do?

    Side question, what's your favourite book on OOD?

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

    What is the difference between a query and transaction

    Posted: 22 Apr 2021 10:39 PM PDT

    I am beginner getting into SQL and unable to understand the difference between the two. From my textbook it mentioned how a query will cause data to be retrieved but a transaction will cause some data to be read and some data to be written into the database. Does this mean SQL statements like INSERT would count as a transaction since we are directly writing to the database by inserting something?

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

    New grads - ramblings about getting a job

    Posted: 22 Apr 2021 12:13 PM PDT

    My ramblings for new grads who are job-hunting:

    1. Employers understand you're a new grad. They don't expect you to know everything.
    2. A job description that includes every technology known to man doesn't mean they want you to know everything known to man. Sometimes it's written by HR and sometimes it's written specifically for one person whom they already know they are going to hire. Apply anyway.
    3. Know the difference between a direct hire and an agency hire. An agency will 'place' you for a shorter term and hopefully have another job for you when your contract is up. A direct hire, especially with a larger company, is more of a career-path situation and will probably pay less money but have better benefits.
    4. Learn the term 'temp-to-hire.' That means if they like you they may keep you around after 6 months or a year or some short time frame. IMHO that stinks and is not in your best interest. If the company isn't willing to invest in you, don't waste time on them.
    5. An agency is *generally* not a good fit for a new grad. They look to place developers who can hit the ground running on Day 1 (well, Day 2 after 8 hours of HR nonsense) and be productive almost immediately. If an agency expresses great interest in you as a new grad, be wary that they are just casting a wide net and they need to get their numbers up so it looks like they are submitting a lot of resumes.
    6. An agency rep is not your friend. They want to place you and make a buck. That's fine, but too often they will make you think they love and adore you: then all of a sudden they don't take your phone calls any more. That's how the business works: don't take it personally.
    7. Whatever you get hired to do, you won't be doing it in 3 years. You just won't. Technology changes, job responsibilities change, you change. If it seems awful and it's a foot in the door, maybe you really should jump on it.
    8. Cover letter, cover letter, cover letter. Write a custom cover letter for every resume you send out. The HR department will read it even if no one else does.
    9. Don't burn bridges. Build your network of contacts slowly and persistently. Hold on to email addresses, and LinkedIn connections. Make notes so when you talk to that person in a year you can ask them how their 12 year-old is liking youth soccer. Make connections with people.
    10. Do you want a career or a job? Both are OK. Are you willing to pay your dues at P&G or IBM in order to advance over time? You have to decide.
    11. Is a start-up OK? Are you willing to take a risk in order to possibly cash in later? Instead, do you want the relative security of a big company that might be able to find work for you if the economy slows?
    12. Spin. If asked "Do you know SQL Server?" answer positively: "I know MYSQL and it is similar. I'm sure I can make the transition."
    submitted by /u/nicompnicompnicomp_
    [link] [comments]

    Working on Test Driven Development project (Virtual Pet Shelter in Java), but I can not get the Test to pass. exhausted all other options. Please help if you can.

    Posted: 22 Apr 2021 09:52 PM PDT

    Hello! I am working on a test driven project for the virtual pet shelter in intellij but my code keeps failings. I can not figure out what I am doing wrong and I have exhausted all of my options to find a solution. The answer seems to simple but idk.

    Here is what I have so far:

    VirtualPetShelterTest.java

    public class VirtualPetShelterTest {
    private VirtualPetShelter underTest;
    @/BeforeEach
    public void setUp() {
    VirtualPetShelter underTest = new VirtualPetShelter();
    VirtualPet myPet = new VirtualPet("Bulma", 50, 50, 50);
    VirtualPet myPet2 = new VirtualPet("Arasu", 50, 50, 50);
    Collection<Object> pets = underTest.pets();
    }

    //intake//
    @/Test
    public void shouldBeAbleToIntakePetToTheShelter() {
    VirtualPet myPet = new VirtualPet("Bulma", 50, 50, 50);
    VirtualPet myPet2 = new VirtualPet("Arasu", 50, 50, 50);
    int beginningSize = underTest.getAllPets().size();
    underTest.addPetToShelter(myPet);
    underTest.addPetToShelter(myPet2);
    int endingSize = underTest.getAllPets().size();
    assertTrue(endingSize > beginningSize);
    }

    VirtualPetShelter.java

    public class VirtualPetShelter {

    Map<String, VirtualPet> shelter = new HashMap<String, VirtualPet>();
    private Map<Object, Object> pets;
    public Collection<Object> pets() {
    return pets.values();
    }

    public HashMap <String, VirtualPet> getAllPets() {
    return (HashMap<String, VirtualPet>) shelter;
    }

    public void addPetToShelter(VirtualPet myPet) {
    shelter.put(myPet.getName(), myPet);
    }

    i hope I formatted this right. please help.

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

    How do I make my website work on all browsers?

    Posted: 22 Apr 2021 11:37 PM PDT

    On local and chrome looks good but for mozila and explorer doesn't look good. Any solutions?

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

    HTML Tables obsolete?

    Posted: 22 Apr 2021 04:28 PM PDT

    So I went back and started to learn more HTML through other sources and I came across tables which I hadn't heard of before.

    They almost seem like the precursor to CSS. They also seem to utilize a lot of code.

    My question is, are they obsolete??

    Thanks in advance for all answers!

    submitted by /u/Many-Text8747
    [link] [comments]

    Attempting to learn code

    Posted: 22 Apr 2021 06:56 PM PDT

    Hello! Recently, I have been extremely interested in coding, and the robotics competitions offered around my county. Seeing the things people could make with different parts, ideas, and goals astounded me, and I was wondering if I could have some advice. If I were to begin learning robotics, what language would be the best for me to use/learn? Thanks!

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

    java projects...

    Posted: 22 Apr 2021 10:19 PM PDT

    As a Beginy Looking for Some good java projects to keep in my CV suggestions..

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

    Any Bay Area developers want to go get a coffee with me next week?

    Posted: 22 Apr 2021 09:09 PM PDT

    In about 2 days I will be visiting my home town of Hayward, Ca for about 5 days. If there are any bay area developers here willing to go get a coffee and let me ask them a bunch of questions about real world coding(their job and experience) and what I could/should study to become useful in the modern coding world, please message me.

    I live fairly remote on the pacific coast of Mexico and my only Mexican coder friend lives an hour and a half away and he actually works remotely for a company that is in a City 2 hours further away than that, so that is why I am asking haha. Online advice and phone advice is awesome but being able to actually talk to someone in person would be priceless as i love asking questions :)

    I have been studying C/C++/C# languages so far. But anyone would be welcome. It could be any time Monday through Thursday this coming week.

    If there are no takers, that's fine and understandable but I really had to ask just in case as I do not go back home to the bay area often :)

    Thanks

    BTW, If anyone is interested I could even give you a free flamenco guitar lesson for your time. Playing and teaching flamenco guitar was how i made a living when I was living in the bay area.

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

    LINK : fatal error LNK1561: entry point must be defined

    Posted: 22 Apr 2021 06:21 PM PDT

    I am trying to run assembly code

    global _start section .text: _start: mov eax, 0x4 mov ebx, 1 mov ecx, message mov edx, message_length int 0x80 mov eax, 0x1 mov ebx, 0 int 0x80 section .data: message: db "Hello world!", 0xA message_length equ $-message 

    I found online, for them it works but I can't compile it

    I use NASM for windows nasm -f win64 -o hi.obj hi.asm hi.asm being my assembly code, this works fine but I try to compile the object with the visual studio code compiler cl hi.obj this returns the error in the title, but trying to compile a C script

    #include<stdio.h> int main { printf("Hi"); return 0; } 

    Works fine with cl when I do cl hi.c

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

    Containerization

    Posted: 22 Apr 2021 11:17 AM PDT

    I saw that a lot of companies and programmers use Docker/Kubernetes and I don't have a good understanding of what exactly containers are used for, why and how should I learn it. Could someone explain to me what are they, and why are they useful? And if someone know how to learn them can tell me?

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

    I made a side-project to convert your directory with CSV/Excel files into a SQL database (and vice versa)

    Posted: 23 Apr 2021 12:16 AM PDT

    I recently made exql to quickly convert a directory with CSV/Excel files into a MySQL DB.

    It converts directories to schemas and csv or excel files within that directory into tables.

    Also, have functions to add a single table to an existing database, insert rows in an existing table, write database, tables to directory, csvs', delete based on provided csv, etc The module is installable from PyPi: pip install exql

    Any suggestions would be highly appreciated 😃

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

    I created a new video community to learn from each other

    Posted: 23 Apr 2021 12:15 AM PDT

    It's doesn't matter if your an expert or a newbie or you work at tesla already YOU ATE ARE WELCOME HERE the purpose of this video chat channel is to motivate each other and learn from each other, give us advice and the like. Hope you can join us there are newbies and experts alike. OK so the link to join IS. I THINK IT DOESN'T MATTER WHAT LEVEL YOU'RE AT YOU CAN ALWAYS CONTRIBUTE SOMETHING

    Whereby.com/machinelearning101

    If you have any suggestions let me know! Cheers for all the insomniacs who want to make a career about of this. Everyone is welcome no matter your level we can all learn from each other!

    So come join NOW!

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

    I think i made a mistake can someone give me advice

    Posted: 23 Apr 2021 12:08 AM PDT

    I learned some basics of javaScript on my own for like a month and i applied for a job in interview they asked me some question about javaScript which were pretty basic and gave me a simple problem and i solved it, then they told me to join then after i started working they started to give some basic level stuff at start which i thought was really tough and a couple of weeks they started to give me tasks from back end which was php (lumen framework) its been two months since started i still cant understand lumen I think i made a mistake by joining a job too quickly

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

    How to learn hacking/Making exploits/ ?

    Posted: 23 Apr 2021 12:00 AM PDT

    I want to hack facebook,google,fbi,. (everything)

    (I will not use for bad purposes but just warn them with big words "YOUR SECURITY IS CRAP")

    submitted by /u/Psycho-logical-being
    [link] [comments]

    How in bobs tomatoes do I create client>server>client interactions in HTML / JavaScript?

    Posted: 22 Apr 2021 02:10 PM PDT

    Hey! I started learning HTML and JavaScript about a month ago, and I've managed to create quite a few little programs. Last week, I managed to set up IIS on my home computer and access a little dinky website from my laptop over the internet. Despite a few dodgey looking connections from somewhere in Nigeria, the website seems to be running OK.

    Recently however, I've been considering the potential of client to client interaction through a server. What I would like to do is have it so when people connect to the site, they see a button and when pressed it changes the background colour or something along those lines, and all other users connected to the site would see the background colour change as well.

    Creating this in JavaScript and HTML and having it be 100% client side would be fairly easy for me. The problem I have, is having the interaction with the server. My current idea would be that when someone clicks the button, it sends over something like "button clicked" to the server. Then I'd have all the clients have a loop that sends a request to the server every second to check if the colour has changed. If the server received a "button clicked", then it would send over a "yes" or "colour changed to red" to the clients which would then update the code accordingly.

    So, would anyone be able to refer me to any resources on how I could get this to work? I have absolutely no idea how or where to go about this. Thanks much!

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

    Multi-threated face detection. Python/OpenCV

    Posted: 22 Apr 2021 08:02 PM PDT

    I have a script for single-threaded sequential face detection in a photo, and a script for cutting out faces. How do I convert to multithreading? So that the images are not processed sequentially, but simultaneously, parallel to each other.

    import os
    import cv2
    import numpy as np

    # Define paths
    base_dir = os.path.dirname(__file__)
    prototxt_path = os.path.join(base_dir + 'data/deploy.prototxt')
    caffemodel_path = os.path.join(base_dir + 'data/weights.caffemodel')

    # Read the model
    model = cv2.dnn.readNetFromCaffe(prototxt_path, caffemodel_path)

    # Create directory 'updated_images' if it does not exist
    if not os.path.exists('updated_images'):
    print("New directory created")
    os.makedirs('updated_images')

    # Loop through all images and save images with marked faces
    for file in os.listdir(base_dir + 'images'):
    file_name, file_extension = os.path.splitext(file)
    if (file_extension in ['.png','.jpg']):
    print("Image path: {}".format(base_dir + 'images/' + file))

    image = cv2.imread(base_dir + 'images/' + file)

    (h, w) = image.shape[:2]
    blob = cv2.dnn.blobFromImage(cv2.resize(image, (300, 300)), 1.0, (300, 300), (104.0, 177.0, 123.0))

    model.setInput(blob)
    detections = model.forward()

    # Create frame around face
    for i in range(0, detections.shape[2]):
    box = detections[0, 0, i, 3:7] * np.array([w, h, w, h])
    (startX, startY, endX, endY) = box.astype("int")

    confidence = detections[0, 0, i, 2]

    # If confidence > 0.5, show box around face
    if (confidence > 0.5):
    cv2.rectangle(image, (startX, startY), (endX, endY), (255, 255, 255), 2)

    cv2.imwrite(base_dir + 'updated_images/' + file, image)
    print("Image " + file + " converted successfully")

    I tried to push the face detection and selection into def and then monitor the parallel streams through pool and map, but I am very weak in this, and obviously did something wrong. The script just stopped working.

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

    A program that copies text from a pdf and pastes it into another program?

    Posted: 22 Apr 2021 11:19 PM PDT

    I have never, ever programmed anything. I ve been doing a very repetitive action for the past few days for hours and its very tiresome.

    Basically I copy text from a pdf and paste it into a program called Anki. The pdf format is very straight forward so I think it should not be that hard to get something to automatically do it since the format is very simple.

    The pdf text goes kinda like this :

    art. 156 The bla bla of xyz(1) The bla bla bla of xyz is very important because idk(2) If the bla bla bla is x then we have to y(3) bla bla bla bla bla

    art 157 Title text(1) More text(2) more text(3) more text

    What I would like to be able to make is a program that first copies the "art. 156 The bla bla of xyz" into the question part of anki and the copies the "(1) text (2) text...." into the answears of the flashcard . and the move on to the next article and to the next and so on

    Does anyone have any ideas of what should I do?

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

    Newbie asking for advice on learning apps or direction

    Posted: 22 Apr 2021 11:15 PM PDT

    I barely know any coding. I took some classes in high school but was an idiot and decided to fool around than pay attention. I was wondering if any of you guys knew any apps on mobile that can help me learn a bit. I don't have a lot of free time because of my job but I do find time in my work hours where I got 15-30min of downtime that I think I could use to learning. It doesn't need to be an app just something that I can fit into those little moment of free time when I not around my computer. I'm not expecting to learn a lot just more than nothing. To help clarify I hoping to be develop my own game on day so maybe c#. Again I'm an idiot so forgive me if I come off dumb as shit.

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

    I learnt the absolute basics of coding... What is the next step?

    Posted: 22 Apr 2021 05:09 PM PDT

    I wrote lots of basic programs, but they were run using the command prompt in C. Stuff like calculators, quizzes, even did some exercises like the user being able to modify matrices etc... What is the next step? How do I jump from this to writing actual software?

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

    No comments:

    Post a Comment