• Breaking News

    Tuesday, January 5, 2021

    You do not know until you are told (or learn it). Shell tab-completion learn programming

    You do not know until you are told (or learn it). Shell tab-completion learn programming


    You do not know until you are told (or learn it). Shell tab-completion

    Posted: 04 Jan 2021 07:04 PM PST

    So at work today I discovered a buddy typing out long commands, directory names, and file names by hand in his shell terminal. When asked, why not use tab completion? He said "never heard of it." Baffled, I explained by pressing tab as you type a command out or file/directory name it will autocomplete. He thanked me and I went on my way. I guess this was something told to me very early on when using a shell and I thought it was general knowledge. You really never know something until you're told, so I thought this would be a great story to share in here in hopes others can learn from it and realize some things are just taught and aren't self evident. So do not feel to bad for not knowing something because there are people out there who probably do not know it either.

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

    Best books/ways to learn algorithms, big O...?

    Posted: 04 Jan 2021 06:45 AM PST

    I write code but havent really gone in depth on any of these yet...

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

    I'm a computer network engineer with a degree but I still have my GI bill, which pays for coding bootcamps. Are any worth it?

    Posted: 04 Jan 2021 05:11 PM PST

    The GI Bill will cover the cost of the bootcamp and pays for my housing while I'm in school. I got my degree while in the Air Force and I'm not going for anything higher than a bachelor's so it makes sense to use it for things like this instead. Network engineering for the more advanced stuff is moving towards having at least some programming knowledge. Python is pretty much the go to for network engineers and I really like learning python so I figured a bootcamp couldn't hurt. Anyone have any recommendations?

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

    How much JS do I have to know to create this website?

    Posted: 04 Jan 2021 07:14 PM PST

    Hi, I have just finished HTML5 and CSS3, and am transitioning into Javascript. I'm contemplating between completing a 60-hour plus Colt Steele's JS course on Udemy or simple follow FreeCodeCamp's crash course on YouTube, that only take about 4 hours.

    Obviously, the Udemy course is a lot more comprehensive, while the YouTube video seems to cover only the basics. But the Udemy course will take me a long time to complete, as I work full-time and I can only spare an hour a day to watch (and to code along, which will take even more time). It feels like it's going to be forever before I can build something.

    Anyway, I'm a foreign language teacher and my end goal is to create a website like this: https://babadum.com/

    Question: How advanced in JS do I have to be? What if I complete the basics, and then go off studying the specific things I need for the website? I would appreciate it if anyone could list the things I will need to learn to build a similar website. It seems that it's quite impossible to know everything there is to know about JS, so I want to know what I need to learn for a similar website to save myself time.

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

    Getting extremely desperate to find a programming job. Advice needed

    Posted: 04 Jan 2021 07:32 AM PST

    Hi, I'm a senior in college and I am majoring in Computer Science. I was recently put in a position where I need to find a job to support my parents due to a health problem my dad was diagnosed with. In the past month, I have applied to about 100 companies, created a LinkedIn, and started working on a large personal project to make my application more attractive but I have yet to hear back from any of the companies aside from 2. I am starting to get a bit desperate and am wondering how to increase my chances in finding a job. To be honest my GPA is not the greatest, sitting at a 2.96 but that is mainly due to me not being good at tests. Like I can write the code in all the assignment but when it comes to taking the test, I suck at it.

    Anyways, I am considering doing a coding boot camp with those guaranteed job placements since my main skills are basically Java and C++. I know a bit of web development but have never gone past html,css, and JavaScript. I am just worried that I would be wasting to much money on the boot camp since they take a percentage of pay.

    I am really lost in what to do so any advice will really help.

    Edit: Wow, I was not expecting this many people to post such great advice. It seems like I am just stressing out a bit and taking things to fast. A lot of you suggested to use a lot of keywords and get my resume looked at so I scheduled an appointment with my career advisor to do just that. Also based on your feedback, I am definitely not going to do the Bootcamp and just focus on my personal project (it's a CAD program just if anyone is curious). I graduate in March so I think I can get a lot done in that time. Also I'm going to branch out to other job posting sites and apply there as well. I really appreciate everyone that took the time to post their job hunting experience and advice. It helped me a lot and hopefully it will help other people who may be in similar situations as well.

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

    Looking for help building an automated randomized text generator...

    Posted: 04 Jan 2021 08:45 PM PST

    Does anyone have any experience doing this? Essentially I'm looking to create a twitter bot or something that automates and randomizes text from some of my favorite books. Any help will be great thank you!

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

    Junior front-end developer job

    Posted: 04 Jan 2021 11:53 PM PST

    Hei there,

    I was wondering what do i need to know and be able to do in order to get a job as a front-end developer in web design? I'm talking here about entry lever.

    I've recently finished a web design course here in my town (Sibiu, Romania) where i got a certificate. Here is what I've learnt at the course: HTML&CSS, Bootstrap, basic knowledge of Photoshop, Wordpress (not the backend part) and some Javascript basics. I've also created 3 websites for some friends (this is my entire experience in the web design field).

    Thank you kindly!

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

    How is golang doing? Anecdotes welcome.

    Posted: 04 Jan 2021 11:35 PM PST

    Greetings, friends. I've been in the market to buckle down and learn another programming paradigm, though Ruby/Python/JavaScript have gotten me far... I want to see more of what the world has to offer outside of my career.

    Long story short, some of my co-workers swear by go. It's mentioned along Java when we're discussing future viability and adoption. I'm not really heavily enmeshed in programming culture per se, so I'd like to hear from more than a couple people I work with.

    So... how is golang looking in 2021 by your estimation? Good, better, worse, or the same?

    Your input is much appreciated.

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

    how to put a blocked region in an ising model

    Posted: 04 Jan 2021 11:17 PM PST

    i'm currently working on ising model and I have written this code in python -> https://github.com/bububui/2d-ising-model/blob/main/code%20for%20the%202d%20ising%20model

    What i'd like to do is put a blocked region in the center whose size can be varied (second pic on the link) -> https://imgur.com/a/RrGZFDp

    blocked region - where there is no spin value in the center, it's zero in that area of the lattice.

    I am currently new to python (and an undergrad) any help on my code will totally be appreciated! If there is any missing info or further info, I'm more than happy to answer them in the direct message or comment section. Thank you so much!

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

    How to add project to website/resume where I am just a contributor.

    Posted: 04 Jan 2021 07:29 PM PST

    I worked on something with other people, but the repo is not under my account. I am only a contributor. If I wanted to link to it on my website/resume, should I link to the other persons repo or create my own fork?

    Thanks

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

    Responsive Issues!!!!!

    Posted: 04 Jan 2021 11:06 PM PST

    Hey, there please help me. I am coding a website and working on its responsiveness but am stuck with iPad and iPad pro when I customize Ipad and tablets , the iPad Pro design gets ruined

    So what should I do?

    Should I design it particularly for iPad pro?

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

    What language do you think has the best documentation out there?

    Posted: 04 Jan 2021 05:06 PM PST

    I enjoy reading high quality documentations!

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

    Should you also post the courses the github?

    Posted: 04 Jan 2021 10:33 PM PST

    Hey Everyone, new to git and programming itself. Taking a lot of courses and books this year hopefully. I've seen alot of github profile that has a summary of the courses/books topics they are taking and the code of the assignments done in their way.

    My question is, should i do the something similar? Like when im taking a course, should i upload the similars and my takeways on them to my git? Thank you

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

    Have you ever been demotivated?

    Posted: 04 Jan 2021 01:49 PM PST

    Have you ever felt that you're not good enough to be a programmer? And if you have felt, how did you motivate yourself to get over it? I feel that i'm not good enough sometimes. Thanks =)

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

    Can't get Unity IntelliSense to work with Visual Studio Code

    Posted: 04 Jan 2021 10:32 PM PST

    Sorry if this isn't the right sub but I have had no luck on any other sub.

    As the title says, I can't seem to get Unity IntelliSense working with VSCode. It works perfectly with Visual Studio, but it's rather slow to open and load files, which is why I'd rather use VSCode. I installed the .NET SDK, set it to Unity's default code editor, and went through a whole myriad of fixes and tinkering and ended up confusing myself.

    As of now I can't check for errors in my code with VSCode, and I'm new to Unity so having IntelliSense would be huge to me right now. I think the problem may have to do with Omnisharp not working in the C# extension I have right now. If someone's willing to help it'd be very appreciated

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

    Build Process Question

    Posted: 04 Jan 2021 10:31 PM PST

    I have spent the last 2-3 weeks reading about compilers and linkers and simply can't understand the following:

    Why does a compiler need declarations? Why doesn't it simply generate code and then the linker links everything?

    Within the context of C++.

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

    Need help with python plotting

    Posted: 04 Jan 2021 10:31 PM PST

    Guys, Is there a way to display the value for a particular x variable in a line plot?

    submitted by /u/Fluid-Personality-95
    [link] [comments]

    University Freshman here, does using Eclipse or Netbeans for writing in Java affect how the code is executed/seen?

    Posted: 04 Jan 2021 06:39 PM PST

    Our professor required us to use an old version of Netbeans (6.9, I'm serious) for programming in Java, but I did some searching and found that Eclipse is the better IDE than Netbeans for Java. I'm not familiar with how the professor will check the program assignments, but I'm guessing he'll ask for the java code file or maybe the source code itself, which I highly doubt.

    Will programming on Eclipse have any impact regarding the ability for the professor to execute the assigned programs?

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

    C++ Virtual Function / Overloading / Polymorphism

    Posted: 04 Jan 2021 10:18 PM PST

    I have C++ basic exam in 10 days now. I need help on my inquiry that- I have a single program that demonstrates both function overloading and overriding in one.

    If the question asks about compile type polymorphism in C++, can I write the same program?

    And - if the question asks about run-time polymorphism in. C++, can I write the same basic program of Virtual Function?

    It's a written test exam.

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

    Where to learn to program 2D graphics from scratch with C?

    Posted: 04 Jan 2021 06:40 AM PST

    I have knowledge of syntax and some calculus. But i cant figure out how to for example move an object in console or have collision etc where can i learn these things from scratch no game libraries preferably with C?

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

    Starting over. Again...

    Posted: 04 Jan 2021 11:50 AM PST

    So, through out the years I've done some beginner tutorials in different languages/programs. C#, C++, HTML, Python and some old dead ones. I've done it for (more like trying to) make apps, games, webpages and programs.

    Now that my current job might be gone because of COVID-19, I get the kick in mah butt, to finally change my «path» of career. And finally to something I wanted to do for years now. Im also doing nightschool for the next 1.5 years, to get my high school diploma, so that I can get a bachelor or master in something related to coding. CS, web dev or any other possibilities.

    My plan is to work 4-8 hours a day on this, so what I really need, is help to decide/lay out a good roadmap. Either for getting a job or to have the most possible knowledge before I study for a degree in 1.5 years.

    My biggest problem??? I liked every program I coded in... All of them. So now Im sitting here, yet again, scared that I might fall of this path, just because there's way too much info out there for me.

    Anyone who can give me some advice? Or need more info before you give me an advice?

    P.s. Sorry for my (possibly) bad english, Im from Norway ;)

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

    Which dashboard framework to use?

    Posted: 04 Jan 2021 05:38 PM PST

    Hey all, I'm trying to develop my skillset with regards to building dashboards. I'm 'okay' at Tableau, but I'm trying to learn how to build interactive dashboards in R and/or Python.

    The main question is, for a work project I'm trying to build a dashboard that is accessible offline i.e. exporting it as a html file and sending it over to someone higher up the chain. With that in mind, what framework should I be using here? It seems that flexdashboard in R is the only way to go for that since the other approaches (React, Dash) all require some kind of server setup which is what I'm trying to avoid. If I'm wrong on that front, I'd love to hear your recommendations and thoughts.

    I don't expect the size of the dataset to cross 30MB, for what it's worth. But if there are some inherent limitations for each framework it would be awesome to hear them too.

    Thank you!

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

    Pyqt5 crashes then comes back online then crashes when trying to make changes.

    Posted: 04 Jan 2021 09:00 PM PST

    I am trying to make a program that turn images into pixel art. When I run the program and upload an image the program stops responding for a while then the image is displayed. I have four buttons that change the size of the pixels. Whenever I press them, it takes a long time before the correct image is displayed or it does respond for a while.

    from PyQt5 import QtWidgets as Qtw, QtGui from PyQt5.QtWidgets import QFileDialog from pixel import Ui_Form from PyQt5.QtGui import QImage import cv2 import numpy as np class Pixel(Qtw.QWidget): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.ui = Ui_Form() self.ui.setupUi(self) self.ui.upload.clicked.connect(self.upload_image) self.ui.six.clicked.connect(self.size) self.ui.six_4.clicked.connect(self.size_2) self.ui.one_8.clicked.connect(self.size_3) self.ui.two_fifty.clicked.connect(self.size_4) def upload_image(self): self.filename = QFileDialog.getOpenFileName(filter="Image(*.*)")[0] img = cv2.imread(self.filename) color = self.color_quantization(img) self.pixelate(color) def pixelate(self, image): height, width = image.shape[:2] w, h = (128, 128) temp = cv2.resize(image, (w, h), interpolation=cv2.INTER_LINEAR) output = cv2.resize(temp, (width, height), interpolation=cv2.INTER_NEAREST) frame = cv2.cvtColor(output, cv2.COLOR_BGR2RGB) image = QImage(frame, frame.shape[1], frame.shape[0], frame.strides[0], QImage.Format_RGB888) self.ui.label.setPixmap(QtGui.QPixmap.fromImage(image)) def size(self): img = cv2.imread(self.filename) color = self.color_quantization(img) self.pixelate_1(color) def pixelate_1(self, image): height, width = image.shape[:2] w, h = (16, 16) temp = cv2.resize(image, (w, h), interpolation=cv2.INTER_LINEAR) output = cv2.resize(temp, (width, height), interpolation=cv2.INTER_NEAREST) frame = cv2.cvtColor(output, cv2.COLOR_BGR2RGB) image = QImage(frame, frame.shape[1], frame.shape[0], frame.strides[0], QImage.Format_RGB888) self.ui.label.setPixmap(QtGui.QPixmap.fromImage(image)) def size_2(self): img = cv2.imread(self.filename) color = self.color_quantization(img) self.pixelate_2(color) def pixelate_2(self, image): height, width = image.shape[:2] w, h = (64, 64) temp = cv2.resize(image, (w, h), interpolation=cv2.INTER_LINEAR) output = cv2.resize(temp, (width, height), interpolation=cv2.INTER_NEAREST) frame = cv2.cvtColor(output, cv2.COLOR_BGR2RGB) image = QImage(frame, frame.shape[1], frame.shape[0], frame.strides[0], QImage.Format_RGB888) self.ui.label.setPixmap(QtGui.QPixmap.fromImage(image)) def size_3(self): img = cv2.imread(self.filename) color = self.color_quantization(img) self.pixelate_2(color) def pixelate_3(self, image): height, width = image.shape[:2] w, h = (128, 128) temp = cv2.resize(image, (w, h), interpolation=cv2.INTER_LINEAR) output = cv2.resize(temp, (width, height), interpolation=cv2.INTER_NEAREST) frame = cv2.cvtColor(output, cv2.COLOR_BGR2RGB) image = QImage(frame, frame.shape[1], frame.shape[0], frame.strides[0], QImage.Format_RGB888) self.ui.label.setPixmap(QtGui.QPixmap.fromImage(image)) def size_4(self): img = cv2.imread(self.filename) color = self.color_quantization(img) self.pixelate_2(color) def pixelate_4(self, image): height, width = image.shape[:2] w, h = (250, 250) temp = cv2.resize(image, (w, h), interpolation=cv2.INTER_LINEAR) output = cv2.resize(temp, (width, height), interpolation=cv2.INTER_NEAREST) frame = cv2.cvtColor(output, cv2.COLOR_BGR2RGB) image = QImage(frame, frame.shape[1], frame.shape[0], frame.strides[0], QImage.Format_RGB888) self.ui.label.setPixmap(QtGui.QPixmap.fromImage(image)) def color_quantization(self, img, k=4): # Transform the image data = np.float32(img).reshape((-1, 3)) # Determine criteria criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 20, 0.001) # Implementing K-Means ret, label, center = cv2.kmeans(data, k, None, criteria, 10, cv2.KMEANS_RANDOM_CENTERS) center = np.uint8(center) result = center[label.flatten()] result = result.reshape(img.shape) return result if __name__ == '__main__': app = Qtw.QApplication([]) win = Pixel() win.show() app.exec_() 
    submitted by /u/SnbyooStories8948
    [link] [comments]

    Need some Javascript help: I'm doing a lesson where I write a function to check if a property value exists in an array of objects. I'm trying to use an if statement to determine whether the argument's value is equal to 'undefined'. The function is behaving in a strange way that I don't understand.

    Posted: 04 Jan 2021 08:46 PM PST

    Here are the instructions:

    We have an array of objects representing different people in our contacts lists.

    A lookUpProfile function that takes name and a property (prop) as arguments has been pre-written for you.

    The function should check if name is an actual contact's firstName and the given property (prop) is a property of that contact.

    If both are true, then return the "value" of that property.

    If name does not correspond to any contacts then return "No such contact".

    If prop does not correspond to any valid properties of a contact found to match name then return "No such property".

    Here is the array of objects:

    // Setup var contacts = [ { "firstName": "Akira", "lastName": "Laine", "number": "0543236543", "likes": ["Pizza", "Coding", "Brownie Points"] }, { "firstName": "Harry", "lastName": "Potter", "number": "0994372684", "likes": ["Hogwarts", "Magic", "Hagrid"] }, { "firstName": "Sherlock", "lastName": "Holmes", "number": "0487345643", "likes": ["Intriguing Cases", "Violin"] }, { "firstName": "Kristian", "lastName": "Vos", "number": "unknown", "likes": ["JavaScript", "Gaming", "Foxes"] } ]; 

    Here is the function I wrote:

    function lookUpProfile(name, prop){ for (let user of contacts) { if (user["firstName"] === name && user.hasOwnProperty(prop) === true) { return user[prop]; } else if (user[name] === "undefined") { return "No such contact"; } else if (user.hasOwnProperty(prop) === false) { return "No such property"; } } } 

    Here is the an example of how you would call the function:

    lookUpProfile("Akira", "likes"); 

    The part that is weird is when I run this function the first and the third condition pass the tests but the second condition, the first else if statement, fails. I checked the console and instead of returning "No such contact" it just returns undefined. So I assumed I needed to remove the quotations around undefined but.... when I did that the first and third condition fail and the second one passes! This does not make any sense to me! Does anyone have any idea why this is happening? I don't know how to google this.

    Thanks for any help!

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

    No comments:

    Post a Comment