Jump to content

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

From Wikipedia, the free encyclopedia
Computing desk
< February 17 << Jan | February | Mar >> February 19 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


February 18

[edit]

Grabbing audio

[edit]

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

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)[reply]
Thank you, Dbfirs. :) Anna Frodesiak (talk) 21:14, 18 February 2018 (UTC)[reply]

Smartphones

[edit]

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)[reply]

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)[reply]
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)[reply]

Padre -- Perl IDE

[edit]

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)[reply]

"Landing page" sending REST request via JavaScript

[edit]

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. http://www.mysite.com/mypage.html?foo=bar&baz=quux) 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? JIP | Talk 22:10, 18 February 2018 (UTC)[reply]

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:[1] Graeme Bartlett (talk) 22:51, 18 February 2018 (UTC)[reply]
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 http://www.mysite.com/mypage.html?foo=bar&baz=quux in an e-mail message, and clicking on the link causes mypage.html to read the parameters foo=bar&baz=quux 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. JIP | Talk 22:58, 18 February 2018 (UTC)[reply]
The XMLHttpRequest class does what you want. There are some examples here: [2] CodeTalker (talk) 15:09, 19 February 2018 (UTC)[reply]