Wikipedia:Reference desk/Computing: Difference between revisions
Line 208: | Line 208: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
[[User:Finlay McWalter]], I modified my code a bit and the output appeared to be correct now. Thank you for your attention! [[User:Deep humility|Deep humility]] ([[User talk:Deep humility|talk]]) 19:21, 27 July 2020 (UTC) |
[[User:Finlay McWalter]], I modified my code a bit and the output appeared to be correct now. Thank you for your attention and enlightenment! [[User:Deep humility|Deep humility]] ([[User talk:Deep humility|talk]]) 19:21, 27 July 2020 (UTC) |
Revision as of 19:22, 27 July 2020
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.
July 22
Visual Studio 2015 showing methods with light grey background
I use Visual Studio 2015 at work to develop .NET C# code. Just yesterday I noticed it shows some of the C# methods with a light grey background instead of a white one (I use a light theme). I don't understand why. Unfortunately I can't show a screenshot, at least not right now, because it would contain proprietary source code. Searching Google for "Visual Studio method background colour" didn't help, it just showed results for how to change the background colour of the screen in C# code, or how to implement threads in the background in C#. I just want to know what the different background colour means. JIP | Talk 23:58, 22 July 2020 (UTC)
July 23
USB Quick Charge
I was looking at this product: [1][2][3][4]
Is there a standard for what green and orange USB connectors stand for? Is there a webpage where the two different symbols on the green/orange connectors are explained? --Guy Macon (talk) 08:52, 23 July 2020 (UTC)
- USB hardware#Colors lists common conventions and says there is no actual standard. 85.76.65.52 (talk) 11:21, 23 July 2020 (UTC)
- Interesting! Did you notice that the definition for orange in the table contradicts the image right next to it? Another subtlety: Quick Charge, and VOOC use USB connectors but are not USB (power-only, no data) while USB Power Delivery is USB (data and power), but I have seen hardware that combines Quick Charge or VOOC with USB data, and I assume that you can make an AC power brick that delivers power like USB Power Delivery but has no data.
- I still suspect that if I find the source of the two little lightning-bolt-in-a-rectangle logos on the product I linked to above it will lead me to a specification. Maybe from Qualcomm? See [5] and [6] from Belkin. --Guy Macon (talk) 12:56, 23 July 2020 (UTC)
- I did notice the product you linked to had an orange port which does not really jive with "industrial hardware". A quick google for "orange USB port" suggests that maybe it is convention for an always-on charging port (powered even when the PC is off). You seem to be taking an impressively deep dive into this; please do write it up for any reliable sources! 85.76.65.52 (talk) 16:19, 23 July 2020 (UTC)
- That was my plan. I am still researching this, but it looks like the color for always on (they call it "sleep and charge") is red or yellow. To confuse things even more, on some motherboards whether the USP supplies power when the unit is powered down can be turned on and off in the BIOS. More on this when I find a reliable source.
- This source[7] says that orange port "charging-capable".]
- USB.ORG has some "USB Logo Usage Guidelines" at [8] (PDF) None of them match the lighting bolt on the image I posted earlier. :( --Guy Macon (talk) 22:01, 23 July 2020 (UTC)
mediawiki source code
Could you get me the source code of mediawiki, please ?90.45.227.38 (talk) 11:22, 23 July 2020 (UTC)
- See www.mediawiki.org/wiki/Download. --Lambiam 13:22, 23 July 2020 (UTC)
- In fact, I’m searching the Source code, please ? — Preceding unsigned comment added by 2A01:CB0C:38C:9F00:DC85:81B8:B8DB:E9EB (talk) 09:36, 24 July 2020 (UTC)
- Follow the instructions to download it from git. That is the source code. There is no binary distribution of MediaWiki. Elizium23 (talk) 12:56, 24 July 2020 (UTC)
- To clarify, MediaWiki is primarily a PHP product. The source code is a vast set of PHP scripts. It is executed using a PHP scripting engine which loads and parses the scripts on demand. 97.82.165.112 (talk) 13:38, 26 July 2020 (UTC)
- In fact, I’m searching the Source code, please ? — Preceding unsigned comment added by 2A01:CB0C:38C:9F00:DC85:81B8:B8DB:E9EB (talk) 09:36, 24 July 2020 (UTC)
Excuse me
Sometimes pictures in the pages I see with Chrome show up as blurred images that are mostly white and cyan but sometimes include green or blue. Restarting my computer is the only way I can get this fixed. Any reason this happens?? (Does Wikipedia have an article about this problem anywhere??) Georgia guy (talk) 21:39, 23 July 2020 (UTC)
- Do all images look blurred? Or only certain types like .png? Ruslik_Zero 05:16, 24 July 2020 (UTC)
- I don't keep track of the type; I just noticed that there were many when I made this post. Georgia guy (talk) 10:59, 24 July 2020 (UTC)
- Have you tried another browser? 93.136.103.194 (talk) 16:58, 26 July 2020 (UTC)
July 24
Gmail issues
I've noticed two strange things in some of my Gmail letters:
- in one instance the recipient field shows the sender's email instead of mine (as if the sender has sent the email to herself), yet the mail correctly arrived to me;
- in another mail from a book publisher there's a question mark at the sender's profile, saying that Gmail was unable to verify that the email was sent from that domain and that it could be a spam. Yet, when I rechecked the sender's email at the book publisher's official website, both were identical, meaning that the sender is rather genuine.
Why is that? Brandmeistertalk 15:30, 24 July 2020 (UTC)
- In the former case, you may have been listed on the email's blind carbon copy bcc: list. -- Finlay McWalter··–·Talk 16:08, 24 July 2020 (UTC)
- The latter may be due to the sender's domain having a missing, or misconfigured, Sender Policy Framework setting. -- Finlay McWalter··–·Talk 16:12, 24 July 2020 (UTC)
- Regarding the latter, the address in the sender field is not authoritative! You can send e-mail with any sender address for much the same reasons as you can write any return address on a physical letter. You need another method such as SPF mentioned above to verify that the sender is who he says he is. 93.136.103.194 (talk) 16:57, 26 July 2020 (UTC)
- To elucidate, most likely Gmail expects mail from that domain to come with a valid DKIM/SPF header and it didn't, or the header is invalid. If Gmail's webmail provides a way to view the source of the mail you could see for yourself which is the case. However Gmail is very aggressive when it comes to chucking into spam e-mails not coming from major freemail companies. In that case, the e-mail could of course be completely valid (if the sender doesn't use SPF/DKIM at all -- considering that e-mail spoofing doesn't exactly happen to you every day). 93.142.123.92 (talk) 18:18, 26 July 2020 (UTC)
July 25
What are the best Unseen App for WhatsApp?
Hi, I am looking for the Unseen App for WhatsApp and other chatting apps that can help me to read the SMS anonymously. — Preceding unsigned comment added by Abdulmalikktk (talk • contribs) 10:45, 25 July 2020 (UTC)
July 27
Java!
Hi guys, can you help me figure out how could the first line of the output was correct and the others were not? Thank you! Deep humility (talk) 19:06, 27 July 2020 (UTC)
// Print a conversion table of inches to meters.
// Display 12 feet of conversions, inch by inch.
// One meter equals approximately 39.37 inches.
/* 1 inch = feet = meters;
* 2 inches = feet = meters;
* 3 inches = feet = meters;
* n inches = n feet = n meters;
*
* 144 inches = 12 feet = meters;
* */
/* 1 meter = 39.37 inches.
*
* (1/39.37) meter = 1 inch.
* */
/* 1 feet = 12 inches;
*
* (1/12) feet = 1 inch;
* */
/* 1 inch = (1/12) feet = (1/39.37) meters;
* 2 inches = 2 * (1/12) feet = 2 * (1/39.37) meters;
* 3 inches = 3 * (1/12) feet = 3 * (1/39.37) meters;
* n inches = n * (1/12) feet = n * (1/39.37) meters;
*
* 144 inches = 12 feet = 3.6576 meters;
* */
public static void main(String[] args) {
// TODO Auto-generated method stub
int counter = 1;
int n = 1; // multiple;
for (int inch = 1; inch < 145; inch++) {
float feet = (float) ((n) * (inch / 12.00));
float meter = (float) ((n) * (inch / 39.37));
if (inch == 1) {
System.out.println(inch + " inch is " + feet + " feet or" + meter + " meters.");
} else {
System.out.println(inch + " inches equal " + feet + " feet or " + meter + " meters.");
}
n = n + 1;
}
}
Output:
1 inch is 0.083333336 feet or 0.02540005 meters.
2 inches equal 0.33333334 feet or 0.1016002 meters.
3 inches equal 0.75 feet or 0.22860046 meters.
4 inches equal 1.3333334 feet or 0.4064008 meters.
5 inches equal 2.0833333 feet or 0.63500124 meters.
- What is "n"? Why are you incrementing both inch and n? -- Finlay McWalter··–·Talk 19:17, 27 July 2020 (UTC)
Solved:
What a careless mistake! I ignored that inch
is incremental due to inch++
. 😳😳😵😵😬😬😱😱 Deep humility (talk) 19:19, 27 July 2020 (UTC)
public static void main(String[] args) {
// TODO Auto-generated method stub
int counter = 1;
int n = 1; // multiple;
for (int inch = 1; inch < 145; inch++) {
float feet = (float) (inch / 12.00);
float meter = (float) (inch / 39.37);
if (inch == 1) {
System.out.println(inch + " inch is " + feet + " feet or " + meter + " meters.");
} else {
System.out.println(inch + " inches equal " + feet + " feet or " + meter + " meters.");
}
n = n + 1;
if (counter == 12) {
System.out.println();
counter = 0;
} else {
counter++;
}
}
}
User:Finlay McWalter, I modified my code a bit and the output appeared to be correct now. Thank you for your attention and enlightenment! Deep humility (talk) 19:21, 27 July 2020 (UTC)