• Breaking News

    Thursday, December 26, 2019

    Learn the syntax of any programming language really fast, like in minutes learn programming

    Learn the syntax of any programming language really fast, like in minutes learn programming


    Learn the syntax of any programming language really fast, like in minutes

    Posted: 26 Dec 2019 04:28 AM PST

    Learn X in Y Minutes

    ^

    This helped me when I wanted to learn JavaScript really fast to start developing web apps (I knew some basic things in C++). Though you would probably need a basic experience in any other language. This could form a good base to start practicing right away.

    (I don't know if this has been posted earlier. I thought this is a really useful website everyone should know.)

    submitted by /u/1TMission
    [link] [comments]

    What is Docker used for (explained to a newbie)?

    Posted: 26 Dec 2019 05:04 PM PST

    I've been trying to figure out what Docker does exactly. It seems to be related to the ideas of virtual machines (which emulate an OS) and virtual environments (which help maintain different versions of libraries across projects as to avoid dependency conflicts).

    Which of these two, if either, is Docker closer to?

    Perhaps you can fact check this understanding I've built: You can apparently save a docker image, which contains your code and the environment it was developed in, and then share that image with others. When others run the image, they run your code as though they ran it on your computer (even though they're running it on theirs). Is this correct? And is this all there is to Docker?

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

    Burnout due to Data Loss

    Posted: 26 Dec 2019 09:11 PM PST

    A few days back, I submitted my laptop for replacement of keyboard and after a few days, the Lenovo repairman informed that the SSD was faulty and they had replaced it, without any confirmation. This caused a complete data loss. Now all my code is gone. Can I get my data back? The other question is that I have not been coding because I don't feel like it to install all the environment and code the basic programs again. How to get back on track , if I Assume that i will not get my data back

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

    What was in your portfolio when you got your first programming position?

    Posted: 26 Dec 2019 04:05 PM PST

    I'm really curious to see what was in people's portfolios when they landed their first jobs. If anyone has a link to some projects they showed interviewers when they got their position, please post a link (or describe it if you don't have one)! I can do some front end and backend stuff but not entirely sure I know what direction I want to take. It would be really helpful to have a reference for what I should strive for. Most portfolios I find when I search google are for people with a lot of experience. I want to see work to get a standard junior developer job.

    I know this has been asked before but it's nice to see recent projects from a different pool of people, and this is always a good resource for aspiring programmers.

    I'm mainly interested in HTML/CSS, Java (or similar language), or JavaScript (or similar language). Don't know much about server side, security, or databases quite yet, but if you want to post about that, go right ahead! I will be learning about SQL soon.

    BACKGROUND: I spent a year taking java/comp sci classes at an online university from 2015-2016. I then quit to become a teacher (I have BA from university of Maryland). However, over the past couple months I have picked programming back up and have been doing it nonstop. I am thinking programming is more for me than teaching. I've decided to self teach and bought a web development boot camp course that was on sale on Udemy and will complete an advanced JavaScript course on Udemy after I finish the bootcamp. I can do html/css, JavaScript, and know a bit about some libraries for those languages. I have been working on a couple Frontend Mentor challenges as well which have been SO helpful. If you're new like me, you should definitely check it out here. The cool part is they actually gave me feedback to my github post of one of the challenges.

    Happy programming!

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

    Need advice taking my full-stack development to the next level

    Posted: 26 Dec 2019 07:16 PM PST

    Hey developers. I'm looking for some advice on how to take my full-stack development to the next level. I'm in third year of an engineering program barely related to software development, and have had three internships related to development so far. Although it appears I have lots of experience, I personally don't feel like a very comprehensive full stack developer. I really want to master creating web applications in short time periods, something I don't feel entirely comfortable with right now.

    Whenever I attempt new projects, I always will reach a point where I don't know something and start to look at online resources. This usually turns to a realization that the thing I don't know is much bigger than just a google search, and will turn to some 30 hour Udemy course. I have an issue where it comes to these Udemy courses where I tend to just watch them, but due to their length, eventually will take a break, and by the time I return I've forgotten all of the material covered before that point.

    I like to think I'm a very competent programmer in general, and have had exposure to other programming disciplines like embedded development, game dev, and a few others. When it comes to web development, I want to be very competent with the UI/UX aspect with adobe tools, the frontend design, and forming the backend and database. I'm just in a bit of a plateau where I have these large ambitious projects, but have lots of trouble with starting them. The whole process is weirdly overwhelming for me. At my internships, its been more contributing to already existing projects and codebases with guidance whenever I needed it.

    I'm not looking for a means of bypassing hard work, as I know the only way I'm gonna reach my goal is through giving it a lot of work and effort. I'm more-so looking for a bit of mentorship so I can avoid wasting my time and expedite the learning process. What's the best way to get to a point of comprehensive understanding and competency when it comes to building web applications? Are my ambitions/goals realistic? Is it better to keep doing these Udemy courses, or maybe just work away at applications and try to truck through foggy areas? Any and all advice helps. Thanks!

    TL;DR: I'm an adequate young web developer who wants to become very competent at building full web applications and wants to know the best path for getting to that point.

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

    Modified Windows OS - Personal Security and Privacy

    Posted: 26 Dec 2019 11:01 PM PST

    This is a rather weird question - Maybe someone can point me in the right direction if one already exists, or how I should work with this.

    My end goal is to have some sort of software, whether it be an OS or a program, that if you enter a specific password to a Windows user account (Single User, not multiple user accounts) it will take you to your normal windows account. However, if you enter a different password It will throw up a fake account hiding key data.

    My current plan was to modify Windows OS and have it simply be a modified version of Windows OS. When a person installs it, it would create 2 partitions (customizable size)

    Let's call private OS: OS-A
    and public OS: OS-B

    If you install a program/have a file on OS-A's partition it will ONLY be accessible/viewable while you are on OS-A

    however, if you install a program/have a file on OS-B's partition, it will be accessible at all/viewable at all times.

    How feasible is this? and if it is feasible, is there already something like this that exists?

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

    How a templating engine like pug is developed? Can a custom templating engine be made? If yes then how?

    Posted: 26 Dec 2019 10:56 PM PST

    I was learning Nodejs and came across templatng engines like pug (https://pugjs.org/api/getting-started.html) and handlebars. I wanted to know if it is possible to develop a custom templating engine. If it is then how should I proceed. What is needed and can you point me to some resources for this?

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

    Any TheOdinProject-like resources for learning Python Django?

    Posted: 26 Dec 2019 10:03 PM PST

    Or at the least any recommended resource? Thank you in advance :)

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

    Is it a good idea to use Wordpress to create a junior web developer portfolio?

    Posted: 26 Dec 2019 07:34 PM PST

    Hi, I recently started learning to code and am currently doing the Udemy course on Javascript by Jonas Schmedtman. I recently started to create a professional portfolio website and was wondering if it would be a good idea to use Wordpress for a theme? I ask because Wordpress has some impressive themes, however coding a website from scratch may impress a recruiter more than using an already coded theme.

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

    Understanding the use of itertools and collections in Python

    Posted: 26 Dec 2019 07:29 PM PST

    So I was working on this problem: https://leetcode.com/problems/expressive-words/

    Here is one of the solutions that was provided: https://repl.it/repls/ShortShockingPascal

    I thought the solution was confusing, especially the aspect with zip and itertools.groupby. I think the implementation could be easier with collections.Counter, though that could introduce extra space because that will create a dictionary. Also I think collections.Counter is easier to understand than itertools.groupby and I've seen it more commonly used in these type of problems.

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

    To people that are learning how to code may find value in my live coding youtube channel

    Posted: 26 Dec 2019 05:41 PM PST

    About 2 weeks ago I started a live coding channel on youtube. I upload a 15-20 minute video almost every day. In each video I try to explain as best as possible I can what I'm doing and why I'm doing it. It's not a tutorial per se, it's more of a video series that establishes how I go about programming.

    In the videos I'm building a system performance monitoring django app. Basically it's like munin, but written in python as a django app. Its obviously web dev focused, but there is also a lot of general programming content that is web agnostic.

    Here is a link to the series:

    https://www.youtube.com/playlist?list=PLhcom2KQ70q9KN0ZcbWMNCFLTZvGw_DAx

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

    Mentor?

    Posted: 26 Dec 2019 09:24 PM PST

    Hi I'm just starting out and I'm really confused on what I want to learn and how to go about it... I read a post saying I should go to meet ups but I dont know anything about programming to begin with. I'm interested in learning because I once took a 2 week summer course and completed code academy before everyone else.. so i thought maybe i could be good at it. The main reason though is I want to be useful...i have really bad social anxiety and no degree so I can only work service jobs, and it doesnt go over well for me. I dont want to be a burden on my boyfriend so i want to get a job where i am making money and contributing without having to over exert myself and faking a smile all day long.

    I would like to make phone apps in the future and video games...I'm not that great at math though.

    I would appreciate any advice. I'm not sure what language to learn how to start or how to stay focused and committed

    Thank you!

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

    [Python] Getting "TypeError" when running "skiprows"

    Posted: 26 Dec 2019 08:56 PM PST

    I'm trying to write a program that iterates through the length of a csv file row by row. It will create 3 new csv files and write data from the source csv file to each of them. The program does this for the entire row length of the csv file.

    For the first if statement, I want it to copy every third row starting at the first row and save it to a new csv file(the next row it copies would be row 4, row 7, row 10, etc)

    For the second if statement, I want it to copy every third row starting at the second row and save it to a new csv file(the next row it copies would be row 5, row 8, row 11, etc).

    For the third if statement, I want it to copy every third row starting at the third row and save it to a new csv file(the next row it copies would be row 6, row 9, row 12, etc).

    Here is my code:

    import pandas as pd

    Sourcedataframe = pd.read_csv("blankAgentList.csv", header=None)

    count = 1

    colB = pd.DataFrame(columns=['b'])

    row_count = Sourcedataframe.shape[0]

    df1 = pd.DataFrame()

    df2 = pd.DataFrame()

    df3 = pd.DataFrame()

    print(row_count)

    for index, row in Sourcedataframe.iterrows():

    for column in Sourcedataframe:

    if count > 3:

    count = 1

    if count == 1:

    df1.append(colB)

    Sourcedataframe.to_csv('agentList1.csv', skiprows=[0,3], index=False)

    elif count == 2:

    df2.append(colB)

    Sourcedataframe.to_csv('agentList2.csv', skiprows=[1,3], index=False)

    elif count == 3:

    df3.append(colB)

    Sourcedataframe.to_csv('agentList3.csv', skiprows=[2,3], index=False)

    count = count + 1

    When I run this program, I get error: **"Traceback line 22, in <module>

    Sourcedataframe.to_csv('agentList1.csv', skiprows=[0,3], index=False)

    TypeError: to_csv() got an unexpected keyword argument 'skiprows'**

    I'm not sure why I'm getting the unexpected keyword argument for skiprows when I run this. Any help would be much appreciated!

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

    Trying to consume Bungie API with C# and RestSharp

    Posted: 26 Dec 2019 08:12 PM PST

    I am trying to write a generic API request router for the Bungie API, so that I can make simpler calls from actions within my program, without writing the entire request each time. I have reviewed the RestSharp recommended example, and could not get it to function. So, I jumped on YouTube, and found someone doing exactly what I wanted to do, along with JSON deserialization. Long story short, I'm stuck on just one part, my object won't return with values (which is kind of the entire intent). Can you take a look at the code and let me know what you think I am doing wrong?

    //Program.cs namespace Bungie_API_Test { class Program { static void Main(string[] args) { BungieAPIRouter router = new BungieAPIRouter(); var obj = router.SearchDestinyPlayer("DattoWatto"); Console.WriteLine(obj.displayName); } } } 

    //RestAPIHelper.cs public class RestApiHelper<T> { public RestClient restClient; public RestRequest restRequest; public string baseUrl = "https://www.bungie.net/Platform/"; public string APIKey = "//REMOVED//"; public RestClient SetUrl(string resourceUrl) { var url = Path.Combine(baseUrl, resourceUrl); var restClient = new RestClient(url); return restClient; } public RestRequest CreatePostRequest(string jsonString) { restRequest = new RestRequest(Method.POST); restRequest.AddHeader("Accept", "application/json"); restRequest.AddHeader("X-API-Key", APIKey); restRequest.AddParameter("application/json", jsonString, ParameterType.RequestBody); return restRequest; } public RestRequest CreatePutRequest(string jsonString) { restRequest = new RestRequest(Method.PUT); restRequest.AddHeader("Accept", "application/json"); restRequest.AddHeader("X-API-Key", APIKey); restRequest.AddParameter("application/json", jsonString, ParameterType.RequestBody); return restRequest; } public RestRequest CreateGetRequest() { restRequest = new RestRequest(Method.GET); restRequest.AddHeader("Accept", "application/json"); restRequest.AddHeader("X-API-Key", APIKey); return restRequest; } public RestRequest CreateDeleteRequest() { restRequest = new RestRequest(Method.DELETE); restRequest.AddHeader("Accept", "application/json"); restRequest.AddHeader("X-API-Key", APIKey); return restRequest; } public IRestResponse GetResponse(RestClient restClient, RestRequest restRequest) { return restClient.Execute(restRequest); } public DTO GetContent<DTO>(IRestResponse response) { var content = response.Content; DTO deseiralizeObject = JsonConvert.DeserializeObject<DTO>(content); return deseiralizeObject; } } 

    //DestinyPlayer.cs public class DestinyPlayer { public string iconPath { get; set; } public int crossSaveOverride { get; set; } public int isPublic { get; set; } public int membershipType { get; set; } public long membershipID { get; set; } public string displayName { get; set; } } } 

    //BungieAPIRouter.cs namespace Bungie_API_Test { public class BungieAPIRouter { public object SearchDestinyPlayer(string accountID) { RestApiHelper<DestinyPlayer> restAPI = new RestApiHelper<DestinyPlayer>(); var restURL = restAPI.SetUrl("Destiny2/SearchDestinyPlayer/-1/" + accountID + "/"); var restRequest = restAPI.CreateGetRequest(); var response = restAPI.GetResponse(restURL, restRequest); DestinyPlayer player = restAPI.GetContent<DestinyPlayer>(response); return player; } } } 

    I feel like I'm 90% of the way there to something reusable for all of my methods, but my lack of specific C# knowledge is hurting me. Hopefully you can help.

    The exact error is in Program.cs Line 10, obj.displayName is underlined, and says:

    Error CS1061 'object' does not contain a definition for 'displayName' and no accessible extension method 'displayName' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) Bungie API Test C:\Users\cbrus\source\repos\Bungie API Test\Bungie API Test\Program.cs 15 Active

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

    [Java] File IO: try-with-resources vs .close(), and a secondary question about try-with-resources blocks

    Posted: 26 Dec 2019 08:07 PM PST

    try-with-resources: https://pastebin.com/XxBSeHEq

    .close(): https://pastebin.com/JSw5AmxR

    I'm very new to File IO in java (reading a chapter in my textbook rn) but the textbook seems to say that you can either use a try-with-resources block OR you can use PrintWriter.close(). But using .close() doesn't seem to work because I didn't throw an Exception anywhere. The book isn't too clear on this so I'm confused. The second pastebin link is literally an example from the textbook.

    Second question. What is the difference between these two chunks of code?

    try-with-resources: https://pastebin.com/XxBSeHEq

    other thing: https://pastebin.com/D3H1sN6B

    other thing seems to be the same code but without the creation of the PrintWriter object in parentheses. What is the difference here? Is it just convention or is there a logical reason?

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

    When learning new concepts, should I be more concerned about the finer details, or the big picture?

    Posted: 26 Dec 2019 07:03 PM PST

    For example, in the course that I'm doing at the moment, there's this line of code that we write that looks like this:

    exports.api = functions.https.onRequest(app);

    Unfortunately the instructor doesn't really explain what this really means as this course is more of a code-along, though I will try and Google anything I'm totally unsure of. Regarding this line of code, I understand that exports.api manipulates whatever's in the URL, and that functions.https.onRequest(app) has something to do with how Express and Firebase work. I still feel like I need a better understanding of what's happening in this line before I move on with the course. However I know there will be more opportunities for me to really learn what exactly is happening later on in the course and during my personal projects.

    So basically, should I move on and just accept what my current understanding is of this line of code, which is more concerned about the big picture, or would it be best for me to really dig into the documentation and understand where all this is coming from, and understand the finer details? Thanks :)

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

    Help on how to make learn programming a routine

    Posted: 26 Dec 2019 12:40 PM PST

    Hi everyone, i am an 18 years old guy trying to teach himself programming, I attended four years of high school studying informatics in general but we only did programming for 1 year and the only things we studied were basic HTML and basic CSS. Once I finished school I was hired by a pretty big company (not related to programming) with a 2 year apprenticeship contract, my job is to make an ecommerce site to sell the material we produce, so I'm using prestashop but also to use prestashop you need to learn how to program, I bought the premium version of codecademy but I can't get under it and learn how to program the last time I was in it was 4 months ago and I also paid for the pro version, I also read that codecademy is not very recommended so I started learning with Odin project, I was constant for 4 days doing 2H per day and now I always make up an excuse when I should continue and be constant even if some things I don't understand them, someone could tell me how to become constant, have a good schedule etc.....

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

    Easy Leetcode Question Question

    Posted: 26 Dec 2019 06:24 PM PST

    https://leetcode.com/problems/valid-mountain-array/

    class Solution { public: bool validMountainArray(vector<int>& A) { if (A.size() < 3) { return false; } int i; for(i = 0; i < A.size()-1; ++i) { if (i == A.size()) return false; else if (A[i+1] > A[i]) // not needed but want to visualize continue; else if (A[i+1] < A[i]) break; else if (A[i+1] == A[i]) return false; } for (; i < A.size()-1; ++i) { if (A[i+1] > A[i]) return false; else if (A[i+1] == A[i]) return false; else if (A[i+1] < A[i]) // visualize continue; } return true; } }; 

    I fail when the input is [0,1,2,3,4,5,6,7,8,9]. Can someone help me think of an idea to solve this question? I can probably trace through my code with this input and see why it failed, but I am trying to learn proper thinking instead.

    My idea is like this: Go through the list and make sure the next element is always bigger than the current one. If you go through it all and you've reached the end, not a valid mountain. If you did, exit and keep track of the point of exit. Now go through the list starting from the exit point and make sure each one is less than the current element. If you managed to do it without failing these conditions, then return true, otherwise failing one of them returns false.

    Is there anything wrong with my logic?

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

    Learning by codealongs doesn't lead anywhere?

    Posted: 26 Dec 2019 12:52 PM PST

    Hi guys, I'm in a situation which might be familiar to many other folks who has already bought courses on udemy/online.

    I've just bought my second course on the mentioned platform, which was JavaScript for Beginners by Brad Traversy. It's very highly rated, I guess it's one of the most popular JS courses there. I've started it, I'm over the first 2 parts and reached the first project part (after the DOM manipulation section). I've just finished the first project, but I felt I didn't understand the whole thing, even though I tried my best during the "explanation" lectures.

    I did a Bootstrap course from the same guy, there felt the same, but I didn't care, since I wasn't that much into Bootstrap. But now I felt a bit sad, because after those many lectures, I didn't get it/couldn't do the same myself. So I was thinking where I was wrong, and I figured out, that my learning method may be wrong. I did the (I guess) normal thing: watched the video and coded along on the second monitor, did exactly what the instructor did. Maybe this way I wasn't focused on the explanation, I only cared about writing the same stuff into my editor, and the different methods didn't get memorized.

    Now I'm thinking about switching back to the old pen-paper method and create notes from the theoretical lectures, then do projects by myself and then compare my solution with the reference. This will take much more time, yes, but not as many as it'd if I didn't memorize it. What do you guys think, will it work? Or are there any concrete methods, which help with the codealong stuffs? Has anybody else ever experienced the same problem? How did you overcome it?

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

    Help

    Posted: 26 Dec 2019 08:50 PM PST

    Hello everyone! I am looking for help or advice! Is there a downloadable program out there that can build a complicated app without coding?

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

    How can I hide the side arrows in my homepage's image slider with JavaScript?

    Posted: 26 Dec 2019 02:07 PM PST

    I'm trying to write some Javascript that hides the arrow buttons on my website's image slider on the homepage. The image slider looks like the one here --> https://hota.com.au/

    I'm trying to hide the side arrows when there's only one image inside the slider. When there's more than one, they will show. Each image is inside its own div, with each of those divs being a child of the parent div slideshowModule.

    Here is my JS:

    function concealMyGloriousArrows() { const slidesModule = document.getElementById('slideshowModule'); const nextButton = document.getElementById('nextSlideButton'); const previousButton = document.getElementById('previousSlideButton'); if (slidesModule > 1) { nextButton.style.display = "none"; previousButton.style.display = "none"; } else if (slidesModule < 1) { nextButton.style.display = "block"; previousButton.style.display = "block"; } 

    This doesn't do anything, however. How can I select the child elements of the parent div? Or am I thinking about this incorrectly?

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

    how to do a poo while programming?

    Posted: 26 Dec 2019 11:25 PM PST

    poo question is in title poo

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

    Excel VBA to Web Based

    Posted: 26 Dec 2019 11:50 AM PST

    Hello all! We developed an Excel based application that grabs data via API from a website and then creates a PowerPoint. Used by ~200 people.

    I'm thinking to port this app to a web based model for easier updates and flexibility.

    What would be your recommendation to get started?

    Thank you so much for your help!

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

    Im starting out, what websites do you recommend?

    Posted: 26 Dec 2019 07:08 PM PST

    Im trying to start programming games, what are some good websites to use to help me start.

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

    Where do I learn to code things that are not web development?

    Posted: 26 Dec 2019 06:00 AM PST

    There are plenty of resources that teach to code to be a web/app developer. I feel there are not much resources(or atleast there are not reviewed/documented properly like the vast resources for web dev) for other interesting things like Software Development/Engineering, Cyber Security, SRE, Systems Programming, etc.

    Please add any resources that you feel are good and doesn't teach just web/app development.

    Hope this post helps those who are having difficulty to find resources for other cool things that can be done by learning to code.

    Here are a few that I could think of : nand2tetris Learn OpenGL Cybersecurity Specialization

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

    No comments:

    Post a Comment