• Breaking News

    Saturday, March 10, 2018

    Not knowing a solution to a problem, googling it, and then being even more mad that you don't understand how it even works once it does learn programming

    Not knowing a solution to a problem, googling it, and then being even more mad that you don't understand how it even works once it does learn programming


    Not knowing a solution to a problem, googling it, and then being even more mad that you don't understand how it even works once it does

    Posted: 09 Mar 2018 10:57 AM PST

    Especially being new. Sorry, just had to rant. It's such a huge downer when you're just trying to learn the basics of something.

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

    Go back for a second degree in CS?

    Posted: 09 Mar 2018 07:41 AM PST

    I graduated in STEM back in August and been on the job hunt since. It was soul-crushing, I didn't want to do that again. It was a small field, with not a lot of room to grow in the future. I realized that's not what I want and decided to look into CS. I've been learning a bit on my own with online resources and books my friends used in school. I'm thinking about going back to get a second bachelor in CS ( would be 60 credits, roughly 2 years in total). I had no debt the first time around but if I do go back, I'm going to have to take out some loan.

    Do you think I should go back or self-taught and try to make my way into in the industry somehow?

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

    Why can I declare a function or variable anywhere in Java but in C (and CPP?) I have to declare them first(also python)?

    Posted: 09 Mar 2018 05:50 PM PST

    In my experience, in Python also, I have to define functions before calling them.

    But, since Java and Python both use an interpreter as opposed to a Compiler, shouldn't I be able to declare a function anywhere?

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

    How to improve my HTML5, CSS3, and JavaScript skills?

    Posted: 09 Mar 2018 06:58 PM PST

    Hi everyone, I'm fairly new to programming. Right now, I'm starting with something fairly easy and hope to move into more harder and complicated languages. I'm not exactly sure how to improve my skills in HTML, CSS, & JS. Everyone I know says "practice, practice practice," but what do I start off from? Do I practice making websites? Or do I make basic applications? I just really need something to based off of it, so I can practice. I'm taking a class in Advanced CSS3 & JS, but 3/4ths of the class is preparing for the certification, that I rendered somewhat useless. Anyways, any help or advice is useful! Thanks!

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

    Summer coding bootcamps for graduating highschooler (no experience)?

    Posted: 09 Mar 2018 11:38 AM PST

    Hi I have 0 coding experience, I just started the book Learn Python the Hard Way. I was wondering if any of you knew about monthlong or maybe 2 month long coding bootcamps to teach someone from scratch in the summer. Thanks

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

    [C] How do you convert an if statement that uses ranges and Boolean into a switch statement?

    Posted: 09 Mar 2018 09:24 AM PST

    My professor recently assigned me a question on a test that asked me to convert an if statement to a switch statement. But I thought that switch statements only work with constants. And when I tried searching it up online, the examples always use a single constant for each case. I also tried to convert it myself but the compiler always gives me an error and tells me to put a constant instead. How do you convert this?

    int age; if (age > 15 && age < 18){ Code } else if (age < 16){ Code } else if (age > 17 && age < 40){ Code } else if (age >= 65){ Code } else { Code } 
    submitted by /u/dizzyflames
    [link] [comments]

    How to concrete SOLID principles?

    Posted: 09 Mar 2018 01:31 PM PST

    I'm on my way to becoming an iOS Developer, however with no CS degree or even schooling(6 months developing for 2-3 hours a day). I'm having an issue where I read and I read about SOLID, however little sticks as when I'm writing code. I don't know what MY code will look like while using SOLID principles.

    I'm a visual kinetic learner, however I haven't found helpful videos or tutorials that will help drive home these CS concepts.

    What's the best way to approach this? Any ideas and helpful videos?

    Thanks,

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

    Help with .JS Photoshop Incrementation Code.

    Posted: 09 Mar 2018 08:58 PM PST

    I'm trying to use this function to increment a text layer in photoshop and save the new number as a .png file. I can get it to increment in photoshop but it's not saving the files for some reason. Anyone have any ideas? Note: most of this code isn't mine, and I'm a relative newb.

    function sfwPNG24(saveFile){

    var pngOpts = new ExportOptionsSaveForWeb;

    pngOpts.format = SaveDocumentType.PNG

    pngOpts.PNG8 = false;

    pngOpts.transparency = true;

    pngOpts.interlaced = false;

    pngOpts.quality = 100;

    activeDocument.exportDocument(new File(saveFile),ExportType.SAVEFORWEB,pngOpts);

    }

    /* Incrementing a number inside a text layer then Saving it in PNG */

    var layer = activeDocument.layers[0];

    if (layer.kind == 'LayerKind.TEXT') {

    for (var i=1; i < 7; i++) {

    layer.textItem.contents = i.toString();

    sfwPNG24( ' C:\Users\flintmaxed\Pictures\ ' + i + '.png' );

    } }

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

    What's the best gift to buy a budding programmer/coder?

    Posted: 09 Mar 2018 05:07 PM PST

    My 20 year old son is learning programming and he is actually doing very well. Right now he's learning the basics- stuff like java script and CSS. I want to keep encouraging and supporting him so.... What are some of the neatest gifts you could buy a programmer or someone who's learning how to code? I am open to anything to help him push forward. Thanks to all for your opinions.

    submitted by /u/My-Mind-Sprays
    [link] [comments]

    What is the difference between message brokers like RabbitMQ and UNIX message queues?

    Posted: 09 Mar 2018 07:14 PM PST

    Apparently, I need to put some text in here so here it is.

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

    If I wanted to get a job in development in as little time possible, what position should I start working towards?

    Posted: 09 Mar 2018 10:24 AM PST

    This is purely based on opinion/personal experience. Would you suggest going mobile, or web? Which technologies would you focus on? What are your thoughts for new developers?

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

    Help with Wes Bos Javascript30 challenge

    Posted: 09 Mar 2018 08:11 AM PST

    Hey guys. I'm a noob and need some help. If anyone has done the Wes Bos JS30 challenge you input would be awesome! So i'm just trying to get started. He provides all the starter files in a github account. I'm trying to understand how to get the sound files. I'm not too familiar with github. I have found the raw contents of the html and css files and have simply copy and pasted in sublime text. Now i need to get the sounds files but the i have no clue how to link to them when they are only found on the github page. I think i read another reddit post that says he simply git cloned the github file and he had everything on his computer. Should i do that and if so how do i do that? Any input appreciated.

    Thanks, Dan

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

    Help programming simple game in Python 3

    Posted: 09 Mar 2018 03:37 PM PST

    I just started learning Python a few days ago. I've got a grasp on the basics, but one project I've undertaken is to code a simple word game. Some of you may have heard of the Little Green Glass Door.

    The rules of the game are that only certain words can pass through the door, words containing double letters (i.e. CAT cannot, but KITTEN can; see double TT in kitten follows the rule).

    I want to code these rules, but I do not know how to specify that only entered words containing double consecutive letters make the statement true.

    Anyone able to explain to me how to code this rule into Python 3?

    Much Appreciated!

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

    not exactly programming but can someone explain who created this content?

    Posted: 09 Mar 2018 11:57 PM PST

    so I own a domain and I haven't done anything with it in years and I typed it into my browser the other day expecting to see a "page not found" and there's a whole page there. I talked to Godaddy and they said it's just instantpage which comes free with my domain. So I guess I'm just confused as to where did the content come from? It's not exactly complicated so was it just randomly generated using words that are associated with the domain? Thanks for any help. And if there is a better place for this post please let me know. I looked at webdev but they wanted flair for asking questions and I'm not sure how that works either.

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

    [C++]CAN, CANopen, SocketCAN! Help with understanding.

    Posted: 09 Mar 2018 05:51 PM PST

    I've been reading quite a lot about CAN, CANopen, and SocketCAN, and there appears to be some information that I'm just not getting.

    From what I understand (and please correct me if I'm wrong), Each device has an ID. Each CAN frame can specify that Device ID and an Object Dictionary Index which can be referenced via an SDO or a combination of SDO and PDO, the latter ultimately being faster as it requires less overhead (first you configure the PDO mapping using SDO, then continue with PDO). I'm responsible for writing a communication protocol for connection with a certain device using Linux's SocketCAN interface on an embedded Debian distribution. Here are my questions:

    1. Given a device which is acting as a master (client), how would you determine your own devices ID? Is there a Linux command for this? ifconfig isn't extremely helpful, nor has the Kernel documentation been.

    2. Given another device's ID, how does a typical transaction work? One information source had cited Identifiers, Service, Direction, and COB-ID calculation. How does the COB-ID/service type (NMT vs. PDO1 vs. PDO2 vs. SDO) differ?

    3. How would addressing a specific device parameter look given the device's ID

    Any help is greatly appreciated.

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

    A few questions with Inheritance [Java]

    Posted: 09 Mar 2018 07:27 AM PST

    Hey, guys! I'm a fairly new learner as it comes to Java, but I'm having a few problems with inheritance. Mainly these 2:

    1. If you have a subclass that extends a superclass, and let's say you have a method in the superclass that is as simple as

    public String getName() { return name; }

    And you have a variable called "name" in both the superclass and subclass - It's not necessary to replace that code in the subclass or have it call the superclass -- Like the subclass can access that method whenever? Or do I need to explicitly put in that method in the subclass?

    1. In terms of constructors, can you have a subclass call a constructor in the superclass when the instance variables in it are private? Like for example

    private String name;

    public Person(String nom) { name = nom }

    and then in the sub class

    private String name

    public Man(String nom) { super(nom) }

    Or does that not work?

    Thank you for your help in advance (And if my questions don't make that much sense, my apologies and I'll try to help whatever way I can. :))

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

    Is there a simple, basic multiple activity application I could download for Android studio?

    Posted: 09 Mar 2018 11:34 PM PST

    I tried to search on github but could not find anything recent

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

    Amazon MWS Scratchpad language?

    Posted: 09 Mar 2018 06:27 AM PST

    Hello World!

    I am trying to figure out where to learn to use this tool.

    https://mws.amazonservices.com/scratchpad/index.html

    When I put in my passwords and private keys it returns an XML response. It also gives me the "HTTP POST" and "String to Sign" (sample below) which is some code that looks like a URL, but I cannot figure out what language it is or where to use this code. I do see that it says javascript, but if I learn the javascript language will I learn how to use this program?

    I have been learning C++ and I haven't come across anything helpful for this scenario yet in my studies. Please be nice.

    // POST /Products/2011-10-01?AWSAccessKeyId=XXXXXXXX &Action=ListMatchingProducts &SellerId=XXXXXXXX &MWSAuthToken=amzn.mws.XXXXXXXXXX &SignatureVersion=2 &Timestamp=2018-01-22T21%3A58%3A55Z &Version=2011-10-01 &Signature=XXXXXXXX &SignatureMethod=HmacSHA256 &MarketplaceId=XXXXXXXX &Query=111111111 HTTP/1.1 //Host: mws.amazonservices.com //x-amazon-user-agent: AmazonJavascriptScratchpad/1.0 (Language=Javascript) //Content-Type: text/xml

    //POST //mws.amazonservices.com /Products/2011-10-01 AWSAccessKeyId=XXXXXXXXXX&Action=ListMatchingProducts&MWSAuthToken=amzn.mws.XXXXXXXXXX&MarketplaceId=XXXXXXXXXX&Query=1111111111&SellerId=XXXXXXXXX&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2018-01-22T21%3A58%3A55Z&Version=2011-10-01

    //SHA 256 HMAC 75b071d6240b012f233b103f6e8319b8ba90198d7a66e619abeXXXXXf9e6c452 //Base64 HMAC dbBXXXXAS8jOxA/boMZuLqQGY16ZuYZq+6KT/nmxFI=

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

    What are they making fun of here, I don't get it?

    Posted: 09 Mar 2018 07:19 PM PST

    Sorta lost with what to do for my major

    Posted: 09 Mar 2018 10:55 PM PST

    So I was originally Pre-Med, realized first semester that I was super interested in the tech field. Now going into my last semester sophomore year I panic switched to an Information Systems Management major but I don't know if that's really what I want to do. I love the idea of a software career and learning on my own to program but I also really enjoy the actual hardware aspect of technology. I am just all over the place and want to make the best decision for my future career. Sorry this is not exactly a programming specific question but I thought you all would be most knowledgeable. Thanks!

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

    Print bootstrap table

    Posted: 09 Mar 2018 07:50 AM PST

    I am trying to print a table created with bootstrap but I am just getting the headers and data when I go to print. Not styling at all. I am using window.print() with a button to trigger the event

    Here is the code that runs when the button print is clicked.

    printReportAssigned = function(){ var AssignedReport = document.getElementById("ReportAssigned").innerHTML; $('.target').append(AssignedReport) window.print(); }; 

    My best guess is that the innerHTML is not pulling the classes right. How can I get it to pull the classes with it if that is what is happening?

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

    How do you learn an entirely different and possibly impossible programming language?

    Posted: 09 Mar 2018 10:33 PM PST

    (title) Backstory: I want to learn APL. Do you guys have any resources about it?

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

    Receive thumbnail of uploaded video in javascript

    Posted: 09 Mar 2018 10:28 PM PST

    I have an upload box which changes its background to the uploaded image via the following code:

    $('input#id_image').on('change', function(e) { var imagePath = URL.createObjectURL(e.target.files[0]); $('.add_file_label').css('background', 'url(' + imagePath + ') scroll no-repeat center/cover'); }); 

    however I want to be able to change the background when a video is uploaded, using a randomly generated thumbnail. I can already acquire that thumbnail in my Django backend via the following code using Moviepy (instance is the uploaded FileField:

    def generate_thumbnail(instance): filename = instance.image.path thumbnail = VideoFileClip(filename) name = random_string() + '.png' time = random.randrange(60) thumbnail.save_frame('media/' + name, t=time, withmask=True) instance.thumbnail = name 

    and this thumbnail is used as the thumbnail after the form is submitted. However I need to obtain the thumbnail before the form is submitted as I want the upload box to change its background to the thumbnail as soon as the user selects their uploaded video (similar to how it changes when someone uploads an image).

    So is there any way to obtain the thumbnail generated from my Django backend? The thumbnail saves in my media folder but that's only after the form has been submitted so it isn't accessible via AJAX. Or could generating the thumbnail in the front-end be done solely using jQuery? - or is it not possible to read the video file?

    Any idea?

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

    how can i make my discord bot google search something?

    Posted: 09 Mar 2018 10:22 PM PST

    example like if i wanted to say when it christmas or something how can i make it so it actually picks it up and searches it

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

    No comments:

    Post a Comment