• Breaking News

    Wednesday, March 28, 2018

    Why do people hate database Administration so much? Considering a career in it... learn programming

    Why do people hate database Administration so much? Considering a career in it... learn programming


    Why do people hate database Administration so much? Considering a career in it...

    Posted: 28 Mar 2018 12:06 PM PDT

    Not really sure if this belongs anywhere else but I've seen many posts about databases here so this is where I'm putting it. I have never understood why but databases seem to draw a lot of iron from people and it's as if no one wants to go into database Administration. Learning about how to manage or design a database is one thing, but when you ask people to write SQL it's like they look at you like you're insane.

    Why do people hate databases so much? ...and not to be rude or anything but why do we Outsource so much of our database Administration to people in other countries such as India? I have noticed that a lot of companies Outsource a good majority of their database Administration and we'll even bringing people from out of country to be database administrator is here. Again, not trying to be rude or anything it's just something that I have noticed. It's like new grads don't want to even consider database Administration and I don't get why. Is there something I'm missing about it that's truly terrible that I should avoid it for?

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

    How do I print a void function that has a cout within it? C++

    Posted: 28 Mar 2018 09:54 PM PDT

    Hey everyone,

    Professor gave us this strict assignment where he gives us the driver code and wants us to create classes given pseudo code.

    in one of the classes, the function he wants us to do has a private member, string called type, and a public function displayType() that "takes no parameters, returns nothing, prints out type on the screen"

    So this is what I came up with but it just won't work:

    class Cattle{ private: string type; public: Cattle(){ type = "Domestic"; } void displayType(){ cout << type; } } 

    and then in my his main:

    Cattle BrownCow; cout << "Type: " << BrownCow.displayType(); 

    but that just won't work. Keeps saying something about "<<" no operator found

    I can do this easily with returning a string type, but his requirements on the pseudo code won't let me, and I cannot alter the main.cpp. Any thoughts?

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

    People who learned JS through online courses/books, if you had to start to learn it from scratch, how would you structure your curriculum now?

    Posted: 28 Mar 2018 12:48 PM PDT

    I think a lot of people here would really appreciate some kind of step-by-step guide which courses to take and which books to read and in what sequence. I understand that it might be subjective, but still, you will help a lot of people who are just starting out!

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

    Need help understanding recursion

    Posted: 28 Mar 2018 11:08 PM PDT

    def Multiple2(x): if x ==0: return 0 else: return Multiple2(x-1) * 2 

    Can somebody please help. This code works. It gives me 2 * whatever x is, but I just don't get why. I've been sitting here staring at it trying to understand how it works. Help very much appreciated, thanks!

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

    Data Science Courses/DIY Curriculum Options?

    Posted: 28 Mar 2018 07:41 PM PDT

    Hi folks,

    Really interested in learning about data science (currently reading Data Science for Business). I have very basic programming experience (HTML, some Python etc).

    I have seen there are bulk MOOC's and open-source curriculum guides for Computer Science but was wondering if there's anything for data science?

    I have seen the below options -

    Dataquest

    Datacamp

    I was wondering if there are other resources I should be made aware of? I really want to learn about all areas of data science (statistics, math, concepts etc) other than just learning how to code.

    All help is appreciated.

    Cheers

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

    PYTHON3: Does anyone have a good online source for practice programming problems similar to what one may come across at a formal university ?

    Posted: 28 Mar 2018 07:55 PM PDT

    I am looking for beginner-mid level problems that I can construct in Python that also have solutions that I can compare and check my results against.

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

    How can I make this line of code shorter?

    Posted: 28 Mar 2018 07:28 PM PDT

    For example, I have this define:

    define LH char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)<<char(196)

    I'm drawing a rectangle. Is there a way to "hide" all this? Sorry if it's a dumb question, I'm a noob.

    Edit: Forgot to say it's on C++, I'm also noob on reddit

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

    Coding bootcamps in Toronto

    Posted: 28 Mar 2018 08:15 PM PDT

    Which coding bootcamps would you recommend in the Toronto area?

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

    Please guide me in the right direction about what to focus on next (web dev career change)

    Posted: 28 Mar 2018 07:33 PM PDT

    To give a background of my current knowledge:

    I have been studying the past 2 months to prepare myself for a coding bootcamp which starts in another 7 weeks. During the past two months I have spent time going through codeacademy / freecodecamp (only finished up to the javascript / OOP portion) then transitioning to udemy videos :

    Javascript understanding the wierd parts -- Anthony Alicia The Web Developer Boot Camp -- Colt Steele 

    I have finished understanding the wierd parts course and am about 85% of the way through with Colt Steel Web developer bootcamp.

    I feel as though I have learned alot and understand now the big picture of how everything works. Before I had no idea even what a GET or POST request was. Or even how backend / frontend talked to each other.

    However, if I was to tell myself to write and build a website from scratch by myself, the farthest I could make it is probably getting the HTML skeleton / Basic CSS / Basic javascript to populate a static webpage.

    I think im in the stage that I know what needs to be done, but I dont know how to do it. I feel as though my vanilla JS skills arent up to par. I understand simple closures, prototypal inheritance and things like that but I dont know HOW to write them or incorporate it into my own code. I think thats the big issue I have right now is I have seen it done by instructors in videos / youtube, but I cant do it myself.

    I know for certain I need to build something myself. But a huge question to me is "What do I build? And how do I build it?". Should I just try to recreate some other webpages to get practice? Should I build my own portolio page? Do random stuff like this and post it to Github?

    All in all I am getting ready for the bootcamp, but I wanted to take these 3 months to really solidify my foundation before going into the bootcamp. I was wondering if anyone has suggestions to really get my foundational level at its peak before the bootcamp.

    Thanks for any suggestions/help! I am eager to hear your thoughts

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

    Python - Modifying an object's member variables?

    Posted: 28 Mar 2018 07:19 PM PDT

    I started with C++ and now I'm learning Python. I've noticed that if I instantiate an object and I call its function to modify its variables, I have to call return self at the end of the function in order to actually change the variables, otherwise nothing happens. Is this the case? Why does this happen? If I ever want to modify an object's variables, do I always have to return self?

    In C++ if I called a object's function, I wouldn't need to return the this pointer or anything like that, the object's variable would change.

    For example:

    // C++ - main.cpp obj.func(a, b); // Obj.h - Replace obj's variables m_a and m_b void obj::func(int a, int b) { m_a = a; m_b = b; } # Python - main.py obj = obj.func(a, b) # obj.py - Replace obj's variables m_a and m_b def func(self, a, b): self.m_a = a # Do I have to call self.<variable name>? self.m_b = b # in order to modify it? Or is m_a sufficient return self 

    Thank you

    Edit: Are all variables that are defined out of init are class variables and shared among all instantiations of a particular class? And all variables defined inside init member variables specific to that instance? I think my problem was caused because I defined the same variables both outside the function init and inside it.

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

    I learned to code and made a youtube thumbnail generator slightly poking fun at youtube thumbnails

    Posted: 28 Mar 2018 01:57 PM PDT

    https://imgur.com/gallery/1GTx3/

    And if you want to check it out for UX feedback: http://youtubethumbnail.s3-website-eu-west-1.amazonaws.com/ (hosted on S3 for now)

    Thanks!

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

    Visual Studio 2017 Python no error messages

    Posted: 28 Mar 2018 09:07 PM PDT

    Not getting any error messages with any of my python code when using visual studio. It will either crash or do nothing.

    Using something like the python IDLE will give me error codes with line numbers. How do I get visual studio to show the same error messages?

    Using Visual studio to run Python code

    Using python IDLE

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

    need help with a slot machine generator in java

    Posted: 28 Mar 2018 06:50 PM PDT

    The homework was to create a slot machine that generates 1000 numbers and stores them inside arrays. I did part of it, but i am not exactly sure how to finish it. Its supposed to compare indexes of an array, which i did. But the if statement does not seem to be working. Whenever the random numbers are generated, it does not say the amount of wins. Any help would be appreciated, thanks! code https://pastebin.com/h0zYiUt6

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

    I posted a little app over r/monitors, and the folks there seem to really like it. Here I am posting the source code for the project. If there's anything I could help others with, let me know.

    Posted: 28 Mar 2018 06:20 PM PDT

    Source code

    Live site

    /r/monitor post

    Background: Project was created a long time ago, and I'm going back to make edits. I'm always looking for feedback, especially with user experience, user interface, code structure, etc...

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

    NEWBIE/NOOB at programming need guide

    Posted: 28 Mar 2018 11:27 PM PDT

    Hi guys so im starting to learn programming. And i want to focus in making websites but i dont know where to start. ANd im quite confused because there are tools in making websites like wordpress. And theres thing called codeigniter and laravel? What is their use? I really need help and guidance

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

    [HTML][PHP] How to use multiple php files for multiple buttons in HTML?

    Posted: 28 Mar 2018 03:54 PM PDT

    I am working on a project and I am unsure of how to set up multiple php files to work with different buttons on a simple webpage. Ill copy and paste the code below.

    <html> <head> <title>Transaction Website</title> </head> <body>

    <form method="get" action="Transaction.php">

    Transaction Name:<input type="text" size="12" maxlength="36" name="Tname"><br /><br />

    Select a Transaction Type:<br />

    <select name="Type"> <!-- by default size="1", drop box will be displayed-->

    <option value="Purchase">Purchase</option>

    <option value="Income">Income</option>

    <option value="Tax Payment">Tax Payment</option></select><br /><br />

    Transaction Amount:<input type="text" size="12" maxlength="36" name="Amount"><br /><br />

    Please choose all of the benificiaries:<br />

    Myself:<input type="checkbox" value="Myself" name="benificiaries[]"><br />

    Spouse:<input type="checkbox" value="Spouse" name="benificiaries[]"><br />

    Child(s):<input type="checkbox" value="Child(s)" name="benificiaries[]"><br />

    Parent(s):<input type="checkbox" value="Parent(s)" name="benificiaries[]"><br />

    Other:<input type="checkbox" value="Other" name="benificiaries[]"><br /><br />

    <input type=submit value=Submit><br /><br />

    Seach by transaction ID:<input type="text" size="12" maxlength="12" name="idSearch"><br />

    <input type=submit value=Search><br /><br />

    <input type=button value=ReturnAll><br /><br />

    <input type=reset value=Clear><br /><br />

    </body> </html>

    I have the submit button working as intended but I was wondering what the syntax would look like to get a php file handle the search button and a php file to handle the return all button. I am very new to this so if I need to be coming at the problem from a different direction I can.

    Thanks if you took the time to read and a bigger thanks to anyone that replies!

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

    Need help in a PHP HTML form

    Posted: 28 Mar 2018 11:15 PM PDT

    Note that I'm still very much new to programming and I'm sorry if this is the wrong place to post this but I just can't seem to figure out why this code won't validate the form properly as well get the for loop to work to build the table to convert celsius to fahrenheit with increments. Also note that we are taking a sample code from our professor and trying to implement it for this assignment, that's why those comments are also the prof's.

    Are my if else, else ifs wrong, that's why it won't loop right? Here's the link to the code: (Any help will be greatly appreciated).

    https://gist.github.com/HouDEANI6ix/7579f32a2634bc7dcf97554fed14f018

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

    How many hours a day do I need to practice to learn code? Video opinion.

    Posted: 28 Mar 2018 11:14 PM PDT

    With algorithms, is it crucial to memorize exactly how to implement each one?

    Posted: 28 Mar 2018 04:58 PM PDT

    I've been focusing a lot of my time to learning about different kinds of algorithms so I can be ready for job interviews. My biggest worry, however, is remembering how to create each one. Are we usually expected to be able to quickly write them in code? Or are we just expected to explain how we would solve a problem using the one of our choice while writing our thoughts in pseudo-code?

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

    Is a website really just a remote directory?

    Posted: 28 Mar 2018 10:43 PM PDT

    I started learning how to make a website from scratch and I just started feeling like it's nothing but a remote directory with html files to make data readable. Am I right?

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

    A blog on 'How does python handle multiple web requests'

    Posted: 28 Mar 2018 10:40 PM PDT

    I have been working in the frontend environment for the past 2 years and recently I have been looking into backend development. I have been trying to understand how python handles multiple requests so I wrote a blog based on what I learnt.

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

    list method question Python

    Posted: 28 Mar 2018 10:39 PM PDT

    Why is max(someList) the correct way to find the greatest list item? Why not someList.max()? This is part of a boarder thing. I am confused. Some times the action I am doing is infront of my variable and some times it is behind the variable with a .

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

    Suggest me a good basic Java project to Learn OOP concepts (basics) ?

    Posted: 28 Mar 2018 10:37 PM PDT

    I'm an undergraduate and I've been learning and working with JS for like forever (React, Angular and some Node). So I find it bit difficult to grasp OOP concepts. When someone asks I can tell the concepts by memorizing them. But I find it difficult to understand where to use them.

    So, I need your opinion on very basic Java project which I can use basic OOP concepts like Polymorphism, Encapsulation, Abstraction, Inheritance , Method Overloading/Overiding, Interfaces, Abstract classes, Constructors and etc . Can anyone suggest me a basic project which I can use all of these basics ? So, I would be able to understand them.

    Thank you in advance :)

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

    I have a little experience; now I want to build a website.

    Posted: 28 Mar 2018 10:34 PM PDT

    So, I've done some self-learning with a couple books, and I'm currently taking CS50 online (I'm on Problem Set 3, so it's still early times).

    However, I realized recently that my job has a big need that I could (potentially) fill: creating a website.

    How feasible is it for me to create something like this on my own (at least initially?). It would basically be a platform for some independent contractors to advertise their services on and be able to take messages through. I know some C, some Java, some Javascript, but not enough to really DO anything. However, I figure a project like this fits the bill perfectly as far as learning through doing.

    What kind of tutorials/books would you recommend I start with? I guess we're basically talking full-stack web development. Is it feasible to learn to make something basic and then do it in, say, 6 months?

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

    No comments:

    Post a Comment