• Breaking News

    Monday, October 29, 2018

    What are some good resources for learning program GUI design such as the dos and don'ts? Ask Programming

    What are some good resources for learning program GUI design such as the dos and don'ts? Ask Programming


    What are some good resources for learning program GUI design such as the dos and don'ts?

    Posted: 29 Oct 2018 12:43 PM PDT

    I made some good progress on my program,but I'm at the point of not wanting to make a ton of mistakes in the long run which will require a lot of time and effort to correct my mistakes.

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

    When you were learning to code, how did you motivate yourself?

    Posted: 29 Oct 2018 03:49 PM PDT

    I'm taking the pre-classes for a coding bootcamp tomorrow, and I'm really nervous. To be honest my school sucks at motivating its students. I know I have the patience to get through it and coding is something I'm passionate for, but I'm still really nervous since it sounds pretty intense. (Something like classes going from 7 AM to 6 PM or longer) Those who went to school to learn to program, how did you get yourself though it?

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

    Need help beta testing a new code tool - pastehero.com

    Posted: 29 Oct 2018 12:54 PM PDT

    Hi,

    My brother and i have worked on this tool called pastehero.com, and it's time for some testing and feedback :)

    Paste Hero is meant to be a simple online code editor for sharing codes in real time, if you need help with troubleshooting, teaching and more.

    We want to make the way of collaborating with a code easier than it is today.

    No sign ups or anything, just do your thing.

    We look forward to read some constructive feedback.

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

    Is there any Audio Programming Language with a Music archive?

    Posted: 29 Oct 2018 07:41 PM PDT

    https://modarchive.org/ has a medium size archive, but can't modify Music Tracker files with a text editor. Does any Audio programming language have a similar sized archive?

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

    Is Java considered an unpopular language by many?

    Posted: 29 Oct 2018 07:11 PM PDT

    I noticed that a website has released a bundle for some Java books for a limited time, and on their facebook page, it seems like people are saying that Java is overall terrible. Somebody wrote this comment for example:

    Java sucks... you can make decent money, but you should only use it for legacy applications.

    If you are an android dev, consider moving to Flutter, google is moving that direction. If you are making websites, PLEASE use anything other than java... python, ruby, node, c# are all better choices.

    And many other people seemed to share the same opinion that Python and C# are "better".

    My understanding is that there are no "overall better" languages to use, but rather depending on the project and what you want to do, some languages may be better suited than others for that particular project.

    Does Java seriously have a bad reputation?

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

    Is there any chance Google will open source their Pixel Visual Core or camera image processing?

    Posted: 29 Oct 2018 06:36 PM PDT

    Google Maps Overlays

    Posted: 29 Oct 2018 06:31 PM PDT

    I'm a beginner and I'm trying to figure out how to make an app that allows me to make a database of shapes with specified dimensions and have the ability to overlay them with Google Maps in different locations. My goal is to be able to select several shapes, rotate, and place them on a map.

    I was wondering if anyone was able to give me a beginning point or point me in the right direction?

    Thanks in advance

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

    Question about c++

    Posted: 29 Oct 2018 06:08 PM PDT

    I have to write a program that takes a file of names, and figures out the most and second most frequent male/female names. If anyone is good at c++ and can message me to answer my questions I would greatly appreciate it.

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

    How and where to start learning about Unity to be able to create games that I see in Reinforcement Learning papers?

    Posted: 29 Oct 2018 10:54 AM PDT

    I was going through the paper of SFV: Reinforcement Learning of Physical Skills from Videos and I came across their agent learning how to flip and what not.

    I want to try out to create my own agent like that or maybe some basic version of it. I presume they (and possibly others)have used unity for developing it.
    Does anyone know how and from where can I get started. What do I need to know for that?

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

    Probably a very basic question, but what’s the best language for iOS development. Specifically making a small game.

    Posted: 29 Oct 2018 04:36 PM PDT

    Private Fields

    Posted: 29 Oct 2018 06:20 AM PDT

    When and Why Should I declare my fields as Private? Thanks!

    Ps. beginner✌

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

    Groovy/Java Script Error

    Posted: 29 Oct 2018 04:02 PM PDT

    This is a groovy script being run in JIRA to grab the current time that an issue has been in a status. Here is the code

    import com.atlassian.jira.component.ComponentAccessor;

    import com.atlassian.jira.issue.history.ChangeItemBean;

    import com.atlassian.jira.issue.Issue;

    def changeHistoryManager = ComponentAccessor.getChangeHistoryManager()

    def statusName = "Open"

    def createdDateDiff = System.currentTimeMillis() - issue.getCreated().getTime()

    List<Long> rt = [0L]

    rt << createdDateDiff

    def changeItems = changeHistoryManager.getChangeItemsForField(issue, "status")

    changeItems.reverse().each {ChangeItemBean item -> item.fromString

    // Get the time passed since status change

    def timeDiff = System.currentTimeMillis() - item.created.getTime()

    // If the status change left our status, we want to subtract the time passed since then

    if (item.fromString == statusName) {

    rt << -timeDiff

    }

    // If the status change goes to our status, we want to add the time passed since then

    if (item.toString == statusName){

    rt << timeDiff

    }

    }

    def total = (rt.sum() as Long) / 1000

    return Math.round(total) ?: 0

    The error is in the return line. It says reference to method is ambiguous. cannot choose between float, double

    How to fix?

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

    question for tkinter

    Posted: 29 Oct 2018 02:53 PM PDT

    i started learning programming 2 days ago and now i want to programm my own clicker game (like cookie clicker, kinda) anyway i have a label that displays the gold but it only states the starting gold (which is 50) when i click the button to make more gold it stays at 50 even tho the gold increases (i can see this through a print) help is apreciated.

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

    Multi-Service Monitoring [Azure]

    Posted: 29 Oct 2018 02:44 PM PDT

    I am not looking answers, so much as guidance or resources that might inform me of a solution to a problem that is proving difficult to explain to a search engine. My organization employs several APIs, serverless functions, services, and client-facing applications on Azure. We're using Application Insights which works well enough with respect to logging and monitoring individual services, but I'm poised with monitoring workflows across the entire system. So how best to approach this?

    Let me give an example.

    A transaction is triggered by system X, passed to EventGrid, picked up by a subscribing orchestration before being submitted to system Y. System Y applies some business rules and queues the outcome to either the happy or sad queue before ending up in system Z. Let's suppose a transaction never made it to Z. Where did it go wrong?

    So I hope that explains the challenge I'm facing. Any recommendations?

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

    strstr doesn't work for every string

    Posted: 29 Oct 2018 02:25 PM PDT

    I'm trying to use strstr to find a string inside of a string. e.g. "eve" in "never". My program works for some strings (it will find "he" in "the") but not others (first example). I don't know what's going wrong, help please?

    #include<stdio.h> #include<string.h> int main() { char word[20]; //this will be the word to search for char str[1000]; //this will be the words to search char *fnd; int i; //placeholder //Getting input string and word printf("Please enter a string of words: "); fgets(str,1000,stdin); printf("Please enter a word to search for: "); fgets(word,20,stdin); printf("\nPhrase: %sSearch: %s\n",str,word); //Finding word in string fnd=strstr(str,word); i = fnd-str; printf("fnd=%s,i=%d",fnd,i); } 

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

    What is involved in creating a smartphone app that can let people call each other based on skills based routing?

    Posted: 28 Oct 2018 11:13 PM PDT

    Re-posting this so hopefully I can get a better more relevant answer this time,

    I want to create a smartphone app, in Android for now, but IOS would be good too, with the following features. I am not a programmer so would appreciate an answer explaining what I need to get/do/what programming language is required. I have used Matlab, so I am not completely programming/coding/computer illiterate, and if I need to outsource this, at least I know what to ask for. Self learning a programming language isn't completely off the table, but what I am mostly after is what is involved.

    Basically I'd like an app where people can register without a phone number (Say, email address) and call each other. The catch is that I want all the users to be like agents in a call center, with skills so each caller can call other users based on skills based routing. Messaging apps themselves aren't that hard to make, saying this not because I've actually made one, but because messaging apps are so common, and there are even free/cheap platforms to create your own free messaging app, such as Sinch.

    Here are the features that already exist that I'd like to build on:

    - Users have the ability to make an account with an email address

    - All users can add characteristics to their profile, for example gender and language. These characteristics will then be variables. Users make calls based on their needs for different variables and the calls get skills-based routed. Say they want to talk to any user that is both female and speaks Spanish, they can select from a menu "Variable 1" (female) and "Variable 2" (speaks a certain language). Then, all the registered users that meet those criteria are called, but the when any one person answers, it stops the call going to other agents ie only one person can answer at a time. In other words, it's like a call center where the users THEMSELVES are the actual agents AND customers at the same time. Think of this way, all the users works in the same company in different departments that do different things want to call each other for help sometimes, so everyone is an agent to each other. For example, sometimes I might need to speak to the first IT assistant that speaks English, other times they need to speak to the first available French speaker person in marketing or something.

    - Ability to take payments and sell minutes: Like Skype, but here is another example. There used to be a language exchange/calling smartphone app called Langland. The app still exist on the Apple app store but does different things now. People who wanted to practise speaking a language buys credit from Langland, then pays another user to speak with them according to what they charged per 30 min etc.

    - Public bulletin board: Users have the ability to post images from their camera and text publicly and respond/comment on other'people's posts, based on your or your chosen variables/characteristics. Existing example: The smartphone app HelloTalk is a language exchange app allowing speakers of different languages to find and contact each other to chat/talk. Users can post text or images publicly in something called 'moments', and other users can see and comment on them, for example to correct a person's writing exercise. But, the only people that can see this are people who learn/know a common language which they select when signing up. A browser based application would be Pinterest, if it had filters (don't know if it does, I don't use it).

    Which brings me to one more question/issue: I'm confused as to whether or not this requires a SIP server or product, because SIP seems to be quite complex if not expensive considering there are so many free, no ad messenger apps. Does having the ability to send voice, text, video and images mean SIP products were needed?

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

    How to make a video in Processing play?

    Posted: 29 Oct 2018 07:55 AM PDT

    Hi fellas, anyone know how to make a video in Processing play? I've literally spent an hour debugging with my friend and I'm not why it;s not working. Maybe I didnt use the right library or the video file is weird. I went on the Processing website and tried to replace "PImage NicePier;" (in my sketch) with "movie myMovie;" and nothing is working. Anyone else encounter this problem?

    Here is the code for y'all, cbb github:

    --------

    PImage NicePier;

    PImage Photo;

    PImage Photo1;

    import processing.sound.*;

    AudioIn input;

    Amplitude analyzer;

    SoundFile file;

    float L;

    AudioIn in;

    void setup() {

    size(2560, 1600);

    // Create the Input stream

    in = new AudioIn(this, 0);

    in.play();

    NicePier =loadImage("NicePier.jpg");

    Photo =loadImage("Photo.jpg");

    Photo1 =loadImage("Photo1.jpg");

    L=0;

    file = new SoundFile(this,"Seagull.mp3"); // this is where the audio file starts

    // changes number of playback

    // Start listening to the microphone

    // Create an Audio input and grab the 1st channel

    input = new AudioIn(this, 0);

    // start the Audio Input

    input.start();

    // create a new Amplitude analyzer

    analyzer = new Amplitude(this);

    // Patch the input to an volume analyzer

    analyzer.input(input);

    }

    void draw() {

    background(255);

    L=L+0.00; //plays the sound faster

    file.rate(1);

    image(NicePier, 0, 0);

    // Get the overall volume (between 0 and 1.0)

    float vol = analyzer.analyze();

    fill(127);

    stroke(0);

    // Draw an ellipse with size based on volume

    // ellipse(width/2, height/2, 10+vol*1000, 10+vol*1000);

    //printf is a function

    // % where the numbcer would display

    // \n means new line

    //f means float

    System.out.printf("the volume is %.3f deb\n", vol);

    if (vol < 0.1 && vol > 0.02 ){

    image(Photo1, 0, 0);

    file.amp(-1); //higher the number, the higher the sound; -1 and 1

    } else if (vol > 0.1){

    image(Photo, 0, 0);

    file.play();

    }

    }

    // make birds shut up cause laptop overload

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

    Run Matplotlib live graph and Tkinter window simultaneously

    Posted: 29 Oct 2018 07:44 AM PDT

    I am trying to run a Matplotlib and a Tkinter window simultaneously in Python. The matplotlib is a live graph that displays data from a sensor, and the Tkinter window contains both a timer and a frame to display the instantaneous sensor reading. The code for each component is shown below:

    Timer/sensor reading combo:

    adc = Adafruit_ADS1x15.ADS1115(address=0x48, busnum=1) GAIN = 4.096 root = Tk() root.geometry('%dx%d+%d+%d' % (1024, 75, 0, 0)) x1 = adc.read_adc(0, gain=1) x2 = ((x1*4.096)/32767.0)*.00176678 x3 = '%.3f' % x2 var = x3 labelfont = ('times', 20, 'bold') label1 = Label(root, text="[Timer]", ) label1.pack(side=LEFT) label2 = Label(root, text=var) label2.pack(side=LEFT) label1.config(font=labelfont) label1.config(height=3, width=35) label2.config(font=labelfont) label2.config(height=3, width=35) def countdown(count): var2 = "Time", "left:", count label1.config(text=var2, bg="green") if count > 0: root.after(1000, countdown, count-1) if count == 0: var3 = "Test", "ended.", "Press", "*", "for", "new", "test" label1.config(text=var3,bg="red") root.bind('<KP_Enter>', gettime) def gettime(self): var4 = easygui.enterbox("Enter the time") def update(): x1 = adc.read_adc(0, gain=1) x2 = ((x1*4.096)/32767.0)*.00176678 x3 = '%.3f' % x2 var = "Pressure:", x3, "psi" label2.config(text=var) root.after(500, update) countdown(20) root.after(500, update) root.mainloop() 

    Matplotlib live graph:

    adc = Adafruit_ADS1x15.ADS1115(address=0x48, busnum=1) GAIN = 1 #ask user for input time global t def gettime(): global t def gettext(self): global e global t string = e.get() #print int(string) t = int(string) root.destroy() root = Tk() root.geometry("1024x600") root.title('Enter the time') root.bind('<KP_Enter>', gettext) labelfont = ('times', 70, 'bold') label = Label(root, text="Enter the time:") label.config(font=labelfont) label.config(height=3, width=20) label.pack() global e e = Entry(root) e.pack(ipady=3) e.focus_set() root.mainloop() #method to set the amount of time that the test will last gettime() # Parameters x_len = t # Number of points to display y_range = [0,1] # Range of possible Y values to display # Create figure for plotting fig = plt.figure() mng = plt.get_current_fig_manager() mng.resize(*mng.window.maxsize()) ax = fig.add_subplot(1, 1, 1) xs = list(range(0, x_len)) ys = [0] * x_len ax.set_ylim(y_range) # Initialize communication with TMP102 #tmp102.init() # Create a blank line. We will update the line in animate line, = ax.plot(xs, ys) # Add labels plt.title('Pressure') plt.xlabel('Time') plt.ylabel('Pressure(psi)') # This function is called periodically from FuncAnimation def animate(i, ys): #get value from sensor x1 = adc.read_adc(0, gain=GAIN) x2 = ((x1*4.096)/32767.0)*.00176678 # Add y to list ys.append(x2) # Limit y list to set number of items ys = ys[-x_len:] # Update line with new Y values line.set_ydata(ys) return line, # Set up plot to call animate() function periodically ani = animation.FuncAnimation(fig, animate, fargs=(ys,), interval=300, blit=True) plt.show() 

    Both of these components work on their own, but now I need to integrate them into the same program , and I am stuck. I have searched all over Google and StackOverFlow and have found nothing similar to this issue

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

    Looking for one or more languages to dedicate my time to.

    Posted: 29 Oct 2018 02:50 AM PDT

    After experimenting with different languages and types of programming, I'm looking for a language that I can dedicate my time to, a language I can spend 10 000 hours on. I've done most of my work in python - Algorithms for mathematical equations and such - and Java - Desktop GUI creation with Swing -, but found that neither language is optimized for what I want to create. Looking for languages that will allow the creation of advanced desktop GUIs (Sidenote: I know this can be done in Java, but would rather write GUI applications in a language that is widely used/optimized for this purpose- Thought about python Kivy and NetBeans already, I am considering learning Kivy), gamedevelopment (both 2d and 3d), running advanced animated simulations, etc.

    I know I am asking quite a lot here, but are there any languages, based on my background and what I want to create, that you would recommend? I'm quite indecisive, I suffer from the big O, just need somebody to point me in the right direction. Also, I'm not the most experienced in the field of programming, so if I've said something ridiculous, please shittalk me so I will learn. Thanks in advance.

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

    ATM-machine c-language

    Posted: 29 Oct 2018 03:53 AM PDT

    I have one programming course in university and now i'm stuck on last homework. I need to program atm-machine. I't works fine now, but I have to modify it for a bit. Now I can withdraw any sum from zero to 1000 dollars. I should be able to withdraw 20, 40, 50, 60, 70, 80, 90, 100, 110...........1000 dollars, and machine can give only 20 or 50 dollars bills. Any advices how to make that work?

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

    how PDF password remover works ?

    Posted: 29 Oct 2018 09:29 AM PDT

    No comments:

    Post a Comment