Wikipedia:Reference desk/Archives/Computing/2018 February 18

= February 18 =

Grabbing audio
Is there a way to grab the audio from a website using Audacity? Anna Frodesiak (talk) 04:29, 18 February 2018 (UTC)


 * Yes, set Audacity to record from the soundcard, and play from the website. This is not technically "grabbing" because the recording will not be identical to the original.  Some websites allow a download of audio files directly.   Dbfirs  12:33, 18 February 2018 (UTC)


 * Thank you, Dbfirs. :) Anna Frodesiak (talk) 21:14, 18 February 2018 (UTC)

Smartphones
Hello, my phones battery becomes empty so quickly so that I have to charge it 2 times a day although I don`t use it so much , is the replacement of the battery considered as a risky action ? 46.185.219.167 (talk) 09:28, 18 February 2018 (UTC)
 * A few phones have user replaceable batteries. If you get a good quality replacement there should be no issue. Otherwise if you don't know what you are doing, bring it to a phone repair place who can quote and do the job. Graeme Bartlett (talk) 10:12, 18 February 2018 (UTC)


 * Before you replace the battery, check what is draining it. How you check depends on the operating system, and possibly on the version of the operating system. There may be a run-away process which is using much more battery power than it should. Usually, I would expect the screen to use most of the battery power. Any process which has used significantly more power than the screen might be a runaway.


 * If you haven't restarted your phone for a long time, try that too.- gadfium 22:13, 18 February 2018 (UTC)

Padre -- Perl IDE
What is the status of Padre, the Perl IDE? Their latest release with Padre 0.94 dates to February 2012, and I haven't located any current activity beyond unanswered cries for help on their #padre IRC channel, but their download page is still active and I've not found any discussion on the fate of the project. -- 173.72.219.67 (talk) 17:11, 18 February 2018 (UTC) P.S. I found version 1.0 here on CPAN, dated November 2013, but nothing more recent yet nothing indicating the project was abandoned. -- 173.72.219.67 (talk) 21:40, 18 February 2018 (UTC)

"Landing page" sending REST request via JavaScript
At work, I have to write a "landing page" which is otherwise a normal static HTML page, but it gets query parameters in the HTTP request (e.g. ) and then uses JavaScript to send an HTTP request with those parameters to a REST service "behind the scenes" and reads its reply. I know how to write a REST service in Java but I don't know how to call it from the browser side in JavaScript. Client-side scripting was never one of my strongest points. Could someone give some sort of basic skeleton code or point me to a tutorial? J I P &#124; Talk 22:10, 18 February 2018 (UTC)
 * This sounds like you need a form with input fields called "foo" and "baz". THe form will have method="get" action="http://www.mysite.com/mypage.html" (or perhaps you can use method="post" which can handle bigger input). Then you need a submit button |"input type='submit'". more info: Graeme Bartlett (talk) 22:51, 18 February 2018 (UTC)
 * No, what you are describing is an HTML page that sends a request based on user input, with the parameters in an HTTP query. I need a page that reads the HTTP query parameters, and then sends another HTTP request based on them, in JavaScript. The scenario is that the user gets the link  in an e-mail message, and clicking on the link causes   to read the parameters   and then automatically sends another HTTP request to a different URL, based on them. All this is supposed to work automatically, without the user having to submit a form.  J I P  &#124; Talk 22:58, 18 February 2018 (UTC)
 * The XMLHttpRequest class does what you want. There are some examples here: CodeTalker (talk) 15:09, 19 February 2018 (UTC)