• Breaking News

    Wednesday, October 17, 2018

    Developing an Android app for airpods Ask Programming

    Developing an Android app for airpods Ask Programming


    Developing an Android app for airpods

    Posted: 17 Oct 2018 08:48 PM PDT

    Hello,

    I just started creating apps and recently bought airpods but I have an Android phone; was wondering if it was possible for me to develop an app for Android to control the functionality of airpods. I see there are some apps that display the airpods battery life and was wondering how that's possible as I can't find an API for the airpods... If this is possible what resources would I need? Or is this to be done through Bluetooth? Any guides are greatly appreciated, thank you! :)

    submitted by /u/3gyp7i4n
    [link] [comments]

    Can anyone help with this Google Sheets Node.JS API Problem?

    Posted: 17 Oct 2018 08:05 PM PDT

    So I'm trying to make a discord bot where based on a command, it adds a column with the username of the sender and based off of the command input, it finds a row and adds a number to the new column there. For example, "=rateM 8 | led zepplin | immigrant song" would find the row containing led zepplin and immigrant song, and then add a new column (or write to an existing column) with the message author's name at the top of the column and then in the row with the song and in the user's column, input the score. How might I do this? can anyone help me with this? my main problem is actually getting it so that the node.js app is connected to the spreadsheet. thanks!

    code is here: https://glitch.com/edit/#!/emberrate?path=app.js:7:13

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

    How to check if a letter is being pressed in Turing

    Posted: 17 Oct 2018 07:48 PM PDT

    This is my current code and it is not working can someone help

    var chars: array char of boolean

    Input.KeyDown (chars)

    if chars = ('Y') then

    Colour = 14

    end if

    This should change the The variable Colour to yellow but it does not, using Turing 4.1

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

    Continuous Integration DB credentials?

    Posted: 17 Oct 2018 07:38 PM PDT

    I'm sorry if this has been asked before, or if this isn't the right sub.

    For a college assignment I have a Java Spring + Hibernate project that I want to apply continuous integration/delivery to, specifically on azure devops.

    How would I have to handle the credentials to the DB? I'm assuming there is a better way than just leaving them in the configuration file, where they could be seen by all.

    I've tried to look this up online but maybe I'm just not phrasing the question well enough because I can't seem to find anything.

    Thanks for your help.

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

    Best Free Python IDE ?

    Posted: 17 Oct 2018 04:26 AM PDT

    I'm blanking on an easy solution- Update multiple webpages with text I can easily update from anywhere

    Posted: 17 Oct 2018 02:26 PM PDT

    There must be some include function I can use between javascript and php.

    However I am unsure where I can store this data to be pulled, and how I can write to it from my phone.

    I suppose I can write to the database, but now I'm building a front end for something that seems like it should be mindnumbingly easy to do.

    Can I use a include and pull in website data to display with a text file or similar?

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

    While hunting obscure bugs.... How do you document evidence for the root cause?

    Posted: 17 Oct 2018 01:34 PM PDT

    I'm hunting a very obscure bug...

    Evidence comes from many places.... Jenkin's test logs, bench testing, code snippets, debugger, scope screenshots, log traces, .....

    I can't help feel there should be a more systematic way than storing all this in a text file or worse, my head.

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

    How should one submit a program for a job offer?

    Posted: 17 Oct 2018 01:30 PM PDT

    I just finished writing a program for a job offer and realized that I have no idea how should I submit it... It's a simple Java program, runs on Command Prompt.

    Is there a standard or expected way? Should I give them a zip file with the project folder inside or an executable (.jar in my case) or both? I'm required to send it by email, no other info is given... Thanks in advance!

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

    Newbie to programming! Looking to learn nodejs! Can you advise?

    Posted: 17 Oct 2018 01:22 PM PDT

    Hey all! I'm new to the development world and want to get into nodejs since the company I work for is moving over to all node applications. I have a little Java development experience and was wondering what resources you all would recommend to teach myself more!

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

    If I have a serial device that can take serial commands, does that mean Python or any language can talk to it?

    Posted: 17 Oct 2018 09:29 AM PDT

    I got a Chinese made magnetic card dispenser. All the software they provide is made for Windows. It uses a serial connection. Technically, since its a serial device, does that mean I can use Python and PySerial for example to talk to the device and control it? I really want to stick to Python and I dont want to use C# (some of the example code they made). If I am right in my thinking that any language can be used, its just a matter of using the standard serial commands they specify any any language with serial support should work correct?

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

    What should I learn to automate some stuff on excel and on a browser.

    Posted: 17 Oct 2018 08:26 AM PDT

    So in my work I need to do a series of really tedious and repetitive tasks. Basically, there is a spreadsheet on excel with a lot of names and a database on a site (I need to log-in to the site, if that makes a difference), I have to copy the name from the spreadsheet into the search of the database, download the data from the person and store in a pasta.

    Since there a lot of names, I really would appreciate if someone would tell me what progam/code should I learn.

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

    [Python], yeah kinda, Python man Mathematics as is. Making code smaller, just for the hell of it?

    Posted: 17 Oct 2018 06:02 PM PDT

    Okay, so I am there, it works, but can you help me making it more elegant?

    Now, the instruction is in German this: https://i.imgur.com/jmeADVd.png

    and we (study group) came to this: https://imgur.com/a/FVHUHlJ

    So, is there any way to do it more elegant? Not for the homework, which we solved, but for peace of my mind. There has to be a way do do it more quickly.

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

    How do I reverse output in an if/else function?

    Posted: 17 Oct 2018 11:35 AM PDT

    I've been meddling in C++ and just doing little suggested "assignments" for beginners. I'm trying to get my function to count down to zero from a positive number and then back up to the original number. I know I'm missing something important and I've searched the web but can't find a suggestion that I understand fully and I've confused myself at this point.

    Please take a look at the code I've got so far and hopefully you can help me out. Thank you in advance!

    include "pch.h"

    include <iostream>

    using namespace std

    int main()

    {

    int number;

    int choice;

    cout << "Enter any positive number." << endl;

    cin >> number;

    do {

    if (number > 0); cout << "number--" << endl; else (number = 0); cout << "0" <<; 

    if (number > number);

    cout << "number++" <<endl;

    else (number = number);

    cout << "number" << endl;

    while (number > 0);

    }

    cout << "Would you like to enter a new number and start again?"

    << "Enter Y for Yes or N for No." << end;

    cin >> choice;

    }

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

    Any tried and true approaches to finding a good passion project that is within ones ability?

    Posted: 17 Oct 2018 10:58 AM PDT

    I'm a CS undergrad, and I know I want to make something outside of the curriculum, both to build maturity, and as resume candy. However, I'm both stuck on finding a idea that interests me, and on knowing if a given idea is within my capability. (Career-wise, I am interested in AI and data science, if relevant--not looking for suggestions but advice. And I've just hit a discussion of data structures in my track.)

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

    Problem on my midterm

    Posted: 17 Oct 2018 10:36 AM PDT

    Hello I was doing my midterm and I got my results back and really confused by this question.

    https://imgur.com/gallery/5UAukBy

    Really confused on how he got this output. He went over the midterm in class and provided the ratio for the last row. Maybe one of you guys who maybe did this problem in college can help me out. I'm trying to solve this on my own but cannot find some sort of correlation at all.

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

    Help with Coding Simple program

    Posted: 17 Oct 2018 09:37 AM PDT

    I am trying to write code for a simple "sum of two numbers" web app. I am a beginner and am getting the same error for a specific line of my code.

    Here is the code:

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

    Dim sum As Integer

    Dim a As Integer

    Dim b As Integer

    Label4.Visible = True

    If TextBox1.Text = "" Then

    Label4.Visible = False

    MessageBox.Show("Sorry cannot be empty.")

    TextBox1.Focus()

    End If

    a = Val(TextBox1.Text)

    b = Val(TextBox2.Text)

    sum = (a + b)

    Label4.Text = "The sum of " & a & " and " & b & " is " & sum & "."

    End Sub

    Private Function Val(text As Object) As Integer

    Throw New NotImplementedException()

    End Function

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    Label4.Visible = False

    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

    TextBox1.Text = ""

    TextBox2.Text = ""

    Label4.Text = ""

    TextBox1.Focus()

    End Sub

    End Class

    I am getting the error on Button1.Click and Button2.Click that states "Handles clause requires a WithEvents variable defined in the containing type or one of its base types."

    How can I fix this issue?

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

    Newbie "programmer" here

    Posted: 17 Oct 2018 09:03 AM PDT

    What are some fun things to try out in python and whats the best way to learn?

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

    Html/Css/Java Problem with program

    Posted: 17 Oct 2018 08:59 AM PDT

    So this is a take home test question that i have to have done by tonight and im simply lost with 3 pieces of it, i cant get the text to stay on the same page when I click the button, I dont know how to make wrench red and I do not know how to print the output using a loop I took the class for javascript last here and I just cant remember a lot of it and I have tried looking it up for hours and I am running out of time. Thank you in advance.

    Here is the problem: https://imgur.com/a/mPJ1ue3

    Here is what I have so far: http://45.55.136.114/~jwagner06/TestQ35.html

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

    University or Community College

    Posted: 17 Oct 2018 08:51 AM PDT

    If this isn't the right place, sorry, but I'm a senior and planning to go into computer science. After some research and talking to people, I've come to the conclusion that University is expensive and I personally don't want to spend the rest of my life paying college debt. Is it a good idea to go to a good community college instead? Or should I go to university to help my chances in the job market?

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

    Chartistjs: Trying to add a "<br>" tag between the label and the value of the pie chart but in the HTML its not doing the line break and is appearing "<br>" tag. How can i solve this?

    Posted: 17 Oct 2018 08:01 AM PDT

    Here is an image of what is happening:

    https://ibb.co/fOA7Af

    And here is my javascript code:

    function makePieChart(pElem, pData) { const arrLabel = pData[ 'labels' ], arrData = pData[ 'data' ], title = pData[ 'title' ]; var data = { series: arrData }; new Chartist.Pie( pElem, data, { labelInterpolationFnc: function ( value, idx ) { return `${arrLabel[ idx ]} <br> ${arrData[ idx ]}`; } } ); } //makePieChart 

    It looks like its not parsing the HTML, how can i solve this?

    submitted by /u/Don-g9
    [link] [comments]

    Okay, one more help

    Posted: 17 Oct 2018 10:27 AM PDT

    I fixed the previous issue but now I am getting two errors for this section of the code:

    Private Sub Button2_Click(sender As Object, e As EventArgs) WithEvents As Handles btnClose2_Click.

    TextBox1.Text = ""

    TextBox2.Text = ""

    Label4.Text = ""

    TextBox1.Focus()

    End Sub

    End Class

    It states that "WithEvents" needs an End of statement.

    I've been googling like crazy to figure it out.

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

    Found someone talking about the reason for the ps4 brick/exploit, wondering if it’s true

    Posted: 17 Oct 2018 02:43 AM PDT

    "There are all kinds of interesting ways you can f*ck up text processing, especially if you're coding in C, C++ or another unsafe language.

    For example, say messages have a maximum size of 140 characters (I don't know if they do, I don't use this feature, but let's assume they do for the sake of the example) and you naively reserve a fixed size 140 byte buffer for them. As long as people are just sending plain english messages, no problem. But when people can enter other characters, like emoji, that are encoded using multiple bytes you suddenly get a message that's too large for the buffer, even if it's only 140 characters, that doesn't necessarily mean only 140 bytes. It does for simple text so you don't notice during testing, until someone posts a bunch of unicode text and boom.

    Dealing with text is more complicated than you'd think. A question like 'how long is this piece of text' has multiple different answers depending on what length you're actually looking for."

    Source: https://www.reddit.com/r/PS4/comments/9nselm/warning_set_your_messages_to_private/?utm_content=title&utm_medium=hot&utm_source=reddit&utm_name=PS4

    Just asking if most of what they are saying is true. I did a bit of research myself and found that some of it isn't true so just want to know what others think.

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

    I stumbled upon this question in a python quiz. I think the first option is the correct answer but codecademy says otherwise.

    Posted: 17 Oct 2018 01:37 AM PDT

    I am new to coding and I might be wrong. Any help is appreciated greatly.

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

    No comments:

    Post a Comment