• Breaking News

    Saturday, January 6, 2018

    An elegant way to learn command-line text processing. learn programming

    An elegant way to learn command-line text processing. learn programming


    An elegant way to learn command-line text processing.

    Posted: 06 Jan 2018 09:46 PM PST

    It's good for a novice as well as seasoned shell users.

    https://github.com/learnbyexample/Command-line-text-processing

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

    I made a site that visualizes how sorting algorithms work

    Posted: 06 Jan 2018 01:07 AM PST

    A while back I made a little toy for visualizing sorting algorithms, also did fairly well on /r/internetisbeautiful which made my day.

    Check it out, may be useful for some here. https://www.reddit.com/r/InternetIsBeautiful/comments/76qc53/this_site_lets_you_see_visualizations_of_sorting/

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

    Does anybody have quality resources for in-depth learning of CSS? Resources that are comprehensive, thorough, with step-by-step visual examples?

    Posted: 06 Jan 2018 02:15 PM PST

    Something that I struggle to get my head around is CSS. There are so many different properties and attributes that come together in strange ways to make animations, so much weird behaviors with floats - difficult to choose when to use flexbox or CSS grid - so many different tricks that you can play around with.

    I have been studying HTML and JavaScript - some NodeJS, but I can't get my head around CSS, and everything I make looks ugly because I can't style it.

    Does anyone have any good resources that will walk a beginner through some intermediate steps to use some advanced features of CSS - something beyond just learning how to change background color of a div - really good stuff that you can vouch for? Websites, Tutorials, Udemy courses, anything!! I'm looking for something comprehensive.

    I have gone through a few tutorials - they usually create some random effect, or walk you through so many different properties (Transform, Transition, Rotate, Skew) - that I end up copying it and not learning anything about how the CSS attributes interact w/ each other to make the animation...

    I know part of using CSS is just having a good sense of design, which can't really be taught. There are some designers that don't even use CSS - they are paid to make beautiful mockups in Photoshop/InDesign/Illustrator, and they send this to devs who actually turn it into CSS. I'm would love some resources give a sort of a mix of this - maybe some courses that have good designs AND how to implement it with raw CSS.

    I would very much appreciate if anyone can share their experience in learning CSS, improving their design skills, and building animations (++ If you can share how one can use animations in React)

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

    How do you protect your site from hackers?

    Posted: 06 Jan 2018 10:33 PM PST

    Hello all,

    I am relatively new to programming and am a complete amateur when it comes to protecting against potential hacking. A friend of mine wanted me to create a site for them, but I am honestly hesitant to have them put it up live, as I am unsure how to make it "secure" and relatively unhackable.

    I am not done finishing the site just yet; but, it seemed like a good idea to have this hacking information before I start diving into hundreds of lines of code.

    Any advice?

    P.S. - Site is HTML, CSS, and a little javascript.

    submitted by /u/0Youwillneverknow1
    [link] [comments]

    Network Guy Looking to Change Careers - Questions \ General Advice \ Any Thoughts

    Posted: 06 Jan 2018 01:16 PM PST

    Hello All,

    I'm 41 (in a few weeks). I've worked as a network engineer for what was the same company for nearly 20 years. The company I work for was acquired and broken up, end result is I'm out of a job. I'm not sure I want to go back to the world of networking and I've always thought about programming.

    Quick stats:

    • No previous coding experience outside of some low level scripting and etc.

    • I have a reasonable severance and 9 months of health insurance paid. This seems to provide a window I wouldn't have if say I quit or something, it is also why I'd like to start soon as I'm now just starting that severance / health insurance period. I want to learn full time, not part time, I feel like I'd learn both better and obviously faster full time.

    • I live in the Twin Cities (Minneapolis / St Paul).

    • Have a wife and two kids so moving for a new career isn't a thing I want to do. If needed my wife can go back to work as well, but we'd take a hit financially with our 2 year old needing child care (she is currently a stay at home mom) and she's a teacher so her income isn't that big a boost when you subtract daycare anyway.

    • I did not finish college. Concerned about that being a roadblock for just breaking in at all.

    • I'm cool with / expect to take a serious pay hit from going from network engineer to entry level old man coder guy.

    • I have no particular preference or idea what in the world of coding I want to do. Contributing and making something / doing something new is a bigger draw for me. I'm actually more concerned with getting a job than anything else. Maybe later I'll care more but I don't feel like I know enough to really say what language(s) I want to work with or etc.

    • Due to the time constraints a boot camp like experience is something I'm thinking of, and at the same time I plan to do a lot of work on the side to accelerate things. I want to hit the ground running and also work hard at learning on my own, and eventually some side projects where I can show what I've learned and created on my own. I don't want to just do what the class tells me, but also USE it to do my own thing. I find that just following along doesn't help me much.

    • I started a fee online class learning Ruby but I'm tempted to switch to Java as that seems more relevant to my possible classes

    I've been looking two local boot camps:

    https://bootcamp.umn.edu/full-time

    I like that this one is associated with the local university.

    I'm concerned it seems to promise a lot covering a lot of concepts in just 3 months.

    https://www.thesoftwareguild.com/coding-bootcamps/java-training/

    This one "seems" more focused.

    Their in person training sadly has already closed their application window for the current period so it would be months (meanwhile no job… probable later career start) before I got to do that. I'd prefer in person as I think that really just works better for learning a whole new thing like this.


    Silly questions:

    When it comes to web development … is it that easy to do side projects to show what you've learned? I get making a local app for a smartphone or PC is doable, low overhead cost wise, is creating a site with all the back end database features doable for joe schmo user as in being able to buy some back end DB and the appropriate web hosting at a reasonable price?


    I've been looking for local programming clubs or organizations. I was hoping to find folks who could give me some idea what the local market is really looking for / values and etc but no joy yet.

    I'm open to any thoughts on the classes I picked, my idea of changing careers / any advice that seems relevant.

    Special thanks to the folks who wrote the FAQ https://www.reddit.com/r/learnprogramming/wiki/faq#wiki_getting_started That was very helpful. I can't tell you how much I appreciate something like that.

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

    Why do you need SQL when you can use Java or C++ for data manipulation?

    Posted: 06 Jan 2018 10:03 PM PST

    Sorry if it's dumb. I just started SQL and many excercises that I'm solving are about arranging data in ascending and descending order, displaying the biggest value out of a given pool of data, etc. I mean can't you simply use Java or C++ for that stuff, like just write a bubble sort algorithm for arranging them by increasing or decreasing order.

    I mean I know there is a huge difference between DBMS and a programming language but what exactly is it?

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

    [C++] Doing 10 days of stats on hacker rank, cannot figure out why the last test case will not pass. Code review help please.

    Posted: 06 Jan 2018 10:01 PM PST

    My code: https://paste.ofcode.org/32Z8Qmef35fxhFaZztC6JAz

    I cannot figure out why my last test case won't pass, when it has passed all the rest. I want to say it has something to do with the median? I'm really unsure though..

    Thanks in advance!

    Here is the data set given: https://paste.ofcode.org/Gj22ZY6HWbeXZ8K6s8cHmS the first number in the data set gives the amount of integers.

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

    How to get back on track after a year

    Posted: 06 Jan 2018 05:46 PM PST

    I was just curious if any of you had experience with taking breaks that long, last time I coded something was when I finished CS50 last october and then did some web project for school after that, and ever since it was just slacking off.

    I would love if you guys shared your experiences related to this, and would love to PM with someone who has experience with this

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

    How to take numbers after a certain character with file scanners in Java?

    Posted: 06 Jan 2018 07:03 PM PST

    So, I'm making a program that gets a bunch of numbers, does some math, puts them in a file, and then hopefully takes them out.

    The printing to the file is fine, and results in this:

    !345 ?298 !209 ?720 etc. 

    I want to take numbers with "!'s" before them and put them in one array, and numbers with "?'s" before them and put them in another array.

    I tried this:

    long num2 = diskScanner.findWithinHorizon("!", 3); 

    But then it wants to take the exclamation point! I searched online for how the Scanner methods work to no avail.

    Thanks for the help!

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

    When to use void pointers? (C++)

    Posted: 06 Jan 2018 03:03 PM PST

    What are some appropriate cases to use void pointers? What are some bad cases?

    I believe one case to use void pointers would be for casting one type into another.

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

    [C++] Question about 'Empty Statements' in Bjarne Stroustrup's "Programming and Practice in C++"

    Posted: 06 Jan 2018 02:21 PM PST

    In Edition 2 of "Programming Principles and Practice", Bjarne tries to explain empty statements.

    We will mention one more type of statement: the "empty statement." Consider the code:

    if (x == 5);

    { y = 3; }

    The compiler will test x to see if it has the value 5. If this condition is true, the following statement (the empty statement) will be executed, with no effect. Then the program continues to the next line, assigning the value 3 to y (which is what you wanted to have happen if x equals 5). If, on the other hand, x does not have the value 5, the compiler will not execute the empty statement (still no effect) and will continue as before to assign the value 3 to y (which is not what you wanted to have happen unless x equals 5).

    Why is this? To me, this makes logical sense, if you asked the user to input (x) and they input 5 for whatever reason, then y would be assigned '3'.

    Why would 3 be assigned to y regardless of the if statement?

    edit: Thanks, I did not notice the semicolon.

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

    What are essential java packages to learn or be familar with?

    Posted: 06 Jan 2018 06:22 PM PST

    I'm familiar with a lot of essential packages in python (pyodbc, sqlalchemy,urllib,pandas) what are some essential must know ones for java?

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

    Is converting images of websites to code a good way to expand on Web Development skills?

    Posted: 06 Jan 2018 09:53 PM PST

    I've learned HTML5, CSS, Javascript, and now Bootstrap. And was thinking instead of doing more tutorials and code-along-courses/videos to code a site all myself, but of course I don't have a site to code. So I was thinking of just going to google images with "website design" and picking one and trying to mimic it with code myself.

    bad idea for learning? good? better options?

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

    Looking for info about use of <argp.h>

    Posted: 06 Jan 2018 09:00 PM PST

    Can anyone provide a link to good documentation about how to properly use <argp.h>?

    So far the best information I've come across is here. I could probably cobble together working programs from the info in that example and the surrounding pages, but I'd prefer to read something more detailed and clearer about how it's supposed to be used.

    Thanks in advance for any help.

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

    In the future I would like to learn how to develop an AI. What resources or courses are available to learn how to do it?

    Posted: 06 Jan 2018 12:23 PM PST

    No matter what programming language should be use. Especially I need some practical resources.

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

    OOP or functional programming for scientific computation?

    Posted: 06 Jan 2018 11:32 PM PST

    I'm using python. I've seen very few examples of OOP programs for scientific computation (physics in particular). I'm wondering if OOP or the functional style is more suited to scientific programming?

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

    How to use openenc to encode opus in ogg extension

    Posted: 06 Jan 2018 11:03 PM PST

    Musicbee uses opusenc to encode files into opus. I would like to encode my music files into opus in an ogg extention.

    The command line arguments look like this:

    --bitrate 256 --vbr --ignorelength - [outputfile]

    I've tried --bitrate 256 --vbr --ignorelength - [outputfile].ogg and --bitrate 256 --vbr --ignorelength - ogg

    I've looked at the documentation and I don't know how I would do this.

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

    Thread Not Stop

    Posted: 06 Jan 2018 10:58 PM PST

    How to stop a running thread at once in c#? I put .abort() function behind stop button, but when i clicked on it then it doesn't stop at once else we need to press stop button two to three times then it will stop.

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

    How to get better at writing simpler, more efficient code?

    Posted: 06 Jan 2018 11:23 AM PST

    I'm reading a book "Eloquent Javascript" and I am starting the beginning code exercises. One of the first ones is FizzBuzz - write a program that prints all the numbers from 1 to 100 - if n is divisible by 3, print "Fizz" instead, if it's divisible by 5, print "Buzz" instead, if by both, print "FizzBuzz" instead.

    Here is my solution, which I thought was pretty straightforward.

    for(var i = 1; i <= 100; i++) { if (i % 15 == 0) { console.log("FizzBuzz"); } else if (i % 3 == 0) { console.log("Fizz"); } else if (i % 5 == 0){ console.log("Buzz"); } else { console.log(i); } } 

    However, I took a look at the books solution, which is less code and seems much simpler.

    for (var n = 1; n <= 100; n++) { var output = ""; if (n % 3 == 0) output += "Fizz"; if (n % 5 == 0) output += "Buzz"; console.log(output || n); } 

    How do I get better at writing quicker, more streamlined code?

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

    Best sites to learn HTML/CSS ?

    Posted: 06 Jan 2018 02:34 PM PST

    I'm wondering if some sites are "legit" enough to learn programming. I'm studying computer science, but currently am learning more about c# and haven't been taught any html/css. I've learned some easy HTML/CSS syntax for a school project, but I want to take that to a higher level. I don't mind starting back from the basics, since I wasn't that good at all (only been using code I searched for, so I'm currently probably lacking the basics). What are some good sites? I'm currently looking at this course: https://www.edx.org/course/html5-css-fundamentals-w3cx-html5-0x-0. I also found one on Codecademy: https://www.codecademy.com/learn/learn-html?utm_source=codecademy&utm_medium=odr-landing-page&utm_campaign=one-day-resolutions&utm_content=html

    PS: I'm prepared to pay a certain amount, to get a certificate!

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

    C++, started getting into classes and header file and I'm getting confused as heck going back and forth between files. Is this normal?

    Posted: 06 Jan 2018 02:13 PM PST

    This is my first time learning programming. Writing C++ programs in main.cpp wasn't so bad but now that classes have been introduced, I'm constantly getting confused going between the header file, class file, and the main file.

    Is it normal to feel this confused or is my brain not wired to work on multiple things at once....

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

    [SQL] Track top season ticket holders with multiple entries

    Posted: 06 Jan 2018 08:04 PM PST

    I am trying to track season ticket holders over the years who have multiple entries. For example acc_id 537 bought tickets in 2005 and 2006 and has multiple orders. I am trying to track that ticket holder over the years to see if they are 1st 2nd and 3rd year holders ect. I believe my best course of action is with left joins. This is what I have so far. DATA

    SELECT [2005].[acct_id], [2006].[acct_id]

    FROM 2006

    LEFT JOIN 2005 ON [2005].[acct_id] = [2006].[acct_id]

    I think I would have to use the output I get to make a new table called one_yearers or something. Data

    Any help with this would be greatly appreciated!

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

    Need help with simple Python function

    Posted: 06 Jan 2018 07:59 PM PST

    def el(essay): count = 0 for x in essay: if x in {'?' , '\"' , ',' , '!', "\'"}: count = count + 1 print count el('This? "Yes." No, not really!') 

    I want the output to be 4 (4 being the value of count). I want each type of character to be counted as one, so two quotes is counted as one instead of two.

    How do?

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

    I want to create an app that will mostly involve recording and uploading video. Would Node.js be appropriate for this?

    Posted: 06 Jan 2018 07:43 PM PST

    I am only familiar with Node and React Native

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

    Learning C++ in preparation for a college class

    Posted: 06 Jan 2018 07:18 PM PST

    I am taking a data structures class this upcoming that starts in two weeks. The class is taught in C++ and I am hoping to get a head start in learning C++ before the class starts. Any references to sites and helpful tips would be really appreciated. Thank you

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

    No comments:

    Post a Comment