Jump to content

Wikipedia:Reference desk/Computing

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 85.76.45.42 (talk) at 17:56, 4 December 2019 (→‎Keyboard misbehaving - typing the wrong symbols.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Welcome to the computing section
of the Wikipedia reference desk.
Select a section:
Want a faster answer?

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.
See also:


November 27

HATEOAS as Object Oriented Design Pattern

I'm learning about REST and HATEOAS, and it reminds me of some object-oriented design pattern, but I'm not sure which one. What would you call a pattern where object A must make use of several functions in object B, but B is not allowed to maintain any state related to A, so you have a container object C that you pass back and forth in each function call to maintain state? 2600:1700:46B0:BE60:5173:CF5D:F352:C4FC (talk) 01:00, 27 November 2019 (UTC)[reply]

hi, Dear Misters Editors, i put some lines on my wiki page English ... Idd like to know how do they look to You

hi, i put some lil sections on my wiki page english language n idd lke to know how well does it fit to the wiki cz i dont wish any trouble with that here, n i might consider to remove it (maybe You will do it before me , eventualy). i m just boosting around my own ideas (it could be some others too that found them before me) hoping that there will be somebody that reading them , like them n probabily show some interest in support me in any way with my kinda "original research". alrite, thank You for Your time. Kind respect , Florin747 (talk) 07:55, 27 November 2019 (UTC)[reply]

Your user page is supposed to tell something about yourself, and what you are doing on Wikipedia. What you have put there looks like a bunch of original ideas. Original ideas from our authors are unsuitable for Wikipedia articles, as everything should be verifiable WP:V. Some could go to your sandbox. So it is best that you take it down. Graeme Bartlett (talk) 11:56, 27 November 2019 (UTC)[reply]
Please, see WP:NOTWEBHOST. Ruslik_Zero 11:59, 27 November 2019 (UTC)[reply]


hi, there, thank You for the reply. May i ask to You that You remove my sections on my user page, cz I am not evn so sure that I'll be able to do the rite job about it. Thank You for reading my posts anyway , at least for the moment I cant do better I am affraid. Thank You once more, please dont take me as a bad name for asking You to remove the sections that suits for that. Florin747 (talk) 12:09, 27 November 2019 (UTC) :-)[reply]

Wikipedia does not want original research, see WP:OR. Wikipedia is supposed to document notable topics using reliable sources writing them up with a neutral point of view. It follows, it does not lead. Please see WP:5P. Dmcq (talk) 14:15, 27 November 2019 (UTC)[reply]
To delete things on your user page just select them and press delete, type an edit summary in the gray box below and press publish changes like you did here. Other people should normally leave your user page alone. Dmcq (talk) 14:19, 27 November 2019 (UTC)[reply]
-) One big OK, thank You for the tips, I think I will try that, Thank You very much for Your help! Kind

respect, Florin747 (talk) 14:37, 27 November 2019 (UTC)[reply]

-)

alrite, done it, i wish to know one more thing: about that sandbox . what can You tell me about it in the context of original ideas, if i wish to put some more over there, just in case, for some other time, maybe. Thank You, anyway! Kind respect, Florin747 (talk) 14:47, 27 November 2019 (UTC)[reply]

...alrite, i forgot to say please about my last question here. please forgive me about that. if You wish , then You may not answer to that anyway. Thank You for reading my posts , anyway! I am truly honoured ! Sayonara! :-) Florin747 (talk) 05:55, 28 November 2019 (UTC)[reply]

Per the page outlined by Ruslik_Zero i.e. WP:NOTWEBHOST, no part of wikipedia is intended for you to publish your original ideas or anything of that sort. You can use your sandbox to help you learn how to edit wikipedia, but if you continuously use it to publish your own original ideas, it may be deleted or you could be blocked. People may turn a blind eye if start to post 24k worth of stuff, you may get attention. If you want to publish your own idea, I suggest you look for one of the many places out there that are web hosts of some sort such as blog hosting services who normally allow you to post your own ideas to your heart's content subject to some terms of service (e.g. copyright, and often with restrictions on bigoted content). You can surely even find one which lets you do it in a wiki if you wish that for some reason. Nil Einne (talk) 04:17, 30 November 2019 (UTC)[reply]

Alrite, thank You for Your clarifcations, I hope that I will be able to remember Your advices for the future, even my memory is kinda moody sometimes. Kind respect, Florin747 (talk) 11:02, 2 December 2019 (UTC) :-)[reply]

@Florin747: Could you, please, pay more attention to proper punctuation and ortography? Not all users, readers and editors of English-language Wikipedia are fluent in English. Writing incorrectly, although may be fun, does not help in communication with native speakers, and may be annoying or disturbing for those others. --CiaPan (talk) 13:02, 2 December 2019 (UTC)[reply]


alrite, Dear Misters Editors, i think that "We" just got more trouble wth Romanian language, please see it on my sandbox page. i know, i know, its just abt some just more original ideas which wiki doesnt want. Please try to translate the issue (28) , tell me what do You think about it... Maybe >< Kind respect, anyway, Florin747 (talk) 06:23, 3 December 2019 (UTC) :-)[reply]

Hopefully this was obvious to everyone but I just noticed a significant typo in my original reply. I said "People may turn a blind eye if start to post 24k worth of stuff, you may get attention." but meant "People may turn a blind eye , however if you start to post 24k worth of stuff, you may get attention. " Nil Einne (talk) 08:34, 4 December 2019 (UTC)[reply]

well , as for me, i have some skitzofrenia since more than 20 years ago, i am following brain treat since then and since i am focusing on (applied) maths mainly , i got no such big time to learn english, nor editing on wiki style, for example. what i am trying to say is that i am trying to pay my contribution to some appealing programming paradigm at some basic math level, hoping that youth will have something to guide them about studying the computers programming , getting in touch with the programming optimizations for basic routines that are taught in school. i dont need much credits for that since it is my pleasure to think about computers thow i might wish that somebody would notice me maybe support me about my attempts with a little money perhaps , good advices, tips for good books , good internet topics, etc, etc. Thank You, its nice to keep in touch with some of Wikipedia Editors because they are surely smart guys. Kind respect, Florin747 (talk) 09:42, 4 December 2019 (UTC)[reply]

Excel question

I have a Microsoft Excel question that I haven't been able to get an easy answer to on other question forums. Since Wikipedians seem to be the smartest people around, I thought I would try here. I have two lists of data (barcodes). One large list (A) and one shorter list (B). I would like to divide list B into two parts: 1) list C, which includes only data that appears in both list A and list B, and 2) list D, which includes only data that appears in list B but not in list A. A potential complication is that some data in list A may be duplicated. Is there any easy way to do this in Excel? Thanks in advance, Questiontoask (talk) 15:30, 27 November 2019 (UTC)[reply]

As a start, if you want List A to only contain unique values, Excel has got a great Remove Duplicates function on the Data tab. - X201 (talk) 16:00, 27 November 2019 (UTC)[reply]
Thanks for the suggestion. I need to keep List A intact, but if generating Lists C and D requires a duplicate-free List A, I will make a copy of List A and remove the duplicates from it. Questiontoask (talk) 16:10, 27 November 2019 (UTC)[reply]
I forgot to mention, it doesn't have to be Excel. If there is some other free, publicly available resource that can be used then I can presumably manually export the lists from Excel, generate Lists C and D elsewhere, and then import them back into Excel. Questiontoask (talk) 16:18, 27 November 2019 (UTC)[reply]
Also, if it makes any difference, List A is hundreds of thousands of items long and list B is several hundred. Questiontoask (talk) 16:18, 27 November 2019 (UTC)[reply]
You can use the comm Unix command. If you get the two columns into two sorted files A and B, then comm -12 A B will give you the commons entries, and comm -13 A B will give the entries unique to file B. You can install such a command under Windows. Graeme Bartlett (talk) 21:06, 27 November 2019 (UTC)[reply]
That sounds promising, though perhaps beyond my knowledge of computers. Can you suggest somewhere that I might learn how to "install such a command under Windows"? Thank you. Questiontoask (talk) 21:27, 27 November 2019 (UTC)[reply]
  • Cygwin is the easiest route to getting access to a Unix command shell under Windows. You can then use any of the innumerable guides to bash for how to work it.
Some Microsoft diehards prefer PowerShell, which I'm sure could do it too. But bash experience is always useful. Andy Dingley (talk) 22:47, 27 November 2019 (UTC)[reply]
Maybe I'm missing something, but this seems easy enough to do in Excel. Let's assume that list A is in column A of Sheet1 and list B is in column A of Sheet2. Let's further assume that you want to leave both lists intact and untouched. Create a copy of Sheet2 and rename it to Sheet3 so we have a space to work. In column B of Sheet3 do a VLOOKUP of those values against the list in Sheet1. It would look something like this =IFERROR(IF(VLOOKUP(A1,Sheet1!A:A,1,FALSE)=A1,"C",""),"D") . (As a practical thing, after all the lookups are done I would then copy-paste values to column B so that the formula doesn't have to keep re-running every time you filter it). The value in column B will then tell you which list that barcode belongs to: C or D. You can then filter to show one or the other and then do with them whatever you want (e.g. copy to two new tabs). Matt Deres (talk) 15:06, 28 November 2019 (UTC)[reply]
I am sure Matt Deres's approach works perfectly but I'm always uncomfortable using IFERROR because it feels like I'm planning on failure. My approach would be to make a copy of ListB and put the following formulae in columns B and C respectively:
=IF(AND(COUNTIF(ListA!$A:$A,ListC!$A1)>0,COUNTIF(ListB!$A:$A,ListC!$A1)>0),"C","")
=IF(AND(COUNTIF(ListA!$A:$A,ListC!$A1)=0,COUNTIF(ListB!$A:$A,ListC!$A1)>0),"D","")
The first formula reports "C" if there are members in ListA and in ListB, and the second reports "D" if there are no members in ListA but members in ListB.
(You don't need the '$' symbols. I included them because I was porting the first formula to the second before modifying it.)
I find COUNTIF is more robust than VLOOKUP when I try to code quickly.
Hayttom (talk) 09:02, 1 December 2019 (UTC)[reply]
This is a classical database functionality, you can solve complicated by using the DLOOKUP function. --Hans Haase (有问题吗) 10:32, 2 December 2019 (UTC)[reply]
In this case, planning to fail does not mean failing to plan. :) Neither COUNTIF nor VLOOKUP are great with huge lists, but in my experience, VLOOKUP is slightly quicker since it only has to find the first iteration and then return it. When checking hundreds of values against hundreds of thousands, the computing time may have a convenience factor. Matt Deres (talk) 15:18, 2 December 2019 (UTC)[reply]

Limit CPU core use of all processes for user on Linux

I have a piece of proprietary software that crashes on launch if run on a machine with more than 8 cores. Unfortunately, I have 64. Double unfortunately, it spawns itself off into a second process for some reason on launch, so even if started by taskset it still crashes. Is there a way I can (temporarily) restrict all processes for a given user to use only certain cores? 108.46.239.236 (talk) 22:43, 27 November 2019 (UTC)[reply]

Normally you'd run the software in a VM where you can limit the cores, memory, file visibility etc. Proxmox is a common simple way to set that up. 67.164.113.165 (talk) 08:46, 28 November 2019 (UTC)[reply]
The manpage for "sched_setaffinity(2)" says that A child created via fork(2) inherits its parent's CPU affinity mask. The affinity mask is preserved across an execve(2). So I do not understand why you believe that your program is all of a sudden attempting to use more CPUS. Are you sure that is why it is crashing? Did you use taskset -a? Is the subprocess privileged enough to call sched_setaffinity and take back more CPUs than you gave it? Possibly a virtual machine is the best way. Elizium23 (talk) 20:28, 28 November 2019 (UTC)[reply]
Well I figured out how it's doing it (it was telling its launcher to spawn a copy not doing it itself, and I hadn't thought to taskset that) but it still crashes when restricted so I'm back to square one! Thanks anyway. 108.46.239.236 (talk) 21:01, 28 November 2019 (UTC)[reply]
Missunderstanding! A task only can crash. You can mate-system-mon to set priorities. As free software is out of charge, and you are not coding, have a stable version or alternative of affetected software. --Hans Haase (有问题吗) 10:26, 2 December 2019 (UTC)[reply]

November 28

Computer Peripherals Inc. 7-Pack

Back side
Front side

I recently found this expansion board in an IBM PC XT. Looking online for the name or FCC ID does not lead me to any helpful information. Presumably, the 7-pack refers to it having 7 different features on one PCB, but I can only identify 3, being RAM expansion, the port on the side, and the 26-pin header on the front which leads to another similar connector via a ribbon cable. I would love some assistance in finding what else this card can do and any information about its production. Stilfehler (talk) 18:44, 28 November 2019 (UTC)[reply]

FCCID Search is here (I used the "FQU" digits as the grantee code). Some discussion of the card here (Same FCC ID, right?) They are speculating about a real-time clock. I wonder if it has two serial ports because of the two blocks of DIP switches by the 26-pin header? Elizium23 (talk) 19:33, 28 November 2019 (UTC)[reply]
I can confirm that it has two serial ports, one on the main pcb itself and one attached to a ribbon cable from the 26-pin header. This is probably the reason there are two banks of DIP switches. --Stilfehler (talk) 00:19, 29 November 2019 (UTC)[reply]
The OKI M5832 chip just below the battery is a real-time clock and calendar (that might count for 2 of 7?): datasheet here. Elizium23 (talk) 19:45, 28 November 2019 (UTC)[reply]
Given that CPI was chiefly involved with printer technology, I'd be surprised if this wasn't a printer buffer/spooler card. If that DB25 connector is female, it's probably a parallel port - which could (latterly) support up to 8 parallel printers daisy chained off the one port. So I'm guessing (and without the documentation we don't seem to be able to find, a guess is all we can manage) that the "7 pack" version will drive up to 7 printers, and the RAM expansion adds more buffer space to allow more, or larger, print jobs to be stored. Without buffer memory, it was usually the case that a print job would stall the host OS until it was finished printing (as printers were dumb, and had next to no memory of their own). Obviously 7 printers is useless overkill for a normal desktop, but if this were shared over a network (as a print server) using something like Banyan or NetWare, it could allow a whole workgroup to print over the network, to a bunch of printers. -- Finlay McWalter··–·Talk 22:46, 29 November 2019 (UTC)[reply]
In the forum post I linked, CheckIt indicates that it has an RS-232, which would not be out of character for a printer buffer card, as some printers use a serial interface. Elizium23 (talk) 00:01, 30 November 2019 (UTC)[reply]
I don't recognize that specific card, but multipack cards of that era usually had a real-time clock, floppy controller, HDD controller, serial port, parallel port, RAM expansion, and maybe some kind of CPU or FPU upgrade. 108.46.239.236 (talk) 01:16, 30 November 2019 (UTC)[reply]
On second glance I'd expect it to have more pin headers to fulfill all those functions, though... 108.46.239.236 (talk) 01:22, 30 November 2019 (UTC)[reply]
Actually I can't imagine such a full-featured expansion to have a mere 8-bit expansion bus interface. Elizium23 (talk) 02:05, 30 November 2019 (UTC)[reply]
You'd be surprised what they managed even with just ISA. 108.46.239.236 (talk) 04:38, 30 November 2019 (UTC)[reply]
The card you linked doesn't have CPU, FPU, or HDD controller, which are precisely the kinds of things I was thinking about that would flood an 8-bit XT bus. Elizium23 (talk) 04:10, 1 December 2019 (UTC)[reply]
I'm almost certain they made one with an 8087 on board, but since I can't find any reference to it online I'll concede the point. 108.46.239.236 (talk) 05:27, 2 December 2019 (UTC)[reply]
Didn't the 8087 go in a socket on the motherboard? Bubba73 You talkin' to me? 05:39, 2 December 2019 (UTC)[reply]
I think some of the earliest PCs didn't have the 8087 socket? I distinctly remember seeing a RTC/FPU combo card advertised in the very early days of the PC. 108.46.239.236 (talk) 05:45, 2 December 2019 (UTC)[reply]
The original IBM PC had a socket for the 8087 (see File:IBM PC Motherboard (1981).jpg). Were there others that used the 8088 or 8086? Bubba73 You talkin' to me? 06:03, 2 December 2019 (UTC)[reply]
I have never seen an 8088-based PC without a place for an 8087, but I have seen some where they didn't bother installing a socket in the holes. There were a lot of 80486SX PCs with no provision for adding the optional 80487DX, but the 80487DX wasn't really a math coprocessor. It was a variant of the 80486DX that disabled the 80486SX.

I did a google search on "Computer Peripherals 7-Pack PCM1-PSC2 384 KB RAM expansion" and found a page and an image matching the board, but I couldn't find the board on that page. Could someone else please take a look?

https://www.google.com/search?q=%22Computer+Peripherals+7-Pack+PCM1-PSC2+384+KB+RAM+expansion%22+%22Classic+Computer+Shop%22

https://www.google.com/search?q=%22Computer+Peripherals+7-Pack+PCM1-PSC2+384+KB+RAM+expansion%22+%22Classic+Computer+Shop%22&tbm=isch

--Guy Macon (talk) 04:47, 30 November 2019 (UTC)[reply]

Has anyone else tried looking on that page to see if I missed something? --Guy Macon (talk) 07:28, 2 December 2019 (UTC)[reply]
The devices 1488 and 1489 are serial port drivers. So there mus be an UART. Its an serial port, possibly a RS-232. The bottom view shows typical 9 of 25 wires. Jumpers and switches are to set hardware addresses, where die port are, I guess the 26 pin header on to is a LPT port. --Hans Haase (有问题吗) 15:04, 2 December 2019 (UTC)[reply]
I think you are right. So 384KB of RAM, serial, parallel, and real time clock. Quite a nice combo for an IBM PC XT with 256MB of RAM. I wonder what the other three parts of the "7-pack" are? --Guy Macon (talk) 17:35, 2 December 2019 (UTC)[reply]
Cant read the 40 pin chip due labeled. I guess it is the UART. The other chips are standard 74xx series and latches, demultiplexers, to split up bus addresses to enable pins, flipflops, drivers, inverters, NAND gates etc. --Hans Haase (有问题吗) 18:53, 2 December 2019 (UTC)[reply]
Thanks at this point for all replies so far, this was quite helpful already. But I'll stay put here for any new contribution. --Stilfehler (talk) 14:28, 3 December 2019 (UTC)[reply]


December 2019 - From original manual:

Standard features on the 7-Pack include:
1. Memory expansion up to 384KB.
2. An RS232 serial asynchronous port
3. A 20 ma. current loop serial asynchronous port
4. A parallel printer port
5. A clock-calendar
6. Programmable leap year in clock-calendar.
7. Self-charging battery.

— Preceding unsigned comment added by 93.23.105.192 (talkcontribs) 20:43, 3 December 2019 (UTC)[reply]

Cool! Where did you find the manual? I searched all over and couldn't find it. --Guy Macon (talk) 02:40, 4 December 2019 (UTC)[reply]
Just bought an IBM 5150 a few days ago, and the "manual" was in one of the IBM binders... — Preceding unsigned comment added by 93.23.16.198 (talk) 13:39, 4 December 2019 (UTC)[reply]

A new computer with ISA slots!

I did find something interesting while searching for the above; a new computer with ISA slots!

There is a bit of old automation that I still maintain, and it uses a custom-built ISA card. The above looks like a good alternative to buying a used computer from the ISA era. -Guy Macon (talk) 17:35, 2019

December 1

BT Mail Err code: 10023

I wonder if someone who uses BT Mail can help with this. I replied to a friend's message this evening, but when she replied to my reply I was unable to open it. Instead a dialogue box appeared with the following message: "Error: An error occurred when loading message body. [Err code: 10023]". Is there any way to bypass the message? I've tried forwarding on the unopened message but get the same error code and moving it to spam/delete/draft, etc, doesn't help. I've Googled this but with little success. BT help suggested logging out then logging back in again, but that hasn't solved it either, so I thought I'd ask here. Thanks in advance. This is Paul (talk) 22:11, 1 December 2019 (UTC)[reply]

@This is Paul: It will help to know where the error is coming from. If you are using the web interface, then try using a different program to download your mail from POP or IMAP, see [1]. If you are already using an external program, try the web page. RudolfRed (talk) 22:51, 1 December 2019 (UTC)[reply]
I've been using Google Chrome, but I'll give this a go. Cheers, This is Paul (talk) 18:22, 3 December 2019 (UTC)[reply]

December 3

Information on spending by shoppers

How does Adobe know that "Cyber Monday shoppers on track to hit a record $9.4 billion"? Wouldn't that require them knowing private information? How are they able to gather this information? Bus stop (talk) 03:21, 3 December 2019 (UTC)[reply]

It's likely aggregate data that has been de-identified, so they don't know what you personally spent, but they know collectively what you everyone else spent. RudolfRed (talk) 04:27, 3 December 2019 (UTC)[reply]
But still, from where are the getting the data? Do all commercial enterprises release information related to the amount of sales they made on a given day? Bus stop (talk) 04:58, 3 December 2019 (UTC)[reply]
According to Adobe, for their holiday shopping predictions, they collected info from 4,500 web sites starting November 1: [2] and "Our report uses aggregated and anonymized data only, via Adobe Analytics and Adobe Experience Cloud, to develop insights about online retail and economic trends." Presumably this is from companies that have purchased the Adobe Analytics product. RudolfRed (talk) 05:50, 3 December 2019 (UTC)[reply]
I've heard some investigative reporting that was saying that the sales projections for Black Friday and similar events are often quoted in the news, but also often wrong - because they are projections, not actual sales figures. They seem to be generated mostly as good PR for the company doing the projections. These stats should be handled carefully if added to articles. -- Beland (talk) 17:56, 3 December 2019 (UTC)[reply]

December 4

Keyboard misbehaving - typing the wrong symbols.

My keyboard has started misbehaving. When I try to type a tilde I get | instead. When I try to type a hash I get \. When I try to type the AT sign I get ", when I try to type a pound sign I get # instead. Quotation marks give @ instead. What has happened and how can I fix it please? DuncanHill (talk) 17:08, 4 December 2019 (UTC)[reply]

You have a British keyboard but your OS thinks it is American - see British and American keyboards#Windows keyboards -- Finlay McWalter··–·Talk 17:18, 4 December 2019 (UTC)[reply]
I restarted my machine and it's reverted to normal. I would still be interested to know why it suddenly decided to become foreign. DuncanHill (talk) 17:29, 4 December 2019 (UTC)[reply]
There are key combinations that change keyboard layout. Depends on your operating system. Google stuff like hotkey change keyboard layout. You had a fat finger moment where you accidentally hit a magic combination. We all do that. You could explore your OS's keyboard settings and see if you can restrict which layouts are allowed so you have less of a chance of doing it again. 85.76.45.42 (talk) 17:53, 4 December 2019 (UTC)[reply]