Jump to content

Wikipedia:Reference desk/Computing

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by FrameDrag (talk | contribs) at 14:57, 24 June 2016 (COM objects in C#). 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:

June 18

Free alternative to NetLimiter for Win10

I am looking for a free alternative to NetLimiter for Win10. (((The Quixotic Potato))) (talk) 04:00, 18 June 2016 (UTC)[reply]

Does cFosSpeed appear to meet your needs? --Guy Macon (talk) 14:02, 18 June 2016 (UTC)[reply]
Also see [ http://diggfreeware.com/five-best-bandwidth-limitershaper-software/ ]. --Guy Macon (talk) 14:09, 18 June 2016 (UTC)[reply]

Free software that allows me to set 2 desktop images for my 2 monitors

Normally I use DisplayFusion or UltraMon, but those programs are a bit overkill. At least I can use the free version of DisplayFusion. But I was wondering if there is a program that simply detects the screensize, allows me to pick two images and chose to fill or expand or tile, combines the pictures into one (while taking the relative position of the monitors into account) and creates a new desktopimage (and sets it). (((The Quixotic Potato))) (talk) 04:08, 18 June 2016 (UTC)[reply]

I'm assuming this is on a Windows machine. And this search has a couple promising results right at the top. (minus any ads you might get) Dismas|(talk) 05:00, 18 June 2016 (UTC)[reply]
Yep, Windows 10. I use Ad Block Plus. Thanks, I'll have a look. (((The Quixotic Potato))) (talk) 05:23, 18 June 2016 (UTC)[reply]
@Dismas: Thanks again. This works: "Hold down the Ctrl key and click the different wallpapers you want to use. Once you've selected your wallpapers, right-click on one of the wallpapers and select Set as desktop background.". (((The Quixotic Potato))) (talk) 05:27, 18 June 2016 (UTC)[reply]
Resolved

June 19

QBASIC programs for finding n prime numbers

After I saw an article Prime numbers in wikipedia, I got that there is no formula for prime numbers. But in the QBASIC there are some programs for finding n prime numbers. Can't we use modified form of it in finding general term(formula) of prime numbers in real life mathematics? sahil shrestha 14:45, 19 June 2016 (UTC) — Preceding unsigned comment added by Sahil shrestha (talkcontribs)

@Sahil shrestha: I've moved your two questions down to the bottom of this page - this page, like other Wikipedia discussions, has the newest subjects at the bottom. Where you put them, at the top, they'd likely be missed by other user and not answered. -- Finlay McWalter··–·Talk 17:44, 19 June 2016 (UTC)[reply]
There are many algorithms for generating prime numbers. Some one of those algorithms is used by the QBASIC program you saw. When we say there is "no formula" for prime numbers, this means there is no way of directly computing, say, the 1000th prime number. The only thing you can do is run a prime number generation algorithm and throw away the first 999 numbers it generates. (You will find that the 1000th is 7919.) --Steve Summit (talk) 19:30, 19 June 2016 (UTC)[reply]
@Sahil shrestha:@Sahil shrestha:, Check out this -
FOR n = 2 TO 100
FOR k = 2 TO n / 2
flag = 0
r = n MOD k
IF r = 0 THEN
flag = 1
EXIT FOR
END IF
NEXT k
IF flag = 0 THEN PRINT n,
NEXT n
— Preceding unsigned comment added by Aryan hindustan (talkcontribs)
There are actually faster algorithms to find the nth prime for large n than to compute all the smaller primes but the basic point stands: There is no known efficient way to do it. The faster algorithms only means it becomes feasible (with a lot of computing power) for primes below 1026 instead of 1019 or something like that. PrimeHunter (talk) 13:32, 20 June 2016 (UTC)[reply]

Games in scientific calculators

Is there any method for playing video games like stuffs in scientific calculators of Casio brand? sahil shrestha 14:36, 19 June 2016 (UTC) — Preceding unsigned comment added by Sahil shrestha (talkcontribs)

I am not sure what your question is. --Hofhof (talk) 23:54, 19 June 2016 (UTC)[reply]
Hofhof, he is asking if she can play games on old calculators ,Sahil shrestha -I think NO!--Aryan ( है?) 06:13, 20 June 2016 (UTC)[reply]
That is an urban legend, but some people claim that there were secret codes that would activate a game in a scientific calculator. It's kind of like an eastern egg.--Hofhof (talk) 09:02, 20 June 2016 (UTC)[reply]
Not true! There WERE games for the HP 65 and the TI SR 51, and probably other calculators of similar vintage. You had to key the codes in but it was still a game. Lunar lander was one game I remember. It even had sound effects, courtesy of a small transistor radio placed against the top of the calculator. --TrogWoolley (talk) 09:53, 20 June 2016 (UTC)[reply]
I think you mean Easter Egg. RedLinkJ (talk) 17:39, 20 June 2016 (UTC)[reply]
Stop hanging around and finish your homework.--Hofhof (talk) 09:03, 20 June 2016 (UTC)[reply]
Yes, simple games can be programmed, like training the Einmaleins (training children easy muliplcations) or guess a random number. Modells I know does not support INKEY or test a pixel of the graphic screen. When newer do so, videogames might be possible. A Gorilla.bas clone should be possible. --Hans Haase (有问题吗) 11:02, 20 June 2016 (UTC) Btw. would You upload the deleted picture to finish our last conversation?[reply]
oh! Thanks for reminding me Hans Haase. I am done uploading the file and u can see it in ur talk page.sahil shrestha 14:49, 20 June 2016 (UTC) — Preceding unsigned comment added by Sahil shrestha (talkcontribs)
I assume you are all talking about programmable calculators, not the plain scientific ones that have no RAM. Dbfirs 07:22, 21 June 2016 (UTC)[reply]
See Casio graphic calculators, I am talking about the fx-7700G and similar. --Hans Haase (有问题吗) 14:06, 21 June 2016 (UTC)[reply]
Yes, programmable. I used to have one. The plain scientific calculators don't have either games or Easter eggs. Dbfirs 07:43, 24 June 2016 (UTC)[reply]

HTML form entry for money amount

I have the following code:

<p>Payment amount (USD): $<input type="number" size=10 maxlength=17 min="0.01" step="0.01" value = "1.00" name="amount"><br>

It works, but is a bit ugly, because while $1.23 shows up correctly, $1.20 shows up as $1.2 and $1.00 shows up as $1. How can I fix this ? StuRat (talk) 15:50, 19 June 2016 (UTC)[reply]

The quick answer is "with JavaScript" - you can't do it with the HTML alone. See, for example, this Stack Overflow thread. Tevildo (talk) 17:34, 19 June 2016 (UTC)[reply]
Well, that sucks, doesn't it ? I will just leave it poorly formatted rather than complicating things with more Javascript. Thanks for the answer. StuRat (talk) 15:11, 20 June 2016 (UTC)[reply]

HTML form entry for hidden numbers ?

Similar to the above, the type can be "number", in which case it is forced to be numeric, or "password", in which case it is not displayed, but replaced by asterisks. Is there a way to have both attributes, say for credit card numbers, which should both be forced to be numeric and hidden ? Or must we again use Javascript to do so ? StuRat (talk) 15:14, 20 June 2016 (UTC)[reply]

This is probably easier to do at the server end - leave the input type as "password", and check that the value is numeric as part of the form validation. But, yes, if you want to do it in the client, you'll need JavaScript. Tevildo (talk) 19:11, 20 June 2016 (UTC)[reply]
Thanks again. Looks like they need lots more capabilities in plain old HTML, to me. I wonder why it is still so basic, after all these years. StuRat (talk) 04:13, 21 June 2016 (UTC)[reply]

Apple phone software for Windows

Is there anything like BlueStacks, for Apple phone software apps? -- Apostle (talk) 19:18, 19 June 2016 (UTC)[reply]

iPadian. Ruslik_Zero 20:16, 19 June 2016 (UTC)[reply]
Okay thanks. -- Apostle (talk) 18:58, 20 June 2016 (UTC)[reply]

Pattern matching in functional languages

What makes this so special (according to FP adherents)? Couldn't this functionality be implemented in other languages easily? Like parsing an XML structure? There must be libraries for this in any language. --Hofhof (talk) 23:54, 19 June 2016 (UTC)[reply]

Well, in most languages (with the notable exception of the LISP family), libraries are very limited in what syntax they can use.
Here's a concrete example of a case where pattern matching is useful to make this clearer. In Python (and many other languages) if you look up a value in a map/dictionary and it isn't present, you get an exception (KeyError in Python's case). Python encourages you to use exception handling for this ("EAFP"). You can write
        try:
            ...  # do something with d[k]
        except KeyError:
            ...  # do something if k isn't in d
But that code is wrong if the thing you do with d[k] might also raise a KeyError. And even if it can't do that now, it might change in the future, so this pattern is fragile. You can't just move the code out of the try block, because code after the try block is run after the KeyError handler also. The only universally correct approach is
        try:
            x = d[k]
        except KeyError:
            ...  # do something if k isn't in d
        else:
            ...  # do something with x
This is now long and confusing, and still has the problem that if the except code throws an exception, Python will confusingly report the KeyError as the context for it, even though conceptually this is an if statement, and it doesn't do that for if statements. For all of these reasons, I often just write if k in d: ...d[k]... else: ... instead, despite its problems (code duplication and a potential race condition in threaded code).
In Haskell, you write
        case lookup k d of
          Nothing ->
            ...  -- do something if k isn't in d
          Just x ->
            ...  -- do something with x
This is the right syntactic structure for what I'm trying to do: it looks like an if statement, but it avoids a duplicate lookup by putting the result in x at the same time. The Nothing and Just clauses can be in either order (like the Python if statement, but unlike Python try, where except must precede else).
Introducing this kind of control-flow construct in a library would be difficult in most languages (except the LISP family). You would likely have to pass the patterns as strings (which would be parsed inefficiently at run time), and the code in the two clauses as anonymous in-line functions (if the language supports that). To bind x, you would probably have to name it in the function arguments and put the same name, or its numerical position, in the quoted pattern. You would need significant runtime reflection support in the language to make it all work. The patterns, being quoted, would not be correctly syntax highlighted. Since readability is a major advantage of this approach in the first place, it probably wouldn't be worth it.
For more complicated patterns, a library could be useful, even if it's string-based, as it could save writing a lot of code. Regexes are an example of that. I think the value of ML-style pattern matching is mostly in the simpler cases. -- BenRG (talk) 01:43, 20 June 2016 (UTC)[reply]

June 20

Win 7 keeps creating a new "My Documents" folder

When I first installed Win 7, I moved My documents to a separate physical hard drive and then renamed it as "Data" (I hate the twee names Microsoft uses). This was no problem but I keep getting a new My Documents folder created. It is created in the separate HDD where "Data" is located but it is called "My Documents". No matter how many times I delete this folder it just gets generated again. How can I persuade Win7 that my "Data" folder IS my "My documents" folder and stop it generating new ones?

Thanks, Gurumaister (talk) 14:31, 20 June 2016 (UTC)[reply]

On the "My Documents" folder, right click, choose "properties" and give it a new path. Windows will ask to move the files to the new path. --Hans Haase (有问题吗) 16:31, 20 June 2016 (UTC)[reply]

That is how I moved the original folder. But as soon as I change its name, Windows generates a new folder called "My Documents". Gurumaister (talk) 18:08, 20 June 2016 (UTC)[reply]

You mean the location for My Documents is already set to "D:\Data" (or whatever)? Nil Einne (talk) 11:48, 21 June 2016 (UTC)[reply]
I guess not to care about an empty folder. Maybe it is being created to prevent stupid software is causing a lost of data. --Hans Haase (有问题吗) 14:02, 21 June 2016 (UTC)[reply]

After Creating Shortcut

  1. Does anybody know what to do when this - Shortcuts doesn't appear on a created shortcut file/folder "name"?
  2. How do I turn - Shortcuts on/off anyway, in order to appear along on a created shortcut file/folder "name" e.g., "filename - Shortcuts". I currently/sometimes use "recovery/restore" point; not a good thing to do...

Apostle (talk) 11:18, 22 June 2016 (UTC)[reply]

Virtual PC

Peeps, I don't know if this is too much of a botheration, I know it is, but here it goes.

My system info:

Windows 7 Ultimate Service Pack 1

Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz 2.30GHz

8.0 GB (2.65 GB usuable)

32-bit Operating System

"Guidance"/"Link" received:

1) [1]

2) [2]

A) Press CTRL+F, than insert: Now, you can write the name for your new Virtual Machine and the location to store the virtual machine file. – On link "1".

The location of link (1) and (2) defines that I should use the OS name I’m planning to install, am I right? – I’m planning to install Window XP, Windows 7 Ultimate Service Pack 1, and Windows 10 Professional (64-bit). Btw, can I use 64-bit on a Virtual PC, of a 32-bit Original PC?

B) Press CTRL+F, than insert: In the next window, you can select the amount of RAM memory to assign to your virtual machine. – On link "1".

B1) How much MB should I select for Windows XP, Windows 7 Ultimate Service Pack 1, and for Windows 10 Professional (64-bit)? What do you guys suggest and could/should I/is it possible to insert the maximum for all three Operating System (OS)? – I don’t wish to ever look back in my life to perform this task again (to create the same OS Folders again), so, how much MB should I select for each OS?

B2) Is the networking Tick box option necessary? If it is unticked, will it create any problem with my internet usage of any kind, inside and outside (original PC) of my Virtual PC?

C) Press CTRL+F, than insert: As we selected the dynamically expanding virtual hard drive, we will specify the maximum storage space for it to grow in the next window. – On link "1".

C1) The above image of point (C), the Location is the same as the point (B), I’m putting all three OS on E drive, exactly; let me know if I’ll be facing any issues with the following.

C2) The image below point (C) specifies a maximum limit. What do you guys suggest and could/should I/is it possible to insert the maximum for each (all three OS)?

D) Press CTRL+F, than insert: Or select Open an ISO image to select an image with the installation files to install an operating system on your new virtual machine. – On link "1".

D1) I understand what Link "2" say and I’m guessing when I come to this stage I have to select the "Access a physical drive" feature. That being said, I’m planning to install all three OS via a "pendrive". The image above defined inside point (D) doesn’t display a USB port. If I keep my pendrive in, will it display when I’m at this stage?

D2) Press CTRL+F, than insert: Wait for the installation wizard to appear and follow the – On Link "2". - It say the installation will follow through as it does usually.

Q: Will it switch my PC off/reboot my PC when I install any of the OS? If so which one(s) will create this issue?

Apostle (talk) 19:17, 20 June 2016 (UTC)[reply]

It seems like you've mixed questions with instructions copied from elsewhere, and it's hard to tell which is which. I don't know what "Press CTRL+F, than insert" means either.
First, upgrade to 64-bit Windows. Product keys are the same for 32-bit and 64-bit editions, so you don't need to buy a new copy of Windows. As it is, only 2.65 GB of your 8 GB of RAM is being used; the rest is wasted. It's unlikely that Virtual PC will be able to use it either (it's not impossible but I doubt it). You will have a hard time running Windows virtual machines with less than 3 GB of total RAM.
After you've upgraded, I would probably allocate ~2GB of RAM to the VM (if you run one at a time). You can easily change that value later (you don't have to recreate the VM or reinstall the guest OS).
"The name for your new Virtual Machine" is for your reference; call them whatever you want.
Disk size doesn't matter much; choose 20GB or something unless you plan to install a ton of stuff on the guest drive.
If you start a VM with your thumb drive unplugged, then plug it in, it will most likely be connected to the guest (that's the default behavior), and you can then install Windows in the guest. If that doesn't work, look in the menus for a way to explicitly connect USB devices to the guest.
If you uncheck "network", the VM will probably be unable to access the Internet at all.
You will not need to reboot your host machine when installing any guest OS. -- BenRG (talk) 21:25, 20 June 2016 (UTC)[reply]
BenRG:I'm disallowed to upgrade cause I play rather than work Yes I'm trying to install these OSs so that I can install all the softwares and all the games I have. 😞
Sorry for the delay in getting back to you Ben. Btw, you have to press CTRL+F after entering in the links page guided in this post, in the web browser you are on.
Apostle (talk) 11:24, 22 June 2016 (UTC)[reply]
Don't understand what you mean by "play rather than work". Nowadays x64 compatibility even for games is rarely worse than x32. And there are a small number of games which require x64 or won't work so well under x32 (2GB of RAM can be limiting). Heck even 8 years ago things weren't that different (except games using more than 2GB was rare). As far as I know, there's no Windows licence for "play" which doesn't allow the installation of x32, Windows starter editions are long dead and in any case I believe even these allow the install of x64 versions and aren't really that suitable for most play or work and you indicated you have Ultimate anyway. If you look at something like the Steam survey, you find 84.63/95.42 Windows users are using some x64 [3]. Furthermore for those odd times where you do need a VM, you'll be far better of using a VM which works well because it has sufficient RAM and so does your main OS then you would where both are struggling. BTW, due to limitations around 3D hardware acceleration support, gaming even 8 year old games under VMs isn't always a pleasant experience. You're better of running as many games as you can under your native OS. In other words, all roads strongly suggest you're far better of running a x64 OS natively. If you mean this isn't a computer you administrate and whoever owns it doesn't want you playing games, well running them on a VM isn't particularly likely to please them either. Nil Einne (talk) 14:56, 22 June 2016 (UTC)[reply]
Okay I won't... -- Apostle (talk) 10:48, 23 June 2016 (UTC)[reply]

What the eye ?

Most of us know about such softwares for PC/laptop etc. that if paired with same-titled Android app downloaded on our mobile phone, can let us see all SMS/videos/pictures on our mobile without even touching the phone. Can anyone please tell me names of such softwares that may help me see on my desktop screen what my mobile's camera is seeing right then and what my mobile's microphone is in within range to listen.124.253.249.153 (talk) 19:33, 20 June 2016 (UTC)[reply]

IP Webcam] does exactly what you are after. Vespine (talk) 23:44, 20 June 2016 (UTC)[reply]
thanks Vespine. But I was thinking something along the Airdroid app and it's PC partner. Some time back I saw on YouTube another software doing same things much more efficiently and spontaneously, but forgot the thing's name. I was wondering if someone could remind me that marvellous piece of software, or at least it's equal. 203.134.196.115 (talk) 03:36, 21 June 2016 (UTC)[reply]
Perhaps you're thinking of Miracast? CodeTalker ::(talk) 15:44, 22 June 2016 (UTC)[reply]
Yeah, something like Airdroid, but one should be able to make it invisible after installing the app on mobile.

June 22

How do I get rid of Win7 update KB2952664?

I am running Win7 and most definitely do NOT want to install Windows 10. I also don't want those annoying reminders and persuaders for Windows 10 that Microsoft likes to install on my PC. For that reason, I now check all Windows updates before I install them and tell Windows to 'hide' any that are to do with upgrading to Windows 10.

I somehow seem to have installed update KB2952664 which is related to Windows 10. I have used the update uninstall facility to get rid of it and what happens is both interesting and very annoying: First, I uninstall it and it does, indeed, disappear from my list of installed updates. But, second, when I restart my PC, the update reappears on the list with today's date as its installation date. This is despite the fact that my update settings say that Windows should leave updates for me to install - and I have not reinstalled that update.

Can anyone tell me how I can get rid up KB1952664 and how I can stop it reinstalling automatically? Gurumaister (talk) 06:07, 22 June 2016 (UTC)[reply]

Don't know, but make sure you uninstall KB3035583 too and watch vigilantly for it, because MS likes to slip that one past you too. It's the one that places the update icon in your icon tray. Akld guy (talk) 08:45, 22 June 2016 (UTC)[reply]

Thanks Akld, yes I caught that one and have it 'hidden'. Now I just need some Windows genius to help me get rid of KB2952664. Gurumaister (talk) 09:21, 22 June 2016 (UTC)[reply]

Try this.--Phil Holmes (talk) 09:44, 22 June 2016 (UTC)[reply]

That looks really useful Phil - thank you! Gurumaister (talk) 10:47, 22 June 2016 (UTC)[reply]

System Restore Manager v2

Guy Macon, The Quixotic Potato


I have recently retrieved the entitled software for the PC I have; a guidance is sought with the "Create Point" button. I would be happy if someone can give me an upperhand understanding of what the enquoted button will do step by step… My computer is a bit weird; I can’t really take any steps without knowing… -- Apostle (talk) 11:18, 22 June 2016 (UTC)[reply]

I have two pieces of advice for you.
First, do not download and run software unless you are absolutely sure what it does and how it works. and run virustotal (google it) on the file before you run it. System Restore Manager v2 is a good program, but some programs that claim to do good things actually harm your computer.
Second, learn how Microsoft's System Restore works before trying to learn a program that supposedly makes it easier. We have an article on it at System Restore --Guy Macon (talk)
Okay thanks. -- Apostle (talk) 10:49, 23 June 2016 (UTC)[reply]

Windows folder view setting changes for no apparent reason

I've noticed that on my Windows 7 machine sometimes the "view" setting of a folder would change for no apparent reason. For example, I may have set the view of a folder in Windows Explorer to "list". The next day, when I open the same folder again on Windows Explorer, the folder may display in "Details" or "Large icons" view. What mechanism in Windows may cause that kind of seemingly spontaneous changes in folder view setting? Thanks. --134.242.92.97 (talk) 14:45, 22 June 2016 (UTC)[reply]

Don't know, but I confirm that this behavior happens on my Win7 machine too. Akld guy (talk) 20:32, 22 June 2016 (UTC)[reply]
I may have found an explanation of the problem and the fix. I've found two articles that seem to talk about the same issue. This one [4] describes a fix (workaround?); this one [5] explains how the problem happens. --134.242.92.97 (talk) 15:01, 23 June 2016 (UTC)[reply]
That fix is a Microsoft page that offers a utility to solve this and other problems. I downloaded the utility and ran it. It reported that it had fixed 3 problems including the one under discussion. It's too early to tell whether it was successful, but it's highly likely. I recommend the utility to those who think they might have folder problems. Akld guy (talk) 22:59, 23 June 2016 (UTC)[reply]

Can you please tell why my facebook page is not appearing on google search?

Can you please tell why my facebook page https://www.facebook.com/malwarebytescouponcode/ is not appearing on google search? But the backlinks I have created for this page using keywords "Malwarebytes anti-malware coupon code" "Malwarebytes anti-malware coupon code 2016" have already started appearing on 3/4 page on google search. — Preceding unsigned comment added by Malwarebytescoupon (talkcontribs) 19:28, 22 June 2016 (UTC)[reply]

This is a black art called SEO, some people charge a lot of money for answering questions precisely like this. I don't think there is a "simple" answer you'll be able to use to improve your results. Vespine (talk) 00:31, 23 June 2016 (UTC)[reply]
To give you a bit more info, one of the most basic ways goolge chooses if a search result should be "high" in the results is how many OTHER websites link to it. If you have dozens of different websites linking to your site, it will appear higher in the results. If you just made a stand alone site and no one else links to it, there very little you can do to your website to "force" google to make your result higher, using things like keywords. Except pay them of course, that's partly how they make their money. Vespine (talk) 00:34, 23 June 2016 (UTC)[reply]
The above is called PageRank by the way. Vespine (talk) 05:58, 23 June 2016 (UTC)[reply]

shift scheduling system

Hi there,
I am looking for a shift scheduling system.
It should contain some features that I need including:
1.Automatically assigning shifts, according the workers' limitations.
2.Creating exportable calendar files.
3.It will be helpful if it can take by mails or a web form, the workers' preferences.(optional)
Of course, an opensource software is most requested, though we do want those features that I mentioned earlier.
Thanks!Exx8 (talk) 19:45, 22 June 2016 (UTC)[reply]

ENIAC and an earlier computer

Milestones in Computer Science and Information Technology by Edwin O'Reilly says of ENIAC: "... a more accurate claim would be 'worlds first automatic, general-purpose, electronic, decimal, digital computer." It goes on to say "Omitting and any of the italicized adjectives grants priority to some other computer." So what if "decimal" is omitted - what is an earlier automatic, general-purpose, electronic, non-decimal, digital computer? Bubba73 You talkin' to me? 23:47, 22 June 2016 (UTC)[reply]

There were many such earlier computers, the various mechanical computers designed by Charles Babbage and Ada Lovelace predate the ENIAC by over a century, for example. History of computing hardware is a good place to look for some more examples. --Jayron32 23:52, 22 June 2016 (UTC)[reply]
Yes, but which one was automatic, general-purpose, electronic, and digital but not decimal? Bubba73 You talkin' to me? 00:49, 23 June 2016 (UTC)[reply]
If you accept electromechanical, the Z3 was automatic, general purpose and digital computer. However, it is also decimal, so isn't what you are looking for. The ABC wasn't programmable, so fails the general-purpose requirement. Which leaves us with Colossus as the only pre-ENIAC electronic computer left. It was electronic, digital, automatic and programmable. However, it used biquinary values to represent decimal numbers, so perhaps that is why it is precluded by O'Reilly. - Bilby (talk) 01:09, 23 June 2016 (UTC)[reply]
And Colossus was not a general-purpose computer. Bubba73 You talkin' to me? 01:14, 23 June 2016 (UTC)[reply]
The first automatic, general-purpose, electronic, digital, binary computer was the Manchester Baby, which post-dates ENIAC. See List of vacuum tube computers for the list in chronological order. Tevildo (talk) 19:00, 23 June 2016 (UTC)[reply]
I think (although this is just personal speculation), the "automatic" exclusion might play a part as well. ENIAC (despite the name) wasn't fully-automatic until September 1948 - before then, it was programmed with a plugboard, like Colossus. The Baby was automatic from the word go (June 1948), although ENIAC had run with manual programs before that date. Tevildo (talk) 19:15, 23 June 2016 (UTC)[reply]
I think that automatic referred to its operation. Once the plugboards were set, it would run on its own, unlike a calculator. Bubba73 You talkin' to me? 20:42, 23 June 2016 (UTC)[reply]
Colossus wasn't designed as general purpose, but it was arguably Turing complete, based on Wells. - Bilby (talk) 07:53, 24 June 2016 (UTC)[reply]
The Z3 used binary, not decimal. It had a 22-bit word length and represented floating-point numbers using 7 bits of exponent, 14 bits of mantissa, and a sign. (Thus, assuming the exponent was signed, it could represent values from approximately 1019 to 10−19), or their negatives, with approximately 4 decimal digits of significance.) --69.159.9.187 (talk) 22:41, 23 June 2016 (UTC)[reply]
But it was electromechanical, not electronic. Bubba73 You talkin' to me? 00:00, 24 June 2016 (UTC)[reply]
True. --69.159.9.187 (talk) 05:39, 24 June 2016 (UTC)[reply]
I was presuming by decimal that they used binary, but accepted decimal I/O. Z3 apparently had decimal input and output, but not operation. - Bilby (talk) 07:50, 24 June 2016 (UTC)[reply]

As far as I can tell, there was no was automatic, general-purpose, electronic, digital non-decimal computer before ENIAC. It looks like Edwin O'Reilly was wrong. Of course the article needs to follow the sources, not my original research... --Guy Macon (talk) 08:42, 24 June 2016 (UTC)[reply]

June 23

HTML holiday Homework

Hello, this is the last week of my holidays but there are stiil some problems in the omew work. The code is

HTML code
The following discussion has been closed. Please do not modify it.
-

<html><head><title> www.ODD_dElhi_VEhicle_plaNs.com \Overview </title></head> <body bgcolor=RGB(23,113,160) leftmargin=20 Topmargin=24 text="Red"> <center><IMG SRC="C:\Users\aryan\Desktop\school\9-D Aryan 2016- 17\Comp\HHW of Aryan IXD Rno- 12\logo.JPG" widgt=68% height=59> </center> <A NAME="#TOP"></A> <u><br><H2><font face="Vladimir Script"> Overview </font></hr></u> <br> <table border=2 bordercolor="rgb(12,12,78)"> <Caption name="Site Map"> <tr> <td rowspan=3 style='border:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line-height:normal'> <A HREF="C:\Users\aryan\Desktop \school\9-D Aryan 2016-17\Comp\HHW of Aryan IXD Rno- 12\Home.htM"> Home </A></p> </td> <td rowspan=3 style='border:solid windowtext 1.0pt;border-left:none; padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Overview</p> </td> <td rowspan=3 style='border:solid windowtext 1.0pt;border-left:none; padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Effects</p> </td> <td colspan=7 style='border:solid windowtext 1.0pt;border-left:none; padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Reaction</p> </td> <td rowspan=3 style='border:solid windowtext 1.0pt;border-left:none; padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>ODD-EVEN round the globe</p> </td> <td rowspan=3 style='border:solid windowtext 1.0pt;border-left:none; padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Gallery</p> </td> <td rowspan=3 style='border:solid windowtext 1.0pt;border-left:none; padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Bibliography</p> </td> <td rowspan=3 style='border:solid windowtext 1.0pt;border-left:none; padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>About the site</p> </td> </tr> <tr> <td colspan=3 style='border- top:none;border-left:none;border- bottom:solid windowtext 1.0pt; border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Positive</p> </td> <td rowspan=2 style='border- top:none;border-left:none;border- bottom:solid windowtext 1.0pt; border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>International</p> </td> <td colspan=3 style='border- top:none;border-left:none;border- bottom:solid windowtext 1.0pt; border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Negative</p> </td> </tr> <tr> <td style='border-top:none;border- left:none;border-bottom:solid windowtext 1.0pt; border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Media</p> </td> <td style='border-top:none;border- left:none;border-bottom:solid windowtext 1.0pt; border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Public</p> </td> <td style='border-top:none;border- left:none;border-bottom:solid windowtext 1.0pt; border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Political</p> </td> <td style='border-top:none;border- left:none;border-bottom:solid windowtext 1.0pt; border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Media</p> </td> <td style='border-top:none;border- left:none;border-bottom:solid windowtext 1.0pt; border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Public</p> </td> <td style='border-top:none;border- left:none;border-bottom:solid windowtext 1.0pt; border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'> <p class=MsoNormal align=center style='margin-bottom:0cm;margin- bottom:.0001pt; text-align:center;line- height:normal'>Political</p> </td> </tr> <tr height=0> <td width=51 style='border:none'></td> <td width=73 style='border:none'></td> <td width=56 style='border:none'></td> <td width=53 style='border:none'></td> <td width=50 style='border:none'></td> <td width=60 style='border:none'></td> <td width=93 style='border:none'></td> <td width=53 style='border:none'></td> <td width=50 style='border:none'></td> <td width=60 style='border:none'></td> <td width=51 style='border:none'></td> <td width=57 style='border:none'></td> <td width=89 style='border:none'></td> <td width=52 style='border:none'></td> </tr></table> <table border=1 bgcolor="MintCream"> <caption name=Contents> <tr><TD><OL type=I> <li> <A HREF="#P">Pollution</a> <ul><li><a href="#WorLD"> In the world </a></LI> <li> <a href="#Bharat">In India</a> <ul type=disc> <li> <a href="#are">Stats</a> <li> <a href="#d">In Delhi</a> <ol><li> <a href="#HOS"> History </a> <li> <a href="#C++" > Current </a></li></oL></ul></ul> <li><a href="#KJ"> Arvind kejriwal </a> </LI> <LI><a HRef="#Hind"> ODD- EVEN Road Rationing </A> <ul type=Circle> <li><A hrEf="#p0129"> Phase I </a> <li><A HrEf="#Hitlerified"> Phase II </a> <li><A HreF="#Chola √ Tatva"> Phase III </A> </Li></UL></LI></ol></tD></TR></TA BLE> <ol type=I> <li><h3><a name="#P"></a> Pollution </h3> <p>Who does not know about pollution? Today science has progressed a lot, but this has many problems. One of the problems is pollution. Scientifically it is the Contamination of natural resources like air, water, soil, sound etc by presence of contamination particles called pollutants. No corner of the world is untouched by it so it is now very important to curb it. <ol><lI><h4> <a NAME="#WorLD"></a> In the World </h4> <p> </p></LI> <li><h4> <a name="#Bharat"></a>India </h4> <ol type=a><li> <a name="#are"></a> <h5>Stats</h5> <li><h5> <A NAME="#d"></a>In Delhi <uL><li><a name="#HOS"></a>History <Li><a name="#C++" ></a> Current </LI></ul></Ol></oL> <li><a name="#KJ"></a> Arvid Kejriwal <li><A name="#Hind"></A> <h3> ODD-EVEN Road Rationaing <p>Social media has absolutely lost it since the Delhi government announced that vehicles with odd and even number plates will ply on alternate days in the city from January 1. While there's a section that has welcomed the idea, calling it a positive step forward to control the alarming rise in pollution in the city, there's also a vast number of people who are labelling this move as impractical, pointing out lack of public transport as one of the reasons why it will never work out. Even though both sides of the argument have perfectly valid points, one must realise that there are more cons than pros to this initiative.<br>             This isn't the first time something like this is happening in the world. Road space rationing can be traced back to as early as 45 BC by none other than the Shakespearean hero Julius Caesar had enforced it. We wonder if that was why Brutus did to Caesar what he did! <br>             The Delhi High Court directed the Centre and State governments to come up with comprehensive action plans to put a check on the capital city's <a href="#Website"> "alarming" pollution rate, </A> saying living in Delhi is like "living in a gas chamber". A day after this, the <a href="#KJ"> Kejriwal- </a> led government declared the odd-even vehicle rule with the hope it would lower the number of vehicles hitting the road per day,eventually bringing down the city's air pollution rate. <ol><li><h4><A name="#p0129"> </A> Phase I </h4> <strong><u> Things to know- </u></sTRong> <bR><uL><LI> It was announced on December 4 2015. <li> The AAP cabinet announced private vehicles will be allowed to run across the city based on their registration numbers. For example, if a vehicle's registration number ends with an odd digit, it will be allowed on the road on January 1, while that ending with an even number can be driven on the second, and so on. <li> Private vehicles with odd registration numbers will be allowed on the road on Mondays, Wednesdays and Fridays. <LI> Vehicles with even numbers will run on Tuesday, Thursday and Saturday. Nothing has been finalised about Sundays yet. <LI> This rule will not be applicable on emergency vehicles like PCR vans, fire tenders and ambulances, and on public transports like CNG-driven buses, taxis and auto-rickshaws. <li> Bikes are exclueded. <li> This system, therefore, will be applicable only on private-owned four wheelers running across Delhi, and on those coming in from other states. And that includes vehicles used by ministers and bureaucrats of all ranks. <LI> Responding to the raging criticism, Chief Minister Arvind Kejriwal has said this system will be tested for 15 days and will be scrapped if it does not work for the citizens. <li> Trucks will not be allowed to run across Delhi until 11pm. <li> All vehicles will have to follow the standards of Euro VI 2017. <Li> The Delhi government has also decided to shut down the Badarpur power plant in southern Delhi, which is one of the coal- based plants of the NTPC. <li> cars driven by women, cars with differently-abled persons and those of VIP, VVIP such as PM, President, Chief Justice, CJI and CMs of states and union territories were exempted by the rule. <li><a href="#KJ"> Arvind Kejrival </a> said that INR 1.5 crore generated in the form of challans in a fortnight will be used for subsidies to buy cycles for commuters. <li> A fine of INR 2000 was issued on voilaters. <LI> CNG vehicles exclueded. </UL> <li><H4><A name="#Hitlerified"> </a> Phase II <br> Most things were same as the <a href="#p0129"> Phase I </a> , But the ones that were differnet are - <uL><li> <li><H4><A name="#Chola √ Tatva"></A> Phase III <h4> </oL></oL><p align=right> <A HREF="#TOP" >Go To Top </a> <table border=1 bgcolor="MintCream"> <caption name=Contents> <tr><TD><OL type=I> <li> <A HREF="#Website">Pollution</a> <ul><li><a href="#WorLD"> In the world </a></LI> <li> <a href="#Bharat">In India</a> <ul type=disc> <li> <a href="#are">Stats</a> <li> <a href="#d">In Delhi</a> <ol><li> <a href="#HOS"> History </a> <li> <a href="#C++" > Current </a></li></oL></ul></ul> <li><a href="#KJ"> Arvind kejriwal </a> </LI> <LI><a HRef="#Hind"> ODD- EVEN Road Rationing </A> <ul type=Circle> <li><A hrEf="#p0129"> Phase I </a> <li><A HrEf="#Hitlerified"> Phase II </a> <li><A HreF="#Chola √ Tatva"> Phase III </A> </Li></UL></LI></ol></tD></TR></TA BLE> </Body></htML></blockquote>

The internal linking is not working.Any Help?--Aryan ( है?) 03:49, 23 June 2016 (UTC)[reply]

<a name="foo"> doesn't use a #; that's how you reference it. (I disabled interpretation of your HTML to avoid having it break the page.) --Tardis (talk) 04:08, 23 June 2016 (UTC)[reply]
Not only are you asking us to do your homework, which is against one of our few rules, you paste in this god awful block of code, with no formatting or context, and you are studying website code? I give you an F. Vespine (talk) 05:56, 23 June 2016 (UTC)[reply]
Collapsed. Rojomoke (talk) 09:19, 23 June 2016 (UTC)[reply]

Landline telephone amplifiers?

I have a landline telephone setup (single line, nothing fancy) that doesn't get a great signal. I've tried to look online (Google, Bing) for a device that I could plug the line in (from network interface device) to and plug the house wiring into to get the amplified signal. Do they make things like this? If so, is there a name for them I'm missing? When I search for this I get cell phone products. I'm using United States style telephones and telephone wiring. Thanx. 104.229.143.192 (talk) 23:58, 23 June 2016 (UTC)[reply]

Because of the way telephones work, it is much easier to amplify the signal going to the handset instead of the signal from the wall to the phone. Here are some typical products:
You can also complain to the phone company and ask them to send louder audio. --Guy Macon (talk) 05:18, 24 June 2016 (UTC)[reply]
Many many years ago, I did a lot of audio-visual work, which included landline telephones (which were just called telephones at the time). I was asked to turn up the volume on phones many times. The problem always turned out to be static on the line, making it hard to hear the audio. So, the problem wasn't the audio volume, it was the static. Static on telephone lines is common. It can be a loose connection - which is an easy fix - or an old wire that has corroded - which requires rerunning new wires. Once I got rid of the static, the phone's volume was just fine. So, I wonder if this is truly a case of low phone audio or loud static. 199.15.144.250 (talk) 12:34, 24 June 2016 (UTC)[reply]

COM objects in C#

(To forestall the obvious comments - can we assume it's the year 2005 for the purposes of this question? Using more up-to-date tools is not an option. Thanks.)

In VB6, to instantiate a COM object and use one of its interfaces, we can do:

Dim oTemp As Object
Dim oRealObject As MyTypeLib.IMyInterface

Set oTemp = CreateObject("MyDll.CMyClass")

If TypeOf oTemp Is MyTypeLib.IMyInterface Then
    Set oRealObject = oTemp
    oRealObject.DoThings
Else
    MsgBox "MyDll.CMyClass does not support the IMyInterface interface!"
End If

In C#, we can do something similar:

Type comType = Type.GetTypeFromProgID("MyDll.CMyClass");
var instance = Activator.CreateInstance(comType);

if (somethingOrOther)   //  This is my question
{
    IMyInterface realObject = (IMyInterface)instance;
    realObject.DoThings();
}
else
{
    MessageBox.Show("MyDll.CMyClass does not support the IMyInterface interface!");
}

What should "somethingOrOther" be? comType.Equals(typeof(IMyInterface)) returns false, even though instance does in fact implement the IMyInterface interface (and the DoThings function works properly). Thanks in advance. Tevildo (talk) 14:41, 24 June 2016 (UTC)[reply]

You should use typeof(IMyInterface).IsAssignableFrom(typeof(comType)). (From here.) The reason that comType.Equals(typeof(IMyInterface)) returns false is because for simple equality comparison, comType does not equal IMyInterface. Type.IsAssignableFrom() uses more complex comparison. Fr∧m∈Dr∧gtalk 14:56, 24 June 2016 (UTC)[reply]