Wikipedia:Reference desk/Computing: Difference between revisions
Line 250: | Line 250: | ||
:Do you actually have evidence that DNS latency is an issue for you? Your application must be doing an extremely large number of DNS lookups to many different domains for this to be a problem. If that's really the case, you may want to look at [[Amazon Route 53]]. [[User:CodeTalker|CodeTalker]] ([[User talk:CodeTalker|talk]]) 02:27, 8 April 2017 (UTC) |
:Do you actually have evidence that DNS latency is an issue for you? Your application must be doing an extremely large number of DNS lookups to many different domains for this to be a problem. If that's really the case, you may want to look at [[Amazon Route 53]]. [[User:CodeTalker|CodeTalker]] ([[User talk:CodeTalker|talk]]) 02:27, 8 April 2017 (UTC) |
||
:Route 53 is AWS's DNS service and is probably the fastest within AWS. It's not free but it's cheap enough that its cost shouldn't bother you unless your query load is insane. [[Special:Contributions/50.0.136.56|50.0.136.56]] ([[User talk:50.0.136.56|talk]]) 05:26, 8 April 2017 (UTC) |
|||
= April 8 = |
= April 8 = |
Revision as of 05:26, 8 April 2017
of the Wikipedia reference desk.
Main page: Help searching Wikipedia
How can I get my question answered?
- Select the section of the desk that best fits the general topic of your question (see the navigation column to the right).
- Post your question to only one section, providing a short header that gives the topic of your question.
- Type '~~~~' (that is, four tilde characters) at the end – this signs and dates your contribution so we know who wrote what and when.
- Don't post personal contact information – it will be removed. Any answers will be provided here.
- Please be as specific as possible, and include all relevant context – the usefulness of answers may depend on the context.
- Note:
- We don't answer (and may remove) questions that require medical diagnosis or legal advice.
- We don't answer requests for opinions, predictions or debate.
- We don't do your homework for you, though we'll help you past the stuck point.
- We don't conduct original research or provide a free source of ideas, but we'll help you find information you need.
How do I answer a question?
Main page: Wikipedia:Reference desk/Guidelines
- The best answers address the question directly, and back up facts with wikilinks and links to sources. Do not edit others' comments and do not give any medical or legal advice.
April 3
bash/sed problem=
Hi. ubuntu linux. I have a file that looks like this:
2 23 9453
and I want to automatically create a file that looks like this:
foo "bar 2" baz foo "bar 23" baz foo "bar 9453" baz
(the actual file is thousands of lines long and I need to do this conversion hundreds of times). Can anyone suggest a way to do this using a bash script? I am currently defining an emacs macro but I want to automate it. thanks in advance, Robinh (talk) 01:34, 3 April 2017 (UTC)
- You could use sed to substitute the whole line, something like
sed -e 's/^\(.*\)$/ foo "bar \1"\n baz/'
- I cannot test it for you though. awk is simpler for this.
- In bash you should be able to do a while loop, the test is read a variable, and then echo it with the correct text. But since I am not confident I would get the syntax 100% without a test I wont insert it here. Graeme Bartlett (talk) 01:57, 3 April 2017 (UTC)
- . I didn't know you could putResolved
\n
in to the replacement part in sed. Thanks! Robinh (talk) 02:01, 3 April 2017 (UTC)- I also didn't think to use the bracket notation to keep the number in sed's memory. Robinh (talk) 02:03, 3 April 2017 (UTC)
- You can also use backslash-newline in the replacement part if you find it more legible; and since you want the entire original and not just a selected part of it, you can use & in the replacement. I'd write:
- I also didn't think to use the bracket notation to keep the number in sed's memory. Robinh (talk) 02:03, 3 April 2017 (UTC)
sed 's/.*/foo "bar &"\ baz/'
- Note, however, that if you do it this way, any whitespace on the line before the "baz" is significant and will go in the final output. --76.71.6.254 (talk) 18:45, 3 April 2017 (UTC)
- It's pretty straightforward to do it with bash alone -- something like this:
while read n; do echo foo \"bar $n\"; echo baz; done
- CodeTalker (talk) 18:13, 3 April 2017 (UTC)
- You could have a file containing the replacement, like (part.txt)
foo "bar thing" baz
- and another file with the replacements (list.txt)
2 23 9453
- and then run
for a in $( cat ./list.txt ) ; do sed "s/thing/$a/g" < part.txt >> final.txt ; done
There is a way of getting a file intofor
, but I can't remember what it is; however this will work. LongHairedFop (talk) 19:00, 3 April 2017 (UTC) - Just trying to make it more organized:
while IFS='' read -r n; do printf 'foo "bar %s"\nbar\n' "$n"; done
(Shouldn't make a difference as you are just taking in numbers.mapfile
with somearray=("${array[@]/#/PREFIX}") array=("${array[@]/%/SUFFIX}")
can be fun too...) --Artoria2e5 contrib 00:28, 4 April 2017 (UTC)
- and then run
for good measure, gawk: gawk '{printf("foo \"bar %d\"\n",$0);print "baz";}' < file.txt
Asmrulz (talk) 20:42, 3 April 2017 (UTC)
speaking of emacs, this should be doable in elisp alone. Asmrulz (talk) 20:48, 3 April 2017 (UTC)
elisp only, works on the current buffer, outputs to a temp buffer called "output-(name of old buffer)", use at your own risk:
(global-set-key [f6] (lambda () (interactive) (let* ((k (current-buffer)) (m (concat "output-" (file-name-base (buffer-file-name k)))) (n (with-current-buffer k (widen) (buffer-string))) (o (split-string n "\n" t))) (with-output-to-temp-buffer m (mapc (lambda (a) (princ (concat "foo \"bar " a "\"\nbaz\n"))) o)))))
Asmrulz (talk) 22:12, 3 April 2017 (UTC)
Samsung Lock-Lock Screen
Samsung phones, as with all Android phones, has a lock screen. They also have a second lock screen that appears after the lock screen has been on for a minute or so. What is the second lock screen called? For reference: I turned on notifications for the lock screen. If I am in the initial lock screen, I see them. Then, the phone locks a second time to the other screen and all it shows is a clock. There is an icon indicating that notifications are present, but the notifications are not shown. Looking for documentation is difficult because I don't know what the lock-lock screen is actually called. 209.149.113.5 (talk) 14:31, 3 April 2017 (UTC)
- That is the lock screen with "Hide Content" enabled. (Sometimes called the "Hidden Content lock screen".)
- You can change this behavior in the "Sound and Notifications" setting screen with the "Notifications on Lock Screen" setting. (You can change it to "Do not show notifications", "Hide Content", or "Show Content".) ApLundell (talk) 21:03, 3 April 2017 (UTC)
- It is called the "Always On" screen. Under Settings-Display you will find a setting to turn it off or change what it shows. It is very limited. It can show a clock, the calendar, or random pictures. When I first got my S7, I worried that it was on all the time (as the name implies). It turns off if you put your phone in your pocket or a purse or you turn your phone over so the screen is face down. 71.85.51.150 (talk) 22:42, 3 April 2017 (UTC)
- Found it by googling "samsung always on". Says that it works with few apps, mainly just Samsung apps. So, I have to use Samsung's txt app, not the Verizon txt app to be compatible with it. 209.149.113.5 (talk) 13:06, 4 April 2017 (UTC)
Can i safely remove Clementine in Ubuntu?
I can't remember if I installed Clementine or it was bundled with Ubuntu 16.04. Tried Google searching but i'm only getting instructions on how to install it. Thanks ツ Jenova20 (email) 20:25, 3 April 2017 (UTC)
- Clementine is a branch of the Amarok music player. You don't need it. You can remove it. Just use your favorite package manager to remove it. 71.85.51.150 (talk) 22:43, 3 April 2017 (UTC)
- Thanks ツ Jenova20 (email) 20:06, 4 April 2017 (UTC)
- Just make sure when you do that it's not lost and gone forever.Yes that was corny as hell and I just don't care. ᛗᛁᛟᛚᚾᛁᚱPants Tell me all about it. 20:21, 4 April 2017 (UTC)
- Old and corny! *Thumbs up* ツ Jenova20 (email) 09:13, 5 April 2017 (UTC)
- Just make sure when you do that it's not lost and gone forever.Yes that was corny as hell and I just don't care. ᛗᛁᛟᛚᚾᛁᚱPants Tell me all about it. 20:21, 4 April 2017 (UTC)
- Thanks ツ Jenova20 (email) 20:06, 4 April 2017 (UTC)
April 4
Flicker test damage monitor
Possibly stupid question.
- EPILEPSY WARNING*
Stumbled upon this by accident (Google: "monitor flicker test"), ran it for 10-15 seconds until I figured what the hell was going on and closed it. This doesn't damage monitors (LCD, 144hz), right? Not noticing anything different so far.
http://www.testufo.com/#test=flicker Matt714 (talk) 02:40, 4 April 2017 (UTC)
- Unless you are using a Commodore PET or TRS-80 Model III, no. See Killer poke. I have heard rumors of this happening with some early CGA or VGA monitors, but could not find any evidence. If anyone finds such evidence, let me know so I can update the Killer poke page. --Guy Macon (talk) 03:03, 4 April 2017 (UTC)
.bat
A file I recall extracting once that ended with the entitled file type identification. Could you direct me to the software downloading site please?
Note: Its a zip type thing/software/file type...
116.58.200.178 (talk) 09:31, 4 April 2017 (UTC)
- A file with a .bat extension is a simple text file that can be opened with almost any word processing package or text file editor (e.g. Microsoft_Notepad). It is known as a Batch_file. It is not compressed (zipped). Please explain further because your question is unclear. 196.213.35.146 (talk) 09:53, 4 April 2017 (UTC)
- The bat file was extracted from a zip file.
Sleigh (talk) 10:14, 4 April 2017 (UTC)
- The bat file was extracted from a zip file.
- It can be very dangerous to run a bat file extracted from a zip file unless you know exactly where it has come from. I do this regularly, but I usually inspect the contents with a text editor to see what the batch file is going to do before I actually run it. There are many safe software downloading sites, but also many unsafe ones. We have no way to find out which site was used. Dbfirs 11:12, 4 April 2017 (UTC)
- If you're unfamiliar with BAT files, take care when following the Dbfirs' advice! It's true you should always make sure you know what the .bat file contains and you understand what it is going to do with your computer, because they are programs. And as such, the Open command from a pop-up menu in the .bat file context means Run or Execute, not 'show me the contents'. If you want to see the text inside a file, make sure you use Edit command instead, which invokes the Notepad app. You can also use 'Open with Notepad++' command or similar, if your text editor has installed its handler in the po-up menu. You can also open your favourite text editor first, then drag-and-drop the file into the editor's window. Or use the pop-up menu 'Send to' command (if your editor has installed its handler there). --CiaPan (talk) 11:32, 4 April 2017 (UTC)
- Thanks for clarifying that. Dbfirs 14:27, 4 April 2017 (UTC)
- If you're asking which site you downloaded a zip file with a batch file from, we have no way of knowing since batch files in zip files are not uncommon. If you're asking what you need to run the batch file, on Windows you shouldn't need anything. (You may need to extract all the contents of the zip file before running it. It can also be helpful to run it from a command prompt. Also if the batch file relies on some external software that isn't provided, you will need this software and it will need to be wherever the batch file expects it.) Inspecting the file is good general advice but whatever your question is, I get the feeling you asking it here means you're not going to get anything useful from inspecting the file. Ideally you shouldn't run the file, on the other hand if you regularly run binaries without inspecting the source code, running a batch file isn't really riskier. (Okay batch files aren't generally signed but that's only an issue in limited circumstances. Also a batch file which does del /q /s /f /. probably isn't going to be picked up by any anti malware but there's a slight chance a normal executable which does something similar will be if it's common enough.) The question is whether your normal due diligence before running an executable is sufficient which sadly it often is not for a lot of people. Nil Einne (talk) 12:51, 5 April 2017 (UTC)
April 5
Toshiba drive
MQ01ABF032 - this is a 320GB drive. However the label also says "8455 MB" (along with heads, cyls sectors etc..) . What does this number refer to?
All the best: Rich Farmbrough, 15:03, 5 April 2017 (UTC).
- It looks like its the drive's cache size: descriptions of the drive online say it has a "8 MB cache". -- Finlay McWalter··–·Talk 15:07, 5 April 2017 (UTC)
- Although that might suggest the label reads 8.455 MB? -- Finlay McWalter··–·Talk 15:08, 5 April 2017 (UTC)
- There's always the issue of decimal MB (1,000,000) vs base-2 (1,048,576). Plus some of the cache might be dedicated to something else, or they may have an allowance for portions being bad. StuRat (talk) 16:55, 5 April 2017 (UTC)
- Well, if you do a Google Images search for "MQ01ABF032" and "label" you can view the label. Apparently there are multiple versions of it, some of which say "8455 MB" just below the bar code and some don't. I haven't been able to find any sites that explain what it means, though. --76.71.6.254 (talk) 23:13, 5 April 2017 (UTC)
- Some more research shows that this is (something I discounted earlier) a hybrid drive, with 8455 MB NAND flash and an additional 8mb DRAM cache. All the best: Rich Farmbrough, 22:08, 6 April 2017 (UTC).
Shell32.dll
Is there any way I could extract the “Shell32.dll” in a folder, modify/amend than compress it back? If so, what opensource software could be used? 103.67.158.173 (talk) 18:00, 5 April 2017 (UTC)
- Wikipedia has an article on Resource (Windows). For various reasons I recommend you do NOT do this. -- zzuuzz (talk) 19:30, 5 April 2017 (UTC)
Control Panel Applets Sidebar
I require the following file’s Location:
ID: #632 Type: ArgbBMP Dimensions: 200x542 Fixed size: Yes
Could you paste the address to me in your feedback.
Note: The file seems to be inside the “Shell32.dll”.
116.58.200.91 (talk) 18:43, 5 April 2017 (UTC)
- Are you the same person who posted the question immediately above this? This sounds like a case of the XY problem. What are you trying to accomplish? But, I am fairly sure you are not a native English speaker, and unfortunately the language barrier makes it difficult for us to help you. Have you tried asking someplace in your native language? Many other language editions of Wikipedia have a Reference Desk; see the "Languages" sidebar on Wikipedia:Reference desk. --47.138.161.183 (talk) 07:28, 6 April 2017 (UTC)
April 6
Why do android apps want your phone/call details?
I just downloaded the app Pleco from Google Play. It said the app wanted access to my call details (I didn't understand exactly what it was saying, just something about call details). What possible use would an app have for something like that? It sounded dodgy, although I clicked "yes". IBE (talk) 03:43, 6 April 2017 (UTC)
- A lot of apps over-request permissions unfortunately. Pleco apparently needs it to reliably identify the device, instead of using the IMEI, according to their support forum. Hope that helps ツ Jenova20 (email) 10:03, 6 April 2017 (UTC)
- Many developers use software packages to produce their apps. Suppose that I write an app and I use the Ultra-X package for something - it doesn't matter what. I am using it in a way that I require seeing your photos, but the Ultra-X package has a camera function as well. While my app really only needs to see your photos, the inclusion of the Ultra-X package will make it ask to see your camera as well. A properly written package will only request permission for what is being used, but we live in a world where most apps are written by people who just want money. They don't want to learn how to program. So, you get badly written code using badly written packages which tend to ask for more permissions than are necessary. Also, we assume that the author of the app simply didn't know enough to do it properly. It is possible that the author does know how to program and has added hidden functionality to spy on you. I assume the author is ignorant, not nefarious. 209.149.113.5 (talk) 11:35, 6 April 2017 (UTC)
- ...It's also possible it's not anything nefarious and they really do need it as they claim. Thanks ツ Jenova20 (email) 13:01, 7 April 2017 (UTC)
Reg Edit File
1) What’s the address/location of it in PC?
2) I installed “Icon Packager” (don’t know which version it is) some time ago, ran out of ‘timeline’ now, re-installed with the hope that it will re-work (received no result) than uninstalled, and now I’m hoping that I could re-use it if I could delete some files from the Registry or so. Could someone help please, with what needs to be done in order for the free trial version to re-work?
Restoring PC option is unavailable.
43.245.120.214 (talk) 07:15, 6 April 2017 (UTC)
- It sounds like you want us to help you circumvent an access restriction measure in a program. Doing so is illegal in many jurisdictions, notably the U.S., where Wikipedia is hosted. I have the feeling this question should be removed. Now, I wouldn't be surprised if there is free/open-source software to accomplish what you want, but this assumes you're on the right track. Are you the same person who posted the previous questions related to Windows and icons? If so, please take heed of the advice I gave above. --47.138.161.183 (talk) 07:35, 6 April 2017 (UTC)
WMV file issue
I enabled DreamScene on my Windows 7, but some WMV files (converted from animated GIFs) I want to use as animated wallpapers are rendered oversized on desktop, like this one. I thought it could be due to low resolution of original GIFs, but resizing GIFs and downloading larger WMVs didn't solve it (and neither did decrease in size). How to fix this? Brandmeistertalk 20:24, 6 April 2017 (UTC)
Odd website behavior
Hello dear ref desk; Basically I'm having a rendering issue (flickering bar) when loading pages on a message board. It's a very marginal issue, but the technical support person couldn't replicate. I tried it on four (!) different machines (three computers (two Windows 7, one Windows 10) and my Samsung Galaxy S5), happens only on Chrome or Firefox. Edge / IE seems too slow to replicate. Also tried the obvious, like disabling all extensions or background programs. Do you also get it?
- Here's the website in question: https://forum.paradoxplaza.com/forum/index.php
- video of behavior: https://sendvid.com/z7rq4pcr
- screenshot of contents: https://imgur.com/H9ISAro
- zoomed out video: https://sendvid.com/sl0axczy
-- Thank you! Matt714 (talk) 23:39, 6 April 2017 (UTC)
April 7
Pictures for reuse
I'm doing a school project, and one of the criterion is that I need to have pictures that are high quality that I can reuse. I cannot find good pictures in Creative Commons because many of them are just pictures from a museum. I'm looking for pictures relating to seismology. To clarify, I am not asking for anyone to find these pictures for me, but I would appreciate some helpful sites since I am new to this. If it helps, I am using these pictures for noncommercial educational purposes. I am not entirely sure where this question should go, but computers sounds like it would most closely relate to finding pictures online. NerdyPerson (talk) 02:31, 7 April 2017 (UTC)
- What's wrong with Google? It's non-commercial after all. Thanks ツ Jenova20 (email) 11:32, 7 April 2017 (UTC)
- @Jenova20: Copyright violations have become fashionable with the internet because of the ease with which they are made, but it does not make them any more legal. (Whether copyright laws that make everything copyrighted by default are sensible is another debate, but it is what it is.) Listening to music you downloaded off The Pirate Bay is if anything "less illegal" than copying pictures from the internet to put them in a project that other people will look at, commercial or not. TigraanClick here to contact me 11:54, 7 April 2017 (UTC)
- It is not clear what exactly you want, but you can try on Wikimedia Commons. Everything there is under a free license. You will find diagrams such as commons:File:Love_wave.svg in .svg format, i.e. vector graphics with an infinitely good resolution, as well as photographs. TigraanClick here to contact me 11:54, 7 April 2017 (UTC)
- @Tigraan: I have changed the link to a Love wave so that it directly leads to Commons.
- @NerdyPerson: I'd suggest visiting commons:Category:Seismology. --CiaPan (talk) 12:38, 7 April 2017 (UTC)
- Funny enough my media studies course relied on us taking pictures from Google to create fake magazine covers. It was obscure and we never put them on the internet after though. That was my point. It's not legal, but nor are you likely to be prosecuted for it since everyone is sharing copyrighted pictures. Thanks ツ Jenova20 (email) 12:58, 7 April 2017 (UTC)
How to make use of windows movie maker?
Please Suggest me to overcome this ... — Preceding unsigned comment added by SubmitForms (talk • contribs) 08:33, 7 April 2017 (UTC)
- If you are looking at the icon from a desktop or folder, you double click the icon. If you are looking at the icon in the start menu, you click the icon once. If this does not work, make sure the program is properly installed. The easiest way to do this is usually to try to install it again: most Microsoft programs check for existing copies already on the system. Ian.thomson (talk) 09:31, 7 April 2017 (UTC)
Alternative
Please suggest one which consist of many .file type saving option... 43.245.120.12 (talk) 10:34, 7 April 2017 (UTC)
Headphone Software
A headphone software which could ‘min to max’ individual ear pieces, for self-hearing purposes… 43.245.123.186 (talk) 10:28, 7 April 2017 (UTC)
- I don't remember exact instructions, but I've moved the sound between the left and right channels in Audacity (audio editor) before. You'd have to use the headphones on your computer, though. Ian.thomson (talk) 10:47, 7 April 2017 (UTC)
- Left-right balance is common. My original Walkman had a left-right balance slider. On my phone, it is still there under Settings-Accessibility-Hearing-Left and Right Sound Balance. 209.149.113.5 (talk) 12:56, 7 April 2017 (UTC)
Event-driven, data-driven programming, any other <something else>-driven?
Besides event-driven and data-driven programming languages, what else can be the driving element in a programming language? Or can be classify all languages in these two categories? --Hofhof (talk) 17:25, 7 April 2017 (UTC)
- If you can make an interrupt, you can program around it. 209.149.113.5 (talk) 18:13, 7 April 2017 (UTC)
- I wonder how Conway's Game of Life (or, more broadly, any cellular automaton) is classified. The only data is the starting config and rules. From there the program runs on it's own with no further input. StuRat (talk) 20:11, 7 April 2017 (UTC)
- Would you classify it as an "initial conditions only game" ? Many fluid dynamics models seem similar, in that you just provide the setup and it does a simulation all on it's own, with no further input. StuRat (talk) 02:26, 8 April 2017 (UTC)
xyz-driven sounds buzzwordy to me, but I've heard functional programming described as "value-oriented" or "value driven". Functional reactive programming is implemented with events under the covers, but it's supposed to model continuous time, so I'd class it differently from event- or data-driven programming. 50.0.136.56 (talk) 05:24, 8 April 2017 (UTC)
public DNS with AWS
Google runs a public DNS that's both free and fast at 8.8.8.8 (and memorable too). I use it for my home computers.
Is there a similar thing from Amazon? I have some servers hosted on Amazon's AWS EC2 service, and it would be great if I can get the same service as 8.8.8.8 within AWS's own infrastructure to reduce latency. ECS LIVA Z (talk) 18:02, 7 April 2017 (UTC)
- Do you actually have evidence that DNS latency is an issue for you? Your application must be doing an extremely large number of DNS lookups to many different domains for this to be a problem. If that's really the case, you may want to look at Amazon Route 53. CodeTalker (talk) 02:27, 8 April 2017 (UTC)
- Route 53 is AWS's DNS service and is probably the fastest within AWS. It's not free but it's cheap enough that its cost shouldn't bother you unless your query load is insane. 50.0.136.56 (talk) 05:26, 8 April 2017 (UTC)