• Breaking News

    Tuesday, February 6, 2018

    Is there a site for more industrial programming exercises/problems? Ask Programming

    Is there a site for more industrial programming exercises/problems? Ask Programming


    Is there a site for more industrial programming exercises/problems?

    Posted: 06 Feb 2018 05:09 PM PST

    As much as I enjoy completing challenges on HackerRank or Project Euler or other such sites, they train logic, mathematics, thinking in general.

    I am trying to find exercises for more industrial problems like creating an application, API, UX/UI design, Design patterns etc. and exercises for more niche programming circles like Distributed Programming, Compiler Design, Security etc.

    I could not find such a place and most answers went back to HR, RC, PE.

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

    Help With a program

    Posted: 06 Feb 2018 10:13 PM PST

    I have hardly no experience in coding but I was wondering if it would be hard to write a program that runs every day and moves files from a folder into a new sub folder labeled with the days date.

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

    What is the value stored in x from the following expression? int x = 5.0 * 3 / 2;

    Posted: 06 Feb 2018 09:07 PM PST

    When i put "error" or "7" in on my quiz it keeps telling me that it is wrong, any help?

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

    Android dev who never made a website need some advice on web development

    Posted: 06 Feb 2018 04:53 PM PST

    Hi, I worked freelance as Android developer, and I have some knowledge of programming and some advances techniques like dependency injection and more, so I am not a complete noob.

    So i need to create my first website with modules: user management(fb/google login, permissions), CRUD articles, rest API calls to several endpoints.

    My questions are : What stack (technologies) should I use ? Are here some good existing modules for user management or CRUD articles ?

    Thanks for advice, I am interested in Python frameworks or Golang. Is PHP still necessary in 2018 ?

    submitted by /u/mornie-utulie
    [link] [comments]

    Help with this problem

    Posted: 06 Feb 2018 07:50 PM PST

    Hey guys I have started learning python on my own as a hobby and i really enjoy it. However, learning on my own can be tough. I bought a python text book and do the work out of the book to help me learn. Can someone write the code on how to do this problem? I am having difficulty understanding it and being able to see the code would help me comprehend the question a little better.

    The credit plan at TidBit Computer store specifies a 1-% down payment and an unnual rate of 12% Monthly payments are 5% of the listed purchase price, minus the down payment. Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, of a payment schedule for the lifetime of the loan. Each row of the table should contain the following items: the month number (beginning with 1) the current total balance owed the interest owed for that month the amount of principal owed for that month the payment for that month the balance remaining after the payment

    Thank you. I am using Python 3.6

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

    Java Selenium how to check multiple same parent elements for specific child elements.

    Posted: 06 Feb 2018 11:22 AM PST

    I'm trying to get contact information off a webpage. Each contact is listed within an "info" class. The information I want is found in an "h2", "adr", and "primary phone" class. What I want to do is iterate through each "info" element, check if it has those 3 child elements, and if all 3 exist add it to an Array List.

    I can get the information from info fine with:

    List <WebElement> companyName = driver.findElements(By.className("info")); 

    Here is what the parent-child html relationship looks like:

     <div class = "info"> <h2 class = "n"></h2> <div class = "info-section info-primary"> <p class = adr> text </p> <ul class = "primary phone"> phone# </u> </div> </div> 

    However I have no clue how to filter the information I get.

    Example Output:

    ABC Company Name, address, (555) 555-555-5555, Show Banner, textextext, WebsiteContact USMore Info 

    the above is an example of what each position in my List will hold so companyName.get(0) will display the above

    What I want is this:

    ABC Company Name, address, (555) 555-555-5555 

    This ^ is what I want companyName.get(0) to give me instead

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

    Reading .dat and .pgm images in Java

    Posted: 06 Feb 2018 01:30 PM PST

    Does anyone here have experience with image processing? I am trying to write a program for color quantization (essentially reducing a 16 bit image to a 8 bit image) I developed a solution that works for .jpg /png images, but does not work for .dat /pgm files. If anyone can suggest a tweak that could help me, that woudl be great.

     package Assignment3; //package Test; import java.awt.*; import java.awt.image.BufferedImage; import java.io.*; import javax.imageio.ImageIO; import javax.swing.JFrame; import java.util.Scanner; public class ConvertImage{ public static void main(String args[])throws IOException{ BufferedImage image = null; File f = null; try { f = new File("lennapng.png"); image = ImageIO.read(f); }catch(IOException e){ System.out.println(e); } //get width and height int width = image.getWidth(); int height = image.getHeight(); width = image.getWidth(); height = image.getHeight(); for(int y = 0; y < height; y++) { for(int x = 0; x <width; x++) { int p = image.getRGB(x, y); // System.out.println("rgb "+ rgb); //int a = (p>>24) & 0xff; int r = (p>>20) & 0xf; int g = (p>>12) & 0xf; int b = (p>>4) &0xf; int grayLevel = (int) (0.299*r+0.587*g+0.114*b); int gray = (grayLevel << 20) + (grayLevel << 12) + (grayLevel<<4); image.setRGB(x,y,gray); } } //set new RGB p = (a<<12) | (r<<8) | (g<<4) | b; image.setRGB(x, y, p); */ try{ f = new File("outputl.png"); ImageIO.write(image, "png", f); }catch(IOException e){ System.out.println(e); } } } 
    submitted by /u/metalloidica
    [link] [comments]

    create a UML state diagram of C parser. Help.

    Posted: 06 Feb 2018 02:26 PM PST

    below is a link to a code of a simple shell in C.

    https://pdos.csail.mit.edu/6.828/2017/homework/sh.c

    The code involves a parser.

    I need a UML state diagram for that parser. Can somebody help? I would greatly appreciate it.

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

    How to go about creating a PDF library for Xamarin.Forms

    Posted: 06 Feb 2018 02:12 PM PST

    I need a library where I can text search PDF documents. There are a lot of expensive options out there. How would I create my own library?

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

    What are the pros and cons of schema.org?

    Posted: 06 Feb 2018 09:24 AM PST

    So I have never been much of a database guy. I am more of an administrative/mobile/product development guy with a Bachelors degree in Computer Science. I was recently brought on as a consultant for a large company working with both hardware and mobile software as my experience is mostly in interfacing Mobile apps with hardware.

    We've been working on an app with a significant recipe component. The company has some recipes on their website, but from what I can tell there is nothing special there. One of the things I presented nearly a year ago was that we could make some significant strides in the recipe area that no one seems to be doing. Namely, quantifying ingredients for automatic scalability. Their current web developer is very adamant about using schema.org and storing all the recipes as plane strings. To me this seems silly if you are wanting to be innovative. As far as I know, the company isn't looking to just score high on search results for recipes, but would rather make the app, web, and hardware work together in a way that is cutting edge and innovative. With that said...

    While I can see some benefits to using schema.org for conformance sake, it seems like a box that limits changes to the status quo. I'd like to hear others opinions on this and get a better understanding of what you think.

    Thanks in Advance

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

    attempting to write AR Filter Code. 1st timer please be patient.

    Posted: 06 Feb 2018 01:01 PM PST

    So I'm writing an AR filter code for phones if anyone can tell me if it looks good or has tips please let me know. thank you

    <Script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script> <Script src="https://rawgit.com.jeromeetienne/ar.js/master/aframe/build/aframe-ar.js"></script> <Script>THREEx.ArToolkitContext.baseURL = 'https://rawgit.com/jeromeetienne/ar.js/master/three.js/'</script> <body style='margin : 0px; overflow:hidden;'> <a-screne embedded artoolkit='sourceType: webcam;'> <a-box position='0 0.5 0' material='opacity: 0.5;'></a-box> <a-marker-camera present='hiro'></a-marker-camera> <a-scene> </body>

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

    How do you have retros with a distributed team?

    Posted: 06 Feb 2018 05:39 AM PST

    Color reduction for each pixel in image

    Posted: 06 Feb 2018 08:30 AM PST

    I want to reduce the number of bits per pixel in an image. For ex, 8 bit -> 256 color levels 4 bits -> 16 color levels

    how would i do this for each pixel in the program below?

    //package Test; import java.awt.*; import java.awt.image.BufferedImage; import java.io.*; import javax.imageio.ImageIO; import javax.swing.JFrame; import java.util.Scanner; public class ConvertImage{ BufferedImage image; int width; int height; public ConvertImage() { try { Scanner sc = new Scanner(System.in); System.out.println("image.png"); String fname = sc.next(); File input = new File(fname); image = ImageIO.read(input); width = image.getWidth(); height = image.getHeight(); for(int x = 0; x <width; x++) { for(int y = 0; y < height; y++) { int rgb = image.getRGB(x, y); int r = (rgb >> 16) & 0xFF; int g = (rgb >> 8) & 0xFF; int b = (rgb & 0xFF); // int grayLevel = (int) (0.299*r+0.587*g+0.114*b); // int gray = (grayLevel << 16) + (grayLevel << 8) + grayLevel; image.setRGB(x,y,gray); } } File ouptut = new File("grayscale.png"); ImageIO.write(image, "png", ouptut); } catch (Exception e) {} } } 
    submitted by /u/metalloidica
    [link] [comments]

    Building a time management app?

    Posted: 06 Feb 2018 07:38 AM PST

    Hi all,

    I'm interested in building a small time management tool that automatically records how I spend my computer time. So it would track the users active time spent interacting with each application without any manual user input. What would be the optimal tools to create this quick and simply for windows? Not looking to spend a lot of time on making it as it's mainly just for my own use, and really the data is all that counts. My background is mainly in webdev stuff, python/javascript/node. Never tried my hand at building a desktop app.

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

    New to coding - Any tips?

    Posted: 06 Feb 2018 02:18 AM PST

    As part of my degree I have to create a program in C#. I have no prior experience in coding and was hoping some of you may have some resources I could use/some helpful advice. For context the program is a university library system (the book kind of library).

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

    Conferences in Netherlands 2018

    Posted: 06 Feb 2018 12:58 AM PST

    Hello. I'm looking for JVM, polyglot or software craftsmanship conference which takes place this year in Netherlands. The only one I've found so far is http://joyofcoding.org/ but I would prefer something longer than one day. Any recommendations?

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

    No comments:

    Post a Comment