Wikipedia:Reference desk/Computing: Difference between revisions
→Game bot/ai: missed one thing |
|||
Line 949: | Line 949: | ||
# It cannot turn into an enemy piece. Every turn one (random) piece can move and (must) set its color. Only friend pieces see the color, enemies are seen just as "enemies". |
# It cannot turn into an enemy piece. Every turn one (random) piece can move and (must) set its color. Only friend pieces see the color, enemies are seen just as "enemies". |
||
# The algorithm gets no info but what it sees. |
# The algorithm gets no info but what it sees. |
||
# Oops, no wonder if you are a bit confused. I meant to say player A's pieces are white and player B's black. Then pieces have a color that is the 4 byte number and only visible to friend pieces. It makes sense if you want to believe into it. |
|||
# I assume you mean the "visual connection" thing, no, enemy pieces cut the connection. |
# I assume you mean the "visual connection" thing, no, enemy pieces cut the connection. |
||
# The 4 byte number contains the color, the algorithm must set it every times it moves the piece. Initially the color is 0. |
# The 4 byte number contains the color, the algorithm must set it every times it moves the piece. Initially the color is 0. |
Revision as of 23:09, 27 July 2009
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 21
Unfreeze KDE
When KDE freezes, my Kubuntu system often takes too long to respond to Ctrl-Alt-Esc, Ctrl-Alt-Del and Ctrl-Alt-F1, and I have to hard-reboot the computer. Is there any way to forcibly interrupt KDE and its apps, and get a console shell without the delay of Ctrl-Alt-F1? Once that's done, are there tools other than htop that can help me find and kill the process responsible for the freeze? NeonMerlin 00:33, 21 July 2009 (UTC)
- Ctrl+Alt+Backspace kills X server and either leaves console or attempts to restart X. -Yyy (talk) 05:01, 21 July 2009 (UTC)
- Also check out the Magic SysRq key. I've never had a lot of success with it, but it's supposed to work quite well for crash recovery. Indeterminate (talk) 00:43, 22 July 2009 (UTC)
Internet causing computer crashes.
Kinda long question-if this isn't the place could you recommend me a good forum at least?
I was cleaning a computer for virus and such (its pretty old and hasn't been running with any anti vir besides Windows defender). I ran Avira, Super Anti-Spyware, and A-2 Squared. Combined they found 5 virus (I don't have the computer in front of me so I can't say names). That solved one of the problems with the computer- that every time explorer.exe was opened the computer would crash and need to be restarted w/ power button.
However the internet still crashes randomly sometimes (regardless of browser) on random webpages. I can see the whole screen but it is completely frozen, so I need to restart it with the power button. Any ideas as to what could be causing it? Any way I could get the error report from my computer of the incident (I can't find Dr. Watson and I'm not sure how to use HijackThis! because it causes the computer to crash so I have to restart it). The problem is sporadic which really confuses me. I can't guarantee but I think it sometimes appears on sites with only text.
Secondly (not so important): what would you recommend as a good anti virus (pay or free-either way)? Out of Avira, Avast, AVG, Norton, McAffee, or anything else what would you recommend. I don't want it to be to hard on resources so I don't mind compromising some detections because I can run on-demand scanner (Super Anti-Spyware, A-2 Squared).
Thanks in advance! —Preceding unsigned comment added by 66.133.202.209 (talk) 00:38, 21 July 2009 (UTC)
- I'd try Spybot and Ad-Aware on this - they may pick up spyware/malware infections missed by the other programs. Exxolon (talk) 01:45, 21 July 2009 (UTC)
- Malwarebytes' Anti-Malware is pretty much a standard part of any anti-malware clean-up job. An additional tool that may be of use is Dr.Web CureIt! Ideally, when dealing with unstable, infected systems, critical files should be backed up and then bootable CDs used to remove malware without the hassle of active malware in memory causing problems with removal or system stability. Here's a good list of bootable anti-virus bootable CDs provided by various anti-virus vendors; most are free. As for an effective but light anti-virus, I find NOD32 fulfills that criteria rather well. I'd still recommend trying out the trials of various different anti-viruses, however. Hope this helps! :)--Xp54321 (Hello! • Contribs) 04:48, 21 July 2009 (UTC)
Limit the servers upload speed to ips
Is there a way to limit the download speed of people connecting to a web server, based on their ip address? Say for example the server has a poor upload speed, if one person downloads a lot of images at once they can make the entire site unreachable to others. Is there a way to do this? Thanks! —Preceding unsigned comment added by 82.43.91.128 (talk • contribs) 06:13, July 21, 2009 (UTC)
- If you are using Apache, try mod_bandwidth - manya (talk) 10:14, 21 July 2009 (UTC)
- I am but on a windows pc, and mod_bandwidth appears to only work for Unix
- The term you want to search for is Traffic shaping or Bandwidth throttling, basically not so simple or cheap on windows. Use a separate linux box or possibly run a very small virtual linux instance on the same PC using Virtual PC, set it upo as the gateway and use traffic shaping on that. I also think there are new firmware for your router that might be able to help. --Stefan talk 03:05, 22 July 2009 (UTC)
- I am but on a windows pc, and mod_bandwidth appears to only work for Unix
DOS
hey can some one tell me how to make a batch file to del a particular FOLDER on computer.
is this correct
@echo off C:XYZ/ABC/ del CDF y exit
(where ABC, XYZ, CDF are folders and i want to delete CDF...) —Preceding unsigned comment added by Sushil shenoy (talk • contribs) 14:44, 21 July 2009 (UTC)
- Try this
@echo off (Causes batch file to run silently) c: (Change to drive C) cd \xyz\abc (On current drive (now C:) move to folder \xyz\abc. Note \ not /) del cdf /q (delete files in folder cdf. Not all DOSes have /q (quiet)) rmdir cdf (remove folder) (batch file exits when it falls off the bottom.)
Make the batch file without @echo off. Make a folder, copy some files into it and try it. Alter to suit. -- SGBailey (talk) 14:53, 21 July 2009 (UTC)
- Be very careful with deleting stuff via batch files; if one of the cd's doesn't execute correctly (due to typo or running the batch file from the wrong directory or whatever) you can easily inadvertently delete things. Many years ago I had a very bad accident with a batch file that regularly cleared out my IE caches (back when those needed to be manually cleared out!). SGBailey's looks fine of course but as you modify things, beware...! --98.217.14.211 (talk) 15:04, 21 July 2009 (UTC)
- Yes, SGBailey's batch file is pretty unsafe because the "del" command will execute whether or not the "c:" and "cd" commands succeed. (Success might not occur if there was indeed a typo in either of the two lines, or if you simply forgot an intervening directory, or if for some reason your main drive mounted as the F: drive instead of C ... so it might not do what you want, which in this case would be bad if there happens to be a "cdf" subdirectory in the current directory.) A safer substitute would be
@echo off del c:\xyz\abc\cdf /q rmdir c:\xyz\abc\cdf
Removing or reducing reverberation
Is there a way using a currently available audio software package of removing or reducing the reverberation on a recording I have on cd? Thanks —Preceding unsigned comment added by 79.75.44.241 (talk) 16:50, 21 July 2009 (UTC)
- I don't know of a package that does that - but it's certainly possible in principle. There is an analogous problem in computer graphics where you need to remove 'ringing' artifacts from lossily-compressed images. That problem is pretty much solved...so it must be possible in audio also. SteveBaker (talk) 02:07, 22 July 2009 (UTC)
- What algorithm could in principle be used steve?--79.75.44.241 (talk) 13:45, 22 July 2009 (UTC)
- The general class of algorithms you're looking for is probably Deconvolution algorithms. I'm not aware of specific ones used to reduce audio reverb. I suspect that this is not something you could do easily or with little artifacts, but It's entirely possible that I'm completely wrong. Artificial reverb (created in a computer) could probably be removed a lot cleaner than real, natural echos. APL (talk) 15:01, 22 July 2009 (UTC)
- Indeed, reverb removal is an underdefined inversion problem. I have specifically worked on this topic for audio processing, and it is hardly a "solved problem." It is very similar to multipath interference (except that it is intentionally added because it "sounds nice"). Deconvolution, multipath detection, and nonlinear noise reduction are some keywords you might find helpful during a Google Scholar search, but I doubt there are any remotely-useful commercial or free software tools to do reverb reduction. If it is some other effect, and not reverb, your chances of removal improve significantly. If by a stroke of dumb luck or artistic creativity the original recording included the impulse-response (i.e. they have a really nice, solid, isolated snare drum beat that played through the reverb processor), you can use that to estimate the impulse response of the reverb. (This is very unlikely - reverb is not usually added to the entire composition; more likely it is added to individual instrument or vocal tracks, with different amplitudes, delays, "wet/dry" mix, etc., on each track). Also note that a sound engineer can easily change any of the reverb parameters throughout the track - so you have a nonstationary, nonlinear, underdefined multi-component inversion problem (the physicists in the audience are now cringing). Read up on reverb to get an idea of why it is complicated to remove. Nimur (talk) 15:25, 22 July 2009 (UTC)
Direct weblink
Is there a way to create a direct link to search results from this page? When I do a search for "keathley george", the results show up at http://www.abmc.gov/search/detailwwnew.php, but if you go to that URL directly, the information is blank. I'd like a direct link to the search results to use as a reference for an article. Thanks. — jwillbur 23:40, 21 July 2009 (UTC)
- 'Fraid not. They have opted for using a way of sending HTML variables that doesn't let you put them in a URL in any way. It's kind of unnecessary -- they would literally have to change one word in their code (albeit maybe a few times) to have it set up the other, more useful way. --98.217.14.211 (talk) 01:49, 22 July 2009 (UTC)
- (edit conflict) I'm afraid there's no way to create a URL that goes directly to the search result. However, if your article is on a website, you can create a button that goes directly to the search result using the following HTML code
<form method="post" action="http://www.abmc.gov/search/detailwwnew.php"> <input type="hidden" name="ID" value="21473"> <input type="submit" value="Go"> </form>
- Otherwise, it looks like you'll have to give the URL of the search page and explain what to search for to get the search result. --Bavi H (talk) 01:58, 22 July 2009 (UTC)
- Thank you, Bavi. It's actually for a Wikipedia article, so a button won't work, unfortunately. But I am curious, how did you find the correct ID value? — jwillbur 05:08, 22 July 2009 (UTC)
- Last time I checked WP:EL expressly discourages linking to search results. If you're trying to provide sources for others to expand the article you are better off pasting te URL onto the talk page with instructions as mentioned above. Zunaid 07:55, 22 July 2009 (UTC)
- He doesn't want to link to a search results page—the site is a database, he wants to link to the actual entries. They don't let you do that. It's dumb. --98.217.14.211 (talk) 13:36, 22 July 2009 (UTC)
- You can find the ID value by viewing the source of the page that has the "GO" buttons on it. Each of those is a little INPUT with an ID value. --98.217.14.211 (talk) 13:35, 22 July 2009 (UTC)
- Last time I checked WP:EL expressly discourages linking to search results. If you're trying to provide sources for others to expand the article you are better off pasting te URL onto the talk page with instructions as mentioned above. Zunaid 07:55, 22 July 2009 (UTC)
- Yes, jwillbur, I did exactly what 98.217.14.211 said. Once I was on the page with the Go button, I used the View Source command in my web browser, then searched for the word "Go" (match case) to find the proper form code. --Bavi H (talk) 00:55, 23 July 2009 (UTC)
July 22
Red channel on data projectors broken?
I've come across many many projectors in our (national) company that don't display colours correctly. Without exception it is the red channel that seems to be broken. On Saturday I picked up the same phenomenon on another projector (different brand, different organisation completely). My google-fu is not strong enough to find a discussion about this on the web. What could be happening? Is it a known problem with the red channel on data projectors? AFAIK they are all DLP projectors rather than LCD. They are basically now unusable for movies or photos, only presentations. Even then you have to choose your colours carefully. The problem is so bad that we've been instructed to differentiate our graphs by some mean other than purely colour. The projectors are generally older than 1 year but <3 years. What the hell is going on? Zunaid 07:50, 22 July 2009 (UTC)
- There's several reasons why a projector wouldn't show red, have you tested different input ports? Has the red channel gone all black or all white? --66.195.232.121 (talk) 20:17, 22 July 2009 (UTC)
- It goes all black. The red channel simply doesn't display so the image is made up of only the B and G. The phenomenon happens at work with VGA-VGA cable as well as with the other projector with a DVI input using a VGA-DVI connector. Different user, different PCs at work, same result. It really is so common that I thought Google would bring something up, but sadly no. Zunaid 20:53, 22 July 2009 (UTC)
Need help with document.body.style.cursor!
document.body.style.cursor = 'crosshair' (or one of the common cursors, like "hand" or "help") works, but changing "crosshair" to an image URL to get a custom cursor does not work! I also tried document.body.style.cursor = 'url(the_image_URL_here)'. I have checked many times and the image URL is correct. How do I get it to work? —Preceding unsigned comment added by 59.189.59.132 (talk) 10:40, 22 July 2009 (UTC)
- Quirksmode says IE needs a .cur image, rather than taking an jpeg or png. I think a .cur is a .ico. 87.113.21.118 (talk) 10:58, 22 July 2009 (UTC)
Thanks!!! How do I convert a bmp, jpeg or gif image to a cur image? Any other stumbling blocks to note?
- Cur is an ICO that has a hotspot, I believe. You need specialized software for it. Google "create windows cursor." --98.217.14.211 (talk) 13:33, 22 July 2009 (UTC)
- I like the free AniFX software. --Andreas Rejbrand (talk) 22:39, 22 July 2009 (UTC)
Does anyone know an online collection of cursors which I can use with document.body.style.cursor? —Preceding unsigned comment added by 59.189.62.31 (talk) 08:02, 23 July 2009 (UTC)
Where can I find a good Ghostscript tutorial?
Hello. I'm looking for a tutorial on how to use the Ghostscript interpreter interactively. The only information I've been able to find is on how to run the gs command in batch mode. But I want to enter in PostScript one line at a time. I can't find a list of commands supported by Ghostscript and what the prompts mean (e.g., I often see a <1> or something similar after gs>). I found a very basic introduction with a hello-world example, but that's it so far. It just seems that no one is interested in PostScript any more. I don't understand why. Sigh.--H. Gutmans (talk) 11:18, 22 July 2009 (UTC)
- Perhaps the Ghostscript User Manual might be helpful? (Just search for it.) I found that the real important trick is remembering to "showpage"... --jpgordon::==( o ) 13:39, 22 July 2009 (UTC)
- It's not that no one is interested in post script, it's that there are libraries that vastly, vastly simplify things, so you don't have to muck around at such a low level. --98.217.14.211 (talk) 13:37, 22 July 2009 (UTC)
- Postscript is actually a fully respectable programming language - comparable in many ways to Python. It's more or less a matter of history that's relegated it to the rather odd niche of becoming a language for sending stuff to printers and such. We used to have entire windowing systems written using it (see NeWS). Sadly, I've forgotten all the Postscript I ever knew. As far as I know, if you fire up 'gs' without parameters then you can basically type Postscript programs right there at the 'gs>' prompt. But gs isn't a full development system with editing and all that good stuff. You really need to type your programs in someplace else and launch them from within gs. SteveBaker (talk) 04:36, 23 July 2009 (UTC)
- Good points. It's used today for many things, as well. PDFs, EPS files, and Type 1 fonts are written their own dialects of PostScript. But the most-recent books on PostScript are all out of print. There's a book available for download on PS, but it's from 1990 -- before PostScript Level 2 or 3. I've been reading Adobe's PostScript reference manual, and it's very dense reading. It's harder to learn than C for me, and the lack of friendly literature isn't making it any easier.--H. Gutmans (talk) 07:16, 23 July 2009 (UTC)
print screen
how do i print screen WITH THE CURSOR?
- To strictly answer your question, I was just able to do it by Clicking on 'START/All Programs/Accessories/Accessability/Onscreen Keyboard' and then slicking on the "psc" button on the onscreen keyboard.
- However, when I personally need a screen shot, I tend to use the "Create/Screenshot" feature of The Gimp. (The screenshot feature is called slightly different things in different versions, but it's always easy to find.) Hope this helps. APL (talk) 13:23, 22 July 2009 (UTC)
- To capture an image of the screen that also has the mouse pointer in it, you can use IrfanView, an image viewing program for Windows. In IrfanView, you can go to the Options menu and click on Capture/Screenshot. One of the options you can check is to "Include mouse cursor". --Bavi H (talk) 00:41, 23 July 2009 (UTC)
- Oh. I thought he meant he wanted to use the cursor to do a print screen. Your way makes more sense. APL (talk) 00:51, 23 July 2009 (UTC)
Computer shutting down
Hello. I've had my laptop for two years and it's always worked fine. Recently though, every time I try to 'wake up' the computer from standby, I get a brief flash of blue screen of death, then the computer restarts. Otherwise, the computer is fine. I've checke dm power options, and they are set to default (I.e the power button is not set to instantly shutdown). Is there any way I can fix this problem? Many thanks in advance =) Cuban Cigar (talk) 12:24, 22 July 2009 (UTC)
Check that the battery isn't running out. This can cause the "blue screen of death". Also, check when the computer is due to sleep in power options. 90.194.115.243 (talk) 13:16, 22 July 2009 (UTC)
Ok my battery is always charged and is def not running out. In power options, system standby is set at 'never'.114.77.68.9 (talk) 13:53, 22 July 2009 (UTC)
- Try turning off automatic restarts after the blue screen of death (it's somewhere in Control Panel -> Systems if I remember correctly) - the exact error message may give you a clue as to what is going wrong. — QuantumEleven 14:38, 22 July 2009 (UTC)
- When the system restarts, keep pressing the F8 key. when the advanced startup options appear, select the last known good configuration, try safe mode, if it goes to safe mode, try system restore. 131.107.0.77 (talk) 13:05, 28 July 2009 (UTC)
It could be a ram issue if you are in sleep mode, could be a harddrive issue if you are in hibernation mode. In any case there is an issue with either hardware re-distributing the information stored within when your pc sleeps/hibernates
Ivtv (talk) 23:30, 28 July 2009 (UTC)
Calender files
Is there an easier way to create a series of calender events than just creating them one by one using sunbird, windows calender or outlook? For example, could the events be created in an excel document and then converted to a .isc file and then imported? I know calenders can be exported into a .csv file from sunbird but I cant seem to import it back the way. I am using windows vista. 90.194.115.243 (talk) 13:11, 22 July 2009 (UTC)
- A cursory Google search shows at least one entity is already doing such a thing using Google Spreadsheets. [1] . So I know it is possible. However, I am at a loss when it comes to suggesting how to do it yourself. Its a good question. Kushal (talk) 15:25, 22 July 2009 (UTC)
- The ISC format is pretty open and the standard is too. I'm sure there are programs out there that do a number of things on data for it. Often it's the pain of parsing the input. What exactly are you trying to do? Shadowjams (talk) 11:31, 26 July 2009 (UTC)
Running a site from my home computer
Hey everyone! I'm thinking about running a small website from my home computer. A few people, maybe about 20 or so in total, will connect to my server and view pages just like any other website. The problem is I have an awfully slow upload speed, approximately 40KB/s at best. Will this cause a big problem for people trying to use my site? Will it be too slow?
As a test I've set up an example of what my site will be like (edit: I've removed the link because I've turned the server off). If it's not too much to ask, could somebody test the features, like loading a few images, and report back on if it's too slow to be usable? I'm also interested in any advice, experience or really anything you can share with me about running a home server as I'm very new to this.
Thanks so much for your help! —Preceding unsigned comment added by 82.43.88.29 (talk) 13:41, 22 July 2009 (UTC)
- not too bad for speed, at least when I tried.83.100.250.79 (talk) 14:34, 22 July 2009 (UTC)
- It worked reasonably well from here as well. You might as well give it a try. If it starts giving you problems you can switch to the cheapest hosting service you can find. APL (talk) 14:50, 22 July 2009 (UTC)
- ok thanks for testing :) So does anyone have any advice for me in general about running a server from home? Anything I need to be aware of? —Preceding unsigned comment added by 82.43.88.29 (talk) 19:23, 22 July 2009 (UTC)
- Just be aware of the obvious: 1. you might be violating your internet service provider's terms of usage; 2. you could easily go over quota (especially if someone gets your URL who doesn't like you and just curls the larger files on your site); 3. there are far higher consequences if it turns out your scripts have exploits in them; 4. and, uh, that probably covers it. Personally I think the standard $9/mo. hosting is a lot easier to deal with than home hosting, and of course you can use it for all sorts of projects without any difficulty. --98.217.14.211 (talk) 21:42, 22 July 2009 (UTC)
- If you have limited bandwidth - then be aware that you're now sharing it with your 20 buddies. You are somewhat more noticable to evil bad guys who are intent on hacking your system. You have to leave your computer running 24/7. Having said all that - I ran my site from home for years without significant problems. Only fairly recently did I switch over to a web hosting company...which I have to say, it well worth the $10 a month it costs me. SteveBaker (talk) 04:29, 23 July 2009 (UTC)
- Just be aware of the obvious: 1. you might be violating your internet service provider's terms of usage; 2. you could easily go over quota (especially if someone gets your URL who doesn't like you and just curls the larger files on your site); 3. there are far higher consequences if it turns out your scripts have exploits in them; 4. and, uh, that probably covers it. Personally I think the standard $9/mo. hosting is a lot easier to deal with than home hosting, and of course you can use it for all sorts of projects without any difficulty. --98.217.14.211 (talk) 21:42, 22 July 2009 (UTC)
carelessly using an USB stick
whenever I pull out a USB stick, I do not stop the device. Sometimes, I close the explorer windows showing folders inside the USB stick. I only see to it that the lights are not blinking or that I don't save or run anything from it when iam pulling it out. Will this damage the USB stick? —Preceding unsigned comment added by 131.220.46.25 (talk) 15:01, 22 July 2009 (UTC)
- I doubt it will do any damage to the device itself. As for your data on the device at that time, I don't think anyone can make any promises. Kushal (talk) 15:20, 22 July 2009 (UTC)
- Nobody can make promises. Modern versions of operating systems (especially Windows) have been more intelligent about directly and immediatel flushing files to the stick, and avoiding spurious reads and writes to the stick, so if you are not actively engaged in a file write operation, there "should" be no problems. However, USB is a complicated protocol, and the file system interacts with a lot of interwoven systems on your operating system, so there isn't an easy way to guarantee that file corruption will not occur. (You might be engaging in a file transfer operation, or still completing an old one that you thought was already finished, and you might not even know it). It's 8:37 AM - do you know where your bits are? The flashing LED indicators are not a guarantee of anything - some USB standards exist regarding these indicators, but I don't think they are consistently applied. Nimur (talk) 15:36, 22 July 2009 (UTC)
- Are you running portable applications? If so, the risk of "damage" is increased, as these applications may write state information to the disk which they need to remove to shut down cleanly. — QuantumEleven 15:49, 22 July 2009 (UTC)
- Nobody can make promises. Modern versions of operating systems (especially Windows) have been more intelligent about directly and immediatel flushing files to the stick, and avoiding spurious reads and writes to the stick, so if you are not actively engaged in a file write operation, there "should" be no problems. However, USB is a complicated protocol, and the file system interacts with a lot of interwoven systems on your operating system, so there isn't an easy way to guarantee that file corruption will not occur. (You might be engaging in a file transfer operation, or still completing an old one that you thought was already finished, and you might not even know it). It's 8:37 AM - do you know where your bits are? The flashing LED indicators are not a guarantee of anything - some USB standards exist regarding these indicators, but I don't think they are consistently applied. Nimur (talk) 15:36, 22 July 2009 (UTC)
- Dare I just ask why you don't bother stopping the device? It takes all of one mouse click to do so. Is it just laziness? Your subject line indicates you are aware it is careless. --98.217.14.211 (talk) 16:57, 22 July 2009 (UTC)
- Actually if the folders are closed, and you're not watching a 'copying files' dialog (obviously obviously) there shouldn't be any problem at all. USB is designed for this type of thing - you should have no problems. Provided that you let files finish copying etc.83.100.250.79 (talk) 23:20, 22 July 2009 (UTC)
- That's exactly the problem - "letting the files finish copying" is a misunderstanding. The operating system decides when the files are finished copying; you do not (even if the dialog or command terminal says the files are copied, there may be lower abstraction layers that have not finished the work). Some operating systems can have macroscopic delays (seconds, minutes, hours, or "never") after you do your "drag and drop" or complete your copy command, before the files are actually flushed to the hardware. Though modern systems try to avoid hanging open files around, you can't be very sure unless you know every minute detail of your OS file system handler. Nimur (talk) 01:15, 23 July 2009 (UTC)
- I'm not sure that I 100% believe that, you seem to be saying that the OS would close the copying files dialog box, before it had actually copied the files, or not even copy the files at all, and what? just show a hypothetical copying dialog box with a progress baar, whilst be doing nothing? Then add the files to be copied to a list of things to do, and maybe do it later, if it feels like it?? Did you have an OS in mind? (I'm just assuming that it doesn't take a brain surgeon to work out that the dialog box doesn't close until the process has finished. Wouldn't the programmer have to be noticebly stupid to do something like that)
- That's exactly the problem - "letting the files finish copying" is a misunderstanding. The operating system decides when the files are finished copying; you do not (even if the dialog or command terminal says the files are copied, there may be lower abstraction layers that have not finished the work). Some operating systems can have macroscopic delays (seconds, minutes, hours, or "never") after you do your "drag and drop" or complete your copy command, before the files are actually flushed to the hardware. Though modern systems try to avoid hanging open files around, you can't be very sure unless you know every minute detail of your OS file system handler. Nimur (talk) 01:15, 23 July 2009 (UTC)
- Actually if the folders are closed, and you're not watching a 'copying files' dialog (obviously obviously) there shouldn't be any problem at all. USB is designed for this type of thing - you should have no problems. Provided that you let files finish copying etc.83.100.250.79 (talk) 23:20, 22 July 2009 (UTC)
- There might be an issue with cached flash though, I suppose...(I should mention that)83.100.250.79 (talk) 01:58, 23 July 2009 (UTC)
- That is exactly what I am saying, and yes, it is allowable under certain circumstances. The modern file systems in use on a modern operating system are very complicated. That is why the "Safely Remove Hardware" ever needed to exist in the first place. Yes, you are right - it would be very rare to have the copy-dialog close several hours before the file flushes, but most of the file systems I've ever worked with are designed with event-driven programming - this means that there is absolutely no time constraint, ("wall clock" time), before certain processes complete. I can think of a variety of scenarios which obfuscate the simple transactional "open file - edit file - save file" model. What if two programs are editing the same file, and they both operate an auto-save feature, and each has a modified version of the same file? When does the operating system actually write the bits to the harddisk or USB stick? What if it is the same program, with multiple lightweight threads? (... or multiple hardware threads?) ... (or system interrupts that perform file writing?) What about programs that write scratch-files to (poorly-chosen) locations on the USB stick? A file transfer may be in process at any time. All of these pathological cases do exist, and modern operating systems may choose to handle them in complicated ways. Nimur (talk) 15:06, 23 July 2009 (UTC)
- There might be an issue with cached flash though, I suppose...(I should mention that)83.100.250.79 (talk) 01:58, 23 July 2009 (UTC)
- I'm assuimg there are just files on there, and not say an OS.83.100.250.79 (talk) 23:22, 22 July 2009 (UTC)
If you want to pull the usb out quick (assuming you're on windows) makes sure you have (starting by selecting the usb stick or whatever in mycomputer) : Rightclick, properties, hardware, (select the device), then properties, policies, and select "optimise for quick removal" - that way if any copies are finished, you should be able to remove the device without having to use "safely remove hardware". I should have mentioned that.83.100.250.79 (talk) 02:33, 23 July 2009 (UTC)
- NOTE, as described above - this is only safe to do if you are only using 'it' for saving files initiated by you, if the computer has any automated backup file programs running that us the memory stick, then it's safest to use the remove hardware button.
- However in windows, with "optimise for quick removal" set to on, and using the thing as a disk drive in which only you get to save files to it (manually) you are ok. But if the remove hardware button is showing - you should use it..83.100.250.79 (talk) 16:57, 23 July 2009 (UTC)
- On Windows, I personally find it easier to left click and click the drive that I need to remove. But that's just me. :) Kushal (talk) 18:14, 24 July 2009 (UTC)
[Perl] I hate this nasty animal
Perl seems to have many nasty internal inconsistencies. For example, some functions affect its own argument(s) whiles many others don't.
If you want to delete the ending \n character:
- Correct: chomp($string);
- Error: $string = chomp($string);
However, if you want to reverse an array:
- Error: reverse(@array);
- Correct: @array = reverse(@array);
Why did they create this obvious bug? -- Toytoy (talk) 16:29, 22 July 2009 (UTC)
- It's not a bug it's a feature. I don't use perl too much. --91.145.73.217 (talk) 17:34, 22 July 2009 (UTC)
- I suspect is has to do with how different object types are actually handled in memory, though that is just a conjecture. Anyway, most languages I have used do something like this on a regular basis; it's not unique to Perl. --98.217.14.211 (talk) 18:15, 22 July 2009 (UTC)
- Yes, non systematic syntax is probably the name for it, and I too have seen such annoying things in other languages (including pascal, where I didn't expect it - used for teaching and all that...)
- I've you want sympathy - I've have lots for you, it's a total pain. There's no excuse for a non-orthogonalnot sure orthogonal is the right word language.
- Maybe learn something else??83.100.250.79 (talk) 23:18, 22 July 2009 (UTC)
- I guess it comes from different programmers writing the extensions - one has made the 'function' as a function, the other as a proceedure - same problem I experienced - I'd guess since there are no proceedures as such in C (which perl is written in I understand), that chomp(string) returns null (someone else may be better to explain)
- Alternatively it could be, as described above - a feature - based on expectations of whether the original string is expected to be wanted to be kept unharmed. Which makes vague sense in the examples, but not much.
- 83.100.250.79 (talk) 00:00, 23 July 2009 (UTC)
Personally, I find the basic syntax of functions not quite intuitive when they are nested. For example, you may want to paint your wall, so you ...
- Add water to your paint.
- Dip your brush into the paint bucket.
- Apply the paint to the wall.
$painted_wall = apply(dip($brush, mix($paint, $water)), $wall);
The whole thing is very difficult to read (i.e., the reading direction is zigzagged). You can use more intermediate variables, but they make your code longer and more difficult to remember variable names.
$painted_wall = &apply(&dip($brush, &mix($paint, $water)), $wall);
I prefer to use the old-fashioned & prefix for functions. This prefix and the use of parenthesis is against the teaching of the animal-covered book Perl: The Best Practices. There is no way to do nested functions without enclosing the arguments in parenthesis unless you want to write your program in FORTH.
Is there a systematic way to deal with these annoying things? -- Toytoy (talk) 00:27, 23 July 2009 (UTC)
- Did you mean in perl, or in general. Your request looks vaguely like a plea for an object orientated language, but I'm not convinced that would turn out to be a better solution (due to the same sort of niggles as before.)83.100.250.79 (talk) 02:01, 23 July 2009 (UTC)
Creative SB Audigy 2 (WDM) SPDIF
Forgive my ignorance and incompetence regarding this subject. I have a Creative SB Audigy 2 (WDM) soundcard. According to my Control Panel, this card apparently supports SPDIF out, which would be awesome because I'd like to connect it to my receiver for at least 5.1 surround sound. I pulled out my computer and checked the soundcard jacks, but I couldn't find any digital (optical or coaxial) output jacks :(. How do I get digital sound out to my receiver? Thanks for the help!! --71.117.39.22 (talk) 16:49, 22 July 2009 (UTC)
- Is this an add-on card? Is this a laptop or PC; which model? If it is built into the PC, then the SPDIF connector may be an option. ---— Gadget850 (Ed) talk 17:04, 22 July 2009 (UTC)
- Okay here comes the incompetence...but let me have a shot at this. It's in a desktop (the easy one). I think it's an add-on; it is in a PCI slot. I'm running a dual boot Vista/XP OS. I think SoundMAX is the integrated audio from the motherboard (it doesn't work anyway). What else do you need to know? --71.117.39.22 (talk) 17:15, 22 July 2009 (UTC)
- Ok is it a "creative audio sound blaster audigy 2" ie like these http://images.google.co.uk/images?hl=en&q=Creative%20Sound%20Blaster%20Audigy%202&um=1&ie=UTF-8&sa=N&tab=wi ie does the external plate connections look the same - there doesn't seem to be a standar spdif out on these..but - from here http://www.twenga.co.uk/specs-Sound-Blaster-Audigy-2-ZS-CREATIVE-LABS-Sound-card-1283 the specs mention a "1 x audio - SPDIF output - mini-phone 3.5mm" - I've come across these before - it's a 3.5mm socket (as in miniheadphone etc), but at the end there is the optical out (sony used to put these in their minidiscs) - it's a dual use socket. You need a 3.5mm optical to spdif connector - there are some here (less than £10) [2] they're actually quite common. You can even get adaptors [3]. I've assumed it's optical digital out, not electrical.
- Okay here comes the incompetence...but let me have a shot at this. It's in a desktop (the easy one). I think it's an add-on; it is in a PCI slot. I'm running a dual boot Vista/XP OS. I think SoundMAX is the integrated audio from the motherboard (it doesn't work anyway). What else do you need to know? --71.117.39.22 (talk) 17:15, 22 July 2009 (UTC)
- Also see Mini-TOSLINK , and the references to mini-TOSLINK in TOSLINK.
- All you need to work out is which socket... Have you got the manual?83.100.250.79 (talk) 23:09, 22 July 2009 (UTC)
- My sound card back doesn't look exactly like those other ones (it's way older) but close enough. Thank you so much!! I'm quite excited now, you've made my day. Thanks for the help, the 3.5mm to optical is exactly what I need. --71.117.47.195 (talk) 16:42, 23 July 2009 (UTC)
- Good! If you don't know which 3.5mm socket to choose - it's probably the "line out" socket. —Preceding unsigned comment added by 83.100.250.79 (talk) 16:51, 23 July 2009 (UTC)
- My sound card back doesn't look exactly like those other ones (it's way older) but close enough. Thank you so much!! I'm quite excited now, you've made my day. Thanks for the help, the 3.5mm to optical is exactly what I need. --71.117.47.195 (talk) 16:42, 23 July 2009 (UTC)
- I checked the back and I'm 99% positive that it is the "Digital out" jack. Thanks again! --71.117.47.195 (talk) 20:14, 23 July 2009 (UTC)
Restoring an iPod 3G Clickwheel
I have an iPod (clickwheel) whose internal database has gotten corrupted. It shows up as a USB drive, and I was able to (in Terminal) copy all the files off of it to my computer. The problem is, it doesn't show up in iTunes at all, so I can't "Restore" it.
Is there a way to Restore an iPod that iTunes doesn't recognizes? The iPod itself seems functional except that it doesn't remember that I have any music. The internal interface works fine, though.
I'm using a MacBook with OS X 10.4.11, with the latest version of iTunes (updated just a day or so ago), if that helps. Any suggestions? --98.217.14.211 (talk) 17:43, 22 July 2009 (UTC)
- Apple has a note about how to reset a horked iPod here. -- Finlay McWalter Talk 17:52, 22 July 2009 (UTC)
- Err, no. It was not a problem with it freezing. --98.217.14.211 (talk) 18:13, 22 July 2009 (UTC)
- Ah ha! I figured it out. I used the old, now-unsupported iPod Updated 2006 which restored it even though it wouldn't work in iTunes. Hooray. Now it shows up in iTunes and will let me use it again. Yay for me. --98.217.14.211 (talk) 18:13, 22 July 2009 (UTC)
Caches, and proxies, and cgis, oh my
OK, looks like we have a group of venerable referencedeskers, who seem to be able to answer any question one throws at them. I wonder if you folks could help me?
Here is my problem. There is a closed online system that I need to access (yeah, I have access rights, no worries there). The system is basically run via a cgi script--a user is presented with a form in a browser, fills it out, hits submit, and gets the results. Unfortunately, the system's interface gets tweaked every now and then. What this means, is that on some days some parts of the interface are different from what they used to be on the day before (and these are not visible changes; just changes to how the system works beneath). In most cases, clearing browser's cache is all that needs to be done, but on some truly sad days that does not work. The reason it does not work is because some of the js, css, and htm files get cached on the proxy server (to which I do not have access). Instead of getting these parts from the system upon request, the smart-ass proxy decides to serve the files previously cached. Yeah, the files have the same names, but the content is slightly different, which means that on my end the parts don't assemble well, which leads to all kinds of nasty errors.
So, the question--in a situation like this, is there a way to tell the proxy to go funk itself never cache anything from that website? If it were just a regular html page, one could add "?whatever=anything" at the end of the URI; unfortunately, since this is a cgi call, adding random crap like this at the end of the URI means that the request won't be processed because of "unknown parameters".
The problem appears only on the PCs which are all hooked through the same proxy. When accessing the system from home, I never have this kind of problems (which, for one, says that my ISP's proxy server is configured much better than the one at work).
I searched the web for several days now, and the closest I could find was this, which isn't exactly helping. Can this even be done (please say yes)?--Anonymous and desperate in the Midwest
- Pushing ctrl-f5 on firefox (shift-reload on IE, I think) makes the browser send magic stuff in the request headers of its HTTP request, which tells the intermediate proxy to ignore its cache and go ask the real source. The way it does that is by setting a "cache-control:no-cache" line to that header. So if you were writing a program to web scrape the system, you could add that line to your own program's http request header. If you're using a browser, then I don't know of a way to force a browser to always set that header (but I'd be surprised if there isn't a Firefox plugin to to just that). You could also run another http proxy of your own (which points at the real proxy) and hard-wire it to set cache-control; or you could skip the proxy altogether and tunnel http through ssh, and so talk to the real server. -- Finlay McWalter Talk 19:25, 22 July 2009 (UTC)
- Firefox BetterCache plugin lets you control the browser's cache-control settings better; it seems to be targetted at the opposite of what you want (caching more stuff, not less) but it may also have a "don't cache site xyz.com" option too. -- Finlay McWalter Talk 19:29, 22 July 2009 (UTC)
- Good advice, thank you. Wouldn't work, though. First, I should've specified that the system only works in IE (so FF plugins are out), as it relies heavily on ActiveX. And Ctrl-F5 does not do it magic, for whatever reason (neither does nuking the browser cache). As for setting up a local proxy, it would still have to go through the company proxy (that's company's policy), so I suspect the local proxy will still be fed the exact same outdated stuff coming from the company proxy. Might be worth a try, though. Any other suggestions, anyone?--Adim
- Firefox BetterCache plugin lets you control the browser's cache-control settings better; it seems to be targetted at the opposite of what you want (caching more stuff, not less) but it may also have a "don't cache site xyz.com" option too. -- Finlay McWalter Talk 19:29, 22 July 2009 (UTC)
Back button was no longer blue
The details of my computer are here.[4]
I was editing an extremely long article, one that has been tagged so it can be split.
I tried to go back to what I was doing before I did that and the back button was no longer blue. I've seen this happen outside of Wikipedia with extremely long emails (that's how I stored stuff before I had a computer, and I don't risk losing the stuff even now by using the computer).Vchimpanzee · talk · contributions · 20:26, 22 July 2009 (UTC)
Okay, if the button is not BLUE, it's dark gray and clicking on it produces no action.Vchimpanzee · talk · contributions · 20:04, 24 July 2009 (UTC)
- No idea. It happens to me, too, every now and then, not often enough to have investigated why. It's the tab history dropping off. If you find it happening only on very long files, duplicate the tab first, to have a spare. - KoolerStill (talk) 07:58, 26 July 2009 (UTC)
unable to show hidden folders
my option to show hidden folders from the folder options isnt working. When i enable it it reverts back and hides the hidden folders. whats happening how do i enable it? —Preceding unsigned comment added by 193.220.225.251 (talk) 21:51, 22 July 2009 (UTC)
- Do you get to see the hidden folders once? or does it never work? (Did you press "apply")83.100.250.79 (talk) 22:49, 22 July 2009 (UTC)
- A google search http://www.google.co.uk/search?hl=en&q=show+hidden+folders+reverts&meta=&aq=f&oq= mentions a virus related issue, as well as issues (bug) with subfolders when the folder contains no files (or something) - do either of these two ring a bell.?83.100.250.79 (talk) 22:56, 22 July 2009 (UTC)
Jailbreak
what is jailbroken cell phone? —Preceding unsigned comment added by Cdn1 (talk • contribs) 21:55, 22 July 2009 (UTC)
Linux (wasn't he from Charlie Brown?)
So my auld laptop is dying, so I reckon it may reincarnate a little if I stick Linux on it. Wubi is the only installer I've used to date, therefore giving me a way back; but due to this computer's limited HD space, I would prefer a full conversion. How should I go about this, and how can I save my documents (conveniently in opendocument format) and move them back after opensourcification? Fribbler (talk) 23:09, 22 July 2009 (UTC)
- I use Ubuntu linux (which may or not be a recommendation); what I'd do is the following:
- download the latest ubuntu installer, and burn it to a CD
- boot the auld laptop wi the ubuntu CD, find your files, and copy them to a USB stick. Make sure to get everything you need, as the next phase is destructive.
- once you're sure, have the ubuntu installer wipe the disk and install a fresh linux partition on it (linux will offer to be nice, to do things like dual boot and stuff, but if you're hard-disk constrained then that's not such a good idea).
- This should be enough. If your laptop is guy auld then full Ubuntu might be a bit heavy for it, so Xbuntu or even Puppy Linux would be a better fit. Once you've installed, plug the usb disk in again, and copy the saved files to your "Documents" folder. -- Finlay McWalter Talk 23:44, 22 July 2009 (UTC)
- Thanks Finlay. The laptop should survive full-linux-install. It's still got a 120GB HD (but would struggle with dual-boot), but those are the instructions I needed, thanks! Fribbler (talk) 23:49, 22 July 2009 (UTC)
- Of course, you could try out various linuxes on Live CDs first. It'll save a lot of hassle installing one, then finding you don't like it and having to install another, and so on. Astronaut (talk) 20:02, 23 July 2009 (UTC)
- I had done that part, and setlled on Ubuntu a while ago. Now I'm writing this on a Linux-only system! Much faster. Fribbler (talk) 21:12, 23 July 2009 (UTC)
- Of course, you could try out various linuxes on Live CDs first. It'll save a lot of hassle installing one, then finding you don't like it and having to install another, and so on. Astronaut (talk) 20:02, 23 July 2009 (UTC)
- When choosing Linux, many will get into a debate about Ubuntu vs. Fedora (or something similar). These are distributions that differ mainly in how you install/update all the programs. The linux will be the 2.6 kernel regardless of your choice. What actually affects your usage is the desktop environment. There are two main choices: GNOME and KDE. Both Ubuntu and Fedora (and all other distributions that I've used) have GNOME or KDE options. I suggest using a live CD (Ubuntu is GNOME and Kubuntu is KDE .. or get Fedora Live for GNOME and Fedora KDE Live for KDE). You can mess around with the two desktops and decide which one you like. Once you get hooked on one, switching to another is like switching from Windows to Linux. I've been using KDE for about 10 years. When I use GNOME I spend most of my time trying to figure out where they hid the button or menu item that I need. -- kainaw™ 21:18, 23 July 2009 (UTC)
July 23
How to create a PDF file for free?
I placed this at the Wikipedia:Help desk and Steve was so nice to refer me to this board which I wasn't aware of:
I need to scan in and send some papers in PDF format (ASAP), but I don't want to buy the quite expensive software since I never needed it before and I'm sure I won't need it again in the near future. I wrongly thought [wishful thinking] Adope Photoshop (which I have) would work to convert my files. Is there a simple way out of this? Any help would be much appreciated. Thanks,--The Magnificent Clean-keeper (talk) 00:06, 23 July 2009 (UTC)
PS:"I already checked our articles about PDF's but couldn't find anything helpful for my case.The Magnificent Clean-keeper (talk) 00:06, 23 July 2009 (UTC)
- I believe Open Office has the option to save as PDF. There may be something more lightweight...or appropriate for scanned materialsFribbler (talk) 00:11, 23 July 2009 (UTC)
- I would like to be (at least pretty) sure before I download some major program as there are several which might or might not do what I need. But thanks for you trying to help me. Best, --The Magnificent Clean-keeper (talk) 00:37, 23 July 2009 (UTC)
- http://sourceforge.net/projects/pdfcreator/ is a good piece of software. Install it and you can print to a PDF. So you can scan to an image file, then print the image file to PDF. - Akamad (talk) 00:26, 23 July 2009 (UTC)
- My mistake. I wasn't clear in my initial question. I need to send these papers per e-mail so printing is not my problem. :( --The Magnificent Clean-keeper (talk) 00:37, 23 July 2009 (UTC)
- The software that Akamad linked is a fake printer. It shows up in the Windows printer list, but when you "print" to it, instead of producing a physical piece of paper, it produces a PDF file. APL (talk) 00:46, 23 July 2009 (UTC)
- I just tried it. It works great. I now have a PDF of today's Computing reference desk. Easy. Thank you User:Akamad, this is a handy program. APL (talk) 00:49, 23 July 2009 (UTC)
- The software that Akamad linked is a fake printer. It shows up in the Windows printer list, but when you "print" to it, instead of producing a physical piece of paper, it produces a PDF file. APL (talk) 00:46, 23 July 2009 (UTC)
- My mistake. I wasn't clear in my initial question. I need to send these papers per e-mail so printing is not my problem. :( --The Magnificent Clean-keeper (talk) 00:37, 23 July 2009 (UTC)
- Hey, that sounds like good news. I'll try this (and maybe other recommendations) tomorrow. Big thanks to all of you guys and girl from by now more relaxed The Magnificent Clean-keeper (talk) 00:57, 23 July 2009 (UTC)
- What type of computer are you using? That will help us a bit in recommending the software (there are many choices). Also, when Akamad says "print the image file to PDF," what he means is that most PDF creators (other than Adobe Acrobat) are printer drivers: you "print" to the PDF software, and it grabs the "printed" data (which would normally be sent to your printer), and turns that into a PDF.
- Incidentally, if you have a scanner, check that it doesn't already have a "document" mode for scanning. Most do, these days, and they will automatically turn documents into PDFs. --98.217.14.211 (talk) 00:42, 23 July 2009 (UTC)
- I'm running a PC with XP and since my good scanner has problems I'm stuck with like a "first generation" scanner. Can't expect much out of it.--The Magnificent Clean-keeper (talk) 00:52, 23 July 2009 (UTC)
- Maybe not, but you might check if the company has updated scanner software that is compatible with it. Making it into a PDF is a software-side thing, so that can be updated, even with an old scanner, much of the time. --98.217.14.211 (talk) 02:41, 23 July 2009 (UTC)
- I'm running a PC with XP and since my good scanner has problems I'm stuck with like a "first generation" scanner. Can't expect much out of it.--The Magnificent Clean-keeper (talk) 00:52, 23 July 2009 (UTC)
- Guess my problem is solved. I'll "bother" you tomorrow if not :) . Thanks to everyone.--The Magnificent Clean-keeper (talk) 01:02, 23 July 2009 (UTC)
- Update: Unfortunately I'm back and unfortunately I don't think there is a way out. I could scan and save my files as PDF with Adobe Photoshop (even so it didn't work before; Don't know why). Now the only probably unsolvable problem [w/o Adobe reader pro] is to make a single file out of them. This has some importance in my case. Does someone has an idea how to do this without the Adobe software? I tried several things inclusive promising free programs but nothing works. Also Openoffice doesn't do the job as someone recommended to give it a try (yet I'll keep it on my PC as it seems to be a quite good program. Anyways, if I don't find a solution I'll have to send the PDF's as single files [one file per page]which hopefully will be accepted from the receiving party.
- Appreciated for some new possitive input as far as it is possible, --The Magnificent Clean-keeper (talk) 21:49, 23 July 2009 (UTC)
- This google search seems to point to freeware which combines multiple PDFs into a single PDF. However I can vouch for none of it.—Preceding unsigned comment added by Tagishsimon (talk • contribs) 22:04, 23 July, 2009 (UTC)
- Gosh. I was so fixated on Wiki that I've not even thought about doing a google search. Shame on me! I'll check out what google has to offer and hope I won't need to bother again. Thank you Tagishsimon.--The Magnificent Clean-keeper (talk) 22:28, 23 July 2009 (UTC)
- Done. The first google entry did the trick. Thank you sooooooo much.--The Magnificent Clean-keeper (talk) 22:53, 23 July 2009 (UTC)
LaTex and “smart quotes”
In LaTex, it appears that the default output for the command " is ”, the closing "smart quote" - whether or not the quote is an opening quote or closing quote. Is there a command to make it output “ instead? --72.197.202.36 (talk) 03:07, 23 July 2009 (UTC)
- I use two backquotes (``) for the opening quote, and two single quotes (apostrophes) ('') for the closing quote. --Spoon! (talk) 06:31, 23 July 2009 (UTC)
- And that's in fact the LaTeX-approved way to do it. Best not to have any " characters at all in your input file. rspεεr (talk) 06:42, 23 July 2009 (UTC)
Hypercam
HyperCam used to be able to record sound for me, but now, it can't. Why? How can I fix this? 121.220.109.214 (talk) 09:40, 23 July 2009 (UTC)
Running a server from within Virtualbox
So I've set up windows xp in virtualbox and got a simple webserver running on it. All works good from the VMs localhost, but how do I direct outside connections to the server running in virtualbox?
- You're looking for port forwarding. Since you're using Windows, you'll probably need to set it up through VirtualBox, since afaik Windows doesn't offer any tools for port forwarding. Here's two guides to setting up VirtualBox to forward ports. 1 2 You'll also need to make sure that your firewall has those ports open. Also keep in mind that if your windows xp computer is behind a home router, it's probably already using NAT and the virtualbox server will be double-NATed, which often causes problems. Plus you'll need to forward the port from your router to your windows xp computer, then from there to the virtual server. Indeterminate (talk) 21:47, 23 July 2009 (UTC)
Books
On social networking sites, why do many people claim they hate books? 121.220.109.214 (talk) 10:44, 23 July 2009 (UTC)
- Whatever reason it is, I think it has more to do with the people themselves than the fact they are on social networking sites, ie they'd say they hate books irl too —Preceding unsigned comment added by 82.43.91.128 (talk) 11:03, 23 July 2009 (UTC)
- Perhaps because they like things that only require a brief attention span - hence the success of Twitter which I think is limited to 40 characters - and do not like the much longer attention span required to read a book? 78.147.241.234 (talk) 11:23, 23 July 2009 (UTC)
- My theory is that it's because a tremendous number of people are poor readers. I would hate books too if I couldn't read them fast enough to hold my interest. (Might cause a bit of sour grapes too. )
- I'm sure there's some antiintellectualism mixed in there too.
- And, as with all things "Social", some people say it because the cool people are saying it. APL (talk) 12:47, 23 July 2009 (UTC)
- (I assume they mean novels and not cookbooks and the like.) APL (talk) 12:51, 23 July 2009 (UTC)
Auto script
Is it possible to write a script that would automatically make a post on the internet, for example a blog or open forum? How would I write such a script? What language? Would .bat do? This is on a windows computer btw and I have zero previous programming knowledge —Preceding unsigned comment added by 82.43.91.128 (talk) 11:08, 23 July 2009 (UTC)
- Lots of blogging (and the like) systems have Application Programming Interfaces which allow entries to be made programatically - Twitter and Blogger, for example. Windows batch files are not appropriate for this; a proper programming language like Python, Perl, Java, or C# is necessary. Posting to a forum that doesn't have an API is possible, but would require a more sophisticated screen scraping system. All of this will require some modicum of programming. -- Finlay McWalter Talk 11:43, 23 July 2009 (UTC)
- Oh, and forums that want to discourage spammers using automated scripts often employ a CAPTCHA; getting around that is very difficult. Unfortunately such countermeasures also thwart legitimate uses as well as spam. -- Finlay McWalter Talk 11:45, 23 July 2009 (UTC)
- Thanks for the reply :) I've used iMacros a few times but it's very buggy, but I guess I'll have to stick with it unless I want to learn programming languages! Thanks anyway —Preceding unsigned comment added by 82.43.91.128 (talk) 11:47, 23 July 2009 (UTC)
- Learn python; it's dead easy, and you'll never again be the prisoner of a bunch of weird buggy programs that won't work together. -- Finlay McWalter Talk 12:28, 23 July 2009 (UTC)
Best quality way to edit Flashvideo .flv files, for free?
There seem to be two routes: 1) directly editing with a .flv editor, although the only free one I'm aware of so far is VideoThang, or 2) translate the .flv format into another format and edit that. Does anyone know what the best route would be to preserve the best picture quality, using what software? Edit: another FLV editor I've found is Avidemux (Have edited Flash Video article accordingly). Are there any more please? 78.147.241.234 (talk) 11:21, 23 July 2009 (UTC)
- Well, when you convert FLV to another format, you almost always lose picture quality by definition (see transcoding). That's not good with FLVs, where the quality is usually low to begin with (low resolution and high compression). So anything you can do that involves not transcoding (editing it with something that understands FLV natively) is a good idea. --98.217.14.211 (talk) 12:50, 23 July 2009 (UTC)
- Flash video isn't an encoding format, it's a container format. So it's perfectly simple to transfer it to another container format without any transcoding or any loss of quality (it's the same stuff in a different wrapper). I use mencoder:
mencoder -oac copy -ovc copy -o outputfile.avi inputfile.flv
. This should open up more video editing programs (ones that understand .avi or .mpg wrappers, but not .flv); you might still run into a codec incompatibility (as FLVs can be encoded with a variety of codecs), however. -- Finlay McWalter Talk 13:06, 23 July 2009 (UTC)
Thanks. Are YouTube videos encoded in this way? I'm rather surprised that FLV is simply wrapped-up AVI - really? Are there any converters with a less intimidating GUI please? 89.240.217.9 (talk) 19:39, 23 July 2009 (UTC)
- Mediacoder is free, works great, and has a GUI, although it can be a bit intimidating. Videora has a friendlier GUI, but it only converts into MPEG-4 H.264 (used by iPods, but also a common video standard). There are probably many others. Indeterminate (talk) 21:37, 23 July 2009 (UTC)
Windows 7 IE Europe How?
According to Windows_7#E_editions there won't be internet explorer on some version - so how does one get any browser at all?83.100.250.79 (talk) 13:20, 23 July 2009 (UTC)
- One downloads the browser one likes the most. Internet Explorer, Mozilla Firefox, Opera, Sarari, and Google Chrome can be downloaded by anyone in just a few minutes, completely free of charge. --Andreas Rejbrand (talk) 13:28, 23 July 2009 (UTC)
- Well, one downloads those other browsers using a browser (downloading Firefox is the only thing I ever seem to use IE for). How to get IE, or any other browser, onto an IE-free machine will pose something of a delicate challenge for them. They'd probably have an "add optional components" program, which would fetch the IE interface over the internet. But if they just offer IE, then they may be in the same problematic anti-trust position as they are trying to avoid. Technically the fix is simple: an app that lets you pick from one of several browsers (IE, FF, Opera, Safari) and install the one(s) you want, but I can hear Balmer's teeth grind over that from here. -- Finlay McWalter Talk 13:39, 23 July 2009 (UTC)
- There is a simple FTP client in Windows: just run "ftp". Probably there are many FTP servers that offer web browsers. But it is not nearly as convenient as going to e.g. firefox.com and download it. --Andreas Rejbrand (talk) 21:02, 23 July 2009 (UTC)
- "going to e.g. firefox.com" with what? -- 87.114.144.52 (talk) 00:15, 24 July 2009 (UTC)
- I think that was a comment.83.100.250.79 (talk) 09:48, 24 July 2009 (UTC)
- "going to e.g. firefox.com" with what? -- 87.114.144.52 (talk) 00:15, 24 July 2009 (UTC)
- Alternatively, those E-editions may only be offered to OEMs - so Dell or whoever would be able to ship with Firefox preinstalled but not IE (clearly Trident will still be installed regardless). The technicalities of all this are simple, but what the EU and MS are willing to put up with from the other is the hard part; it's in MS's interest to offer an IE-free version (as they offer a WMP-free version), but have in practice OEMs and users pick the with-IE version. Right now this is as much as we know - I don't believe MS have formally announced the actualities about how the IE-free E-versions will actually work. -- Finlay McWalter Talk 13:57, 23 July 2009 (UTC)
- There could be a specialty FTP client included with an icon on the desktop whose only task, when launched, would be to go and fetch Internet Explorer, and place its installer icon on the desktop. Or the user could be told the arcane set of steps needed to run cmd and then go and FTP it. Unlikely, the latter, these days. Tempshill (talk) 15:49, 23 July 2009 (UTC)
- Officially you need to download whatever browser you want in advance BEFORE you do the installation and save it to USB/CD etc and then install that after Windows 7 has been installed (or use another computer to download the installer and transfer it the Windows 7 machine). Of course unofficially you'll be likely be able to get whatever browser you want via scripting or FTP etc, but there's no "menu" or installer provided with Windows 7 to do so. ZX81 talk 16:15, 23 July 2009 (UTC)
- Well done, you found it. So no special dialog box then..
- Officially you need to download whatever browser you want in advance BEFORE you do the installation and save it to USB/CD etc and then install that after Windows 7 has been installed (or use another computer to download the installer and transfer it the Windows 7 machine). Of course unofficially you'll be likely be able to get whatever browser you want via scripting or FTP etc, but there's no "menu" or installer provided with Windows 7 to do so. ZX81 talk 16:15, 23 July 2009 (UTC)
Incidentally does anyone know if the 'browser' that can be obtained via windows help is IE independent - does anyone know what I'm talking about.83.100.250.79 (talk) 16:49, 23 July 2009 (UTC)
- It's Trident (layout engine), which is the real core of IE. I rather suspect that when they say "we're not shipping IE" they mean "we're shipping Trident, just not the IE application that makes it a general purpose browser". If they didn't ship Trident, then all kinds of things (windows update, steam, windows help, and encarta) wouldn't work. 87.114.144.52 (talk) 18:08, 23 July 2009 (UTC)
- The parts that do the networking are something else as well (I guess) eg whatever ftp.exe uses. Do those components have a name? Is it part of winsock? (networking leaves me totally blank)83.100.250.79 (talk) 09:50, 24 July 2009 (UTC)
- Yes, I've seen this before, you can also uninstall IE in Windows 7 non-E. AFAIK, they basically do the same thing which is mostly remove the IE exe. There's also some info on compatibility problems in one of the MS blogs (of course they've looked at it). There aren't many except for stuff like brain dead apps which are hardcoded to use IE. And obviously if you don't have any browser and the software you use can't handle that. Nil Einne (talk) 22:39, 27 July 2009 (UTC)
Hot off the presses- Users get the choice at first boot after install 161.222.160.8 (talk) 19:58, 24 July 2009 (UTC)
DHCP problem
Hi,
i have configured the DHCP in VMware, its assiging the IP but not assiging the defualt gateway but i have setted the gateway also..what could be the reaseon or any setting problem. —Preceding unsigned comment added by Anand.khani (talk • contribs) 13:29, 23 July 2009 (UTC)
- Is DNS getting set? -- kainaw™ 14:15, 23 July 2009 (UTC)
Firefox equivalent of Safari's .webarchive?
I've been using Safari since it was released. One feature I like is the ability to save webpages to self-contained .webarchive files. I've been using Firefox 3.6 more and more. But when I go to save a webpage I can either save it as a bare HTML file, which strips off all the graphics. Or a "complete" webpage that saves the HTML page plus a folder of graphics -- which is kind of a hassle to deal with. Is there a way for Firefox to save a complete page in one file (and not use PDF)? —Preceding unsigned comment added by 70.167.58.6 (talk) 14:23, 23 July 2009 (UTC)
- Unofficially yes, but it's not especially practical. You save the files off as normal, zip them up, rename the zip file to being a .JAR, and then use the JAR url scheme to access the files within it. I've got a note written about how to do that last bit, I'll look it out for you. -- Finlay McWalter Talk 14:45, 23 July 2009 (UTC)
- Here's the syntax - if the JAR is at /home/fin/foo.jar you'd tell Firefox to go to the following url
jar:file:///home/fin/foo.jar!/index.html
-- Finlay McWalter Talk 14:48, 23 July 2009 (UTC)- You shouldn't need to rename it to .jar, it should work fine with a .zip extension. Under Windows the syntax is jar:file:///c:/path/foo.zip!/index.html. -- BenRG (talk) 16:52, 23 July 2009 (UTC)
- Here's the syntax - if the JAR is at /home/fin/foo.jar you'd tell Firefox to go to the following url
- There are plugins that let you mirror sites with Firefox and probably ones that let you save them into single files. I've used a plugin called Scrapbook to save "whole" webpages (it downloads all the little images and etc., though it buries them into your Firefox profile directory) --98.217.14.211 (talk) 15:05, 23 July 2009 (UTC)
This is what you're looking for 8I.24.07.715 (talk) 15:15, 23 July 2009 (UTC)
I T knowledge.
I have very less knowledge on os,recent developments in hardware, softwares,..in general stuff related to IT and computers.Which is the best website that gives me all the updates??pl help —Preceding unsigned comment added by 117.193.139.41 (talk) 16:09, 23 July 2009 (UTC)
- I recommend you start reading an IT news site every day (pick a sensible one not slashdot, or the register, or the inquirer).
- I can only think of Ars Technica which covers both PC, entertainment electronics, and business IT. Hopefully someone else can suggest others.
- As you come accross terms and concepts you don't understand, look them up (maybe on wikipedia)
- I wouldn't expect to be able to follow everything, so it might be a good idea to concentrate on building up your knowledge in a selection of areas at first, and relying on other people for other topics.83.100.250.79 (talk) 16:42, 23 July 2009 (UTC)
- You probably already know this, but I always thought the most valuable IT education was by doing it yourself; download Debian and use it to set up an e-mail server, a web server, a Mediawiki server; do the same with another couple of popular Linux distros; do the same with a version of Windows Server, etc. Tempshill (talk) 17:32, 23 July 2009 (UTC)
Wii OS
What programming language would you suppose the Wii's operating system is written in? -- penubag (talk) 18:39, 23 July 2009 (UTC)
- The official devtree for Wii is Freescale's Codewarrior C++ tree (ref); there's no reason to suppose that system (wii-IOS) development would be done with a substantively different toolchain. So "C or C++" is the answer, although when C++ is used for systems programming the system programmers often dictate a lengthy list of thou-shalt-nots which preclude a bunch of standard C++ features (rtti, pure-virtual, templates, exceptions) that reduce C++ to being a C-with-classes subset some call C++-- 87.114.144.52 (talk) 19:13, 23 July 2009 (UTC)
- In addition a tiny amount of assembly is usually required, but these days that's usually limited to a few instructions on startup (setup the CPU and a stack for C to run in), wrappers around interrupt handling (push and pull registers, maybe weird stuff like branch-delay slot recalc) and a very few pieces of hand-optimised sections like filter kernels, the data pump of media codecs, and texture scalers. 87.114.144.52 (talk) 19:19, 23 July 2009 (UTC)
- Thanks very much for the thorough answer. I appreciate it. -- penubag (talk) 22:42, 23 July 2009 (UTC)
- In addition a tiny amount of assembly is usually required, but these days that's usually limited to a few instructions on startup (setup the CPU and a stack for C to run in), wrappers around interrupt handling (push and pull registers, maybe weird stuff like branch-delay slot recalc) and a very few pieces of hand-optimised sections like filter kernels, the data pump of media codecs, and texture scalers. 87.114.144.52 (talk) 19:19, 23 July 2009 (UTC)
Minus everything else, how long do you suppose it took to make the OS? -- penubag (talk) 08:12, 24 July 2009 (UTC)
What are the most active discussion forums on the web?
What are the most active discussion forums on the web? --Gary123 (talk) 18:58, 23 July 2009 (UTC)
- Here's a site that tracks members and posts. [[5]] 24.6.46.177 (talk) 19:50, 23 July 2009 (UTC)
Quality control with AdSense Competitive Ad Filter
On my new blog, I'd like to perform some quality control on the AdSense ads. I'm particularly concerned with eliminating the following:
- Health care products and advice that is contrary to medical consensus or sold without a license.
- Malware.
- Products and services based on pseudoscience or claims of the paranormal.
- Religions and cults.
- Conspiracy theories.
- Political conservatism.
- Get-rich-quick schemes.
- Unaccredited colleges.
- Tools for speculating on commodities and foreign currencies.
Are there any sites that can provide black lists or other tools to help do this with AdSense's Competitive Ad Filter? NeonMerlin 22:18, 23 July 2009 (UTC)
Disable Firefox 3.5's top bar slide effect?
Whenever Firefox 3.5 blocks a popup or asks you to save a password, the top bar slides down, moving the page with it.Same thing happens when you close a page. is there anyway to disable it? 24.6.46.177 (talk) 22:49, 23 July 2009 (UTC)
- You might find the option to disable it entirely in about:config but I'm not sure. Until someone who knows better can say, I might have an indirect solution. If you add Adblock Plus you will no longer get popups from advertisers (if that's what's causing the problem) and if you navigate to Tools>options>security>passwords>... you can tweak some settings so it doesn't ask you. Again, I know this doesn't answer your question but maybe someone else knows the answer. -- penubag (talk) 06:43, 24 July 2009 (UTC)
- I recommend AdBlock Plus regardless. It's great.
- There are two settings in the about:config screen. (Put about:config in the URL bar and hit enter.) Search for "alerts". There's two variables having to do with "SlideInterval". I haven't figured out how these work, but I'll bet some experimentation could stop it from sliding. APL (talk) 13:10, 24 July 2009 (UTC)
- It's not in about:config sadly. There might be a userchrome.css tweak for it but I haven't found one. The alerts configs refer to the alert boxes in the lower right of the screen, like the download alert. I already have adblock plus, and I would rather have the annoyance of the sliding than disabling it altogether. 24.6.46.177 (talk) 16:08, 24 July 2009 (UTC)
- You should probably ask your question here: http://forums.mozillazine.org/viewforum.php?f=38 I'm sure they know more than us. -- penubag (talk) 22:10, 24 July 2009 (UTC)
- Already did, but I'll just live with it since a) it doesn't come up too often b) I'd rather see it and be annoyed than not see it at all. —Preceding unsigned comment added by 24.6.46.177 (talk) 02:25, 25 July 2009 (UTC)
- You should probably ask your question here: http://forums.mozillazine.org/viewforum.php?f=38 I'm sure they know more than us. -- penubag (talk) 22:10, 24 July 2009 (UTC)
- You can totally disable the notification bar for popups with privacy.popups.showBrowserMessage, but you'll still get it for "remember this password?" dialogs.Indeterminate (talk) 00:20, 25 July 2009 (UTC)
- It's not in about:config sadly. There might be a userchrome.css tweak for it but I haven't found one. The alerts configs refer to the alert boxes in the lower right of the screen, like the download alert. I already have adblock plus, and I would rather have the annoyance of the sliding than disabling it altogether. 24.6.46.177 (talk) 16:08, 24 July 2009 (UTC)
Painting in Java
Hello! I haven't done very much with the java.awt package or anything with graphics other than Swing, and I have a question. I'm trying to paint (i.e. fill()) an Ellipse2D on a JLabel in a JLayeredPane (the JLabel is on the top Layer above everything else, so it's not covered up). These are the snippets of code that I have that I've used for this purpose:
Graphics2D g2 = (Graphics2D) myJLabel.getGraphics(); g2.setPaint(Color.WHITE); Ellipse2D.Float point = new Ellipse2D.Float(200, 200, 100, 100); g2.fill(point);
The fill() method is part of an actionListener, and when I run my program and trigger the action, I see a white ellipse for a very, very brief moment, and then it goes away (i.e. I see the layer below). I want the ellipse to remain there. What am I doing wrong? I have a felling it has something to do with the concurrency of Swing. (I'm running NetBeans, if that makes any difference.) Any help much appreciated. Thank you!--el Aprel (facta-facienda) 22:48, 23 July 2009 (UTC)
- In general it's better to paint on a canvas or jcanvas rather than a specific widget like a Label or JLabel, as you're not fighting with the control's own draw code; so if you want to change the appearance of a JLabel, the safest idea is to subclass the look and feel and do it there. But it is generally safe to do, if you implement both the paint() and update() methods of your own subclass of JLabel and do all the painting there. You're doing something else - you're getting the graphics context from another place, and painting on it - that works, but your work gets undone as soon as something makes the JLabel draw itself. So instead add your paint code to a subclass of JLabel, implement paint() and update(), and in your other code just throw a damage at the widget by calling its repaint() method. Repaint just adds a "repaint me" event to that component's queue, so this makes sure that all the repainting happens in the appropriate eventqueue thread, and so swing takes care of the threading problem for you. 87.114.144.52 (talk) 23:11, 23 July 2009 (UTC)
- Actually when I say "that works", I'm wrong. That works for java.awt (which relies on the native code for thread safety), but not for swing (which explicitly and deliberately isn't threadsafe). 87.114.144.52 (talk) 23:13, 23 July 2009 (UTC)
- Repaint() has another nice feature (in addition to not breaking everything); swing implements damage event ellision, so if multiple repaint events are adjacent in the queue (some thrown by you, some by the window manager, some by other bits of the system like the LnF) it will join them together into one big fat repaint event. If there are lots of paints going on, this makes for a significant performance enhancement. 87.114.144.52 (talk) 23:16, 23 July 2009 (UTC)
- Bah, I'm wrong again. Override paintComponent(), not paint() 87.114.144.52 (talk) 23:26, 23 July 2009 (UTC)
July 24
Wireless G & N
Hi, I'm trying to advise my folks on wireless routers despite being fairly ignorant myself. They have DSL, not sure which plan, but definitely not FiOS. My understanding now is that their download speeds are well below the maximum throughput of Wireless-G of 54 Mbit/s, much less N, so they don't need to buy a more expensive Wireless-N router. Is there any strong reason to recommend the N-types? Thanks. —Preceding unsigned comment added by 141.154.119.192 (talk) 03:19, 24 July 2009 (UTC)
- N has a greater range as well as speed. Though that may not make a difference to you! Mxvxnyxvxn (talk) 04:43, 24 July 2009 (UTC)
- Ok thanks, might make a difference to my folks. 141.154.119.192 (talk) 11:54, 24 July 2009 (UTC)
How do I remove colored backgrounds when viewing websites? On Firefox
How do I remove colored backgrounds when viewing websites? Dark background make the text hard to read. --Gary123 (talk) 04:12, 24 July 2009 (UTC)
- I usually just select the text I'm trying to read (either with the mouse or Ctrl-A to select all). Another option is to go to Tools, Options, Content, Colors, uncheck "Allow pages to use their own colors". But that'll apply to all pages. You can also try View, Page Style, No Style. But for most sites, it'll break the design. You could also try looking for add-ons that let you change background colors easily. Indeterminate (talk) 05:03, 24 July 2009 (UTC)
- If you use the web developer toolbar in Firefox, in its images menu there is a "hide background images" checkbox, which hides background images set both in html and by css, while leaving the rest of the page's layout and style alone. 87.114.144.52 (talk) 12:21, 24 July 2009 (UTC)
MS Vista's compatibility
When I run old outdated software, Vista says that the software has known compatibility problems. How does it know that? I know it doesn't check the web because I'm not at a hotspot, but does it have an on-board list of incompatible software? I would guess not. Theories I've come up with so far are that it looks at the date of the software and just assumes that it will have compatibility problems and by looking at the way the program is written. The latter seems like it might take some time to analyze but the notice appears instantly. What's your take? -- penubag (talk) 06:35, 24 July 2009 (UTC)
- Hopefully someone who knows about this specific error message will answer you but here's what I know :
- What I learned from the book "The Old New Thing" (Written by an MS employee on the Windows back compatibility team) is that Windows does keep a built-in list of incompatible software. In fact, sometimes there is a built-in solution to the problem. APL (talk) 13:07, 24 July 2009 (UTC)
- That's interesting but I still find it unlikely. I was running an outdated version of Adobe Acrobat and that message came up. Does that mean it even has a list of 3rd party programs? I wonder if this list can be salvaged be looking at the innards of Vista. -- penubag (talk) 22:13, 24 July 2009 (UTC)
- Yes, they definitely have that list (I believe it's a hashtable correlating binaries' checksums with a compatibility setting). The blog of Raymond Chen, the author of the book APL, describes the sometimes Byzantine lengths to which MS goes to get specific badly-written programs to run on later versions of Windows. Sure, you could reverse engineer this info out of Windows, but the subtext of Raymond's blog is generally "rely on undocumented stuff now, repent at leisure". -- Finlay McWalter Talk 22:35, 24 July 2009 (UTC)
- Wow that's interesting, thanks -- penubag (talk) 23:31, 24 July 2009 (UTC)
- Yes, they definitely have that list (I believe it's a hashtable correlating binaries' checksums with a compatibility setting). The blog of Raymond Chen, the author of the book APL, describes the sometimes Byzantine lengths to which MS goes to get specific badly-written programs to run on later versions of Windows. Sure, you could reverse engineer this info out of Windows, but the subtext of Raymond's blog is generally "rely on undocumented stuff now, repent at leisure". -- Finlay McWalter Talk 22:35, 24 July 2009 (UTC)
- It's probably also a good indicator of compatibility issues if a program calls a deprecated system call or library function. Indeterminate (talk) 00:17, 25 July 2009 (UTC)
- Yes, the compiled binary program will indicate which versions of the Windows and MFC APIs it intends to use. If the current version of Windows cannot provide that API (or must provide a different version), the operating system can warn the user. "Possible compatibility issue" is more user friendly than "COM+ library version 2.3.1 requested, substituting 2.3.3" (or whatever). Unfortunately, the user-friendly message makes it difficult for even a technically proficient user to diagnose exactly what compatibility is needed to find a fix. Nimur (talk) 15:41, 25 July 2009 (UTC)
Mathematical equations in a document
The story so far: I have to display mathematical stuff such as matrices , logarithms etc in a word document. Initially I made them in mspaint and inserted these images in word. It is too time consuming and changes cannot be made easily so I googled for a tool for working with matrices and found http://math.exeter.edu/rparris/winmat.html. This tool has an option of creating .tex document, which I found out to be latex format. The trouble is iam not able to view the matrices with this tool http://www.exomatik.net/LaTeX/USBTeXEnglish#toc3 . --- Nothing has worked yet as I have not found a way to easily create mathematical formulas and equations that can be displayed in a word document. Please say how it is done with free tools. —Preceding unsigned comment added by 131.220.46.25 (talk) 11:51, 24 July 2009 (UTC)
- All versions of Microsoft Word (at least since Word 97) have included a very easy-to-use formula editor named "Microsoft Equation", commonly "Microsoft Equation 3.0". To use this, choose Insert/Object/"Microsoft Equation". Then you get professional-looking (far superior to MS Paint drawing!) formulas, that can be edited at any time. In addition, the new Microsoft Office Word 2007 has a much improved formula editor, now as integrated into Word as options such as "bold", "italic" etc. --Andreas Rejbrand (talk) 13:01, 24 July 2009 (UTC)
- In Word 2007 just go to Insert > equation on the ribbon (click the "pi" symbol rather than the word or arrow underneath or you get a rather unhelpful list of "standard" equations). I've checked and matrices and logarithms are both covered. If you prefer OpenOffice this can also handle mathematical equations using insert > object > formula. See here for more info. 194.164.140.216 (talk) 13:08, 24 July 2009 (UTC)
- You might need to "activate" Microsoft Equation Editor on some computers, (it may not be installed as standard) - ask if this is the case.
- If you haven't got it (ie if you're using XP home + one of the lesser or older versions of word you could look at Category:Formula editors which gives a short list of programs, the majority of which are free.
- To display in a MS Word document, you could either - export as a image (eg .bmp , .jpg , .png) which is easy. Or export as an 'object' - I think MS Word accepts OLE objects, which is probably what you need. Why not try one that looks ok and see how you get on (they're mostly small downloads). Or wait for more advice..83.100.250.79 (talk) 13:14, 24 July 2009 (UTC)
- And supposedly faster and smoother than using Equation Editor is the Rapid Pi add-on. - KoolerStill (talk) 14:05, 24 July 2009 (UTC)
- In Word 2007 just go to Insert > equation on the ribbon (click the "pi" symbol rather than the word or arrow underneath or you get a rather unhelpful list of "standard" equations). I've checked and matrices and logarithms are both covered. If you prefer OpenOffice this can also handle mathematical equations using insert > object > formula. See here for more info. 194.164.140.216 (talk) 13:08, 24 July 2009 (UTC)
- I've just been trying a few out, and I found Formulator MathML Weaver to work, and be relatively easy to use (ie instructions probably not needed), (everything seems to be selected through drop down boxes), I got a nice matrix image and integral made in minutes (with no prior experience), and it exports as .BMP which you can use anywhere.(See image converted to .jpg of example made up formula)
- It's free too. In the absense of other solutions I'd try this, - if you do, ask if you get stuck..83.100.250.79 (talk) 14:17, 24 July 2009 (UTC)
- I've just been trying a few out, and I found Formulator MathML Weaver to work, and be relatively easy to use (ie instructions probably not needed), (everything seems to be selected through drop down boxes), I got a nice matrix image and integral made in minutes (with no prior experience), and it exports as .BMP which you can use anywhere.(See image converted to .jpg of example made up formula)
Running a perl script on a web server
![](http://upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/20px-Yes_check.svg.png)
Hi I'm trying to set up this perl script but I keep running into the following error "500 Internal Server Error, The server encountered an internal error or misconfiguration and was unable to complete your request." From the apache error log here's the following:
[Fri Jul 24 14:06:50 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Jul 24 14:06:50 2009] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!? httpd.exe: Could not reliably determine the server's fully qualified domain name, using 82.43.91.128 for ServerName [Fri Jul 24 14:06:51 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Jul 24 14:06:51 2009] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!? [Fri Jul 24 14:06:51 2009] [notice] Apache/2.2.11 (Win32) mod_ssl/2.2.11 OpenSSL/0.9.8k PHP/5.2.10 configured -- resuming normal operations [Fri Jul 24 14:06:51 2009] [notice] Server built: Dec 10 2008 00:10:06 [Fri Jul 24 14:06:51 2009] [notice] Parent: Created child process 4628 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 82.43.91.128 for ServerName [Fri Jul 24 14:06:51 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Jul 24 14:06:51 2009] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!? httpd.exe: Could not reliably determine the server's fully qualified domain name, using 82.43.91.128 for ServerName [Fri Jul 24 14:06:52 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Jul 24 14:06:52 2009] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!? [Fri Jul 24 14:06:52 2009] [notice] Child 4628: Child process is running [Fri Jul 24 14:06:52 2009] [notice] Child 4628: Acquired the start mutex. [Fri Jul 24 14:06:52 2009] [notice] Child 4628: Starting 150 worker threads. [Fri Jul 24 14:06:52 2009] [notice] Child 4628: Starting thread to listen on port 443. [Fri Jul 24 14:06:52 2009] [notice] Child 4628: Starting thread to listen on port 80. [Fri Jul 24 14:06:53 2009] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't create child process: 720003: wakaba.pl [Fri Jul 24 14:06:53 2009] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't spawn child process: C:/TWAMP/htdocs/wakaba/wakaba.pl |
Anyone able to tell me what I need to do? Thanks :)
- The last 2 lines are the problem; it's trying to run a script called C:/TWAMP/htdocs/wakaba/wakaba.pl and it says it can't find that file. So you either need to supply that file in that location or remove mention of it from the apache config files. 87.114.144.52 (talk) 13:30, 24 July 2009 (UTC)
- If that files does exist, at that location, then the server (which runs as another user) can't open the file, so make sure the file permissions allow the web server to access the file. 87.114.144.52 (talk) 13:31, 24 July 2009 (UTC)
- "500 internal server error" unfortunately can mean a million little things, ranging from missing files, bad permissions, or even wrong encoding. Try fiddling with all of these things. --98.217.14.211 (talk) 13:32, 24 July 2009 (UTC)
- Thanks. The problem is that C:/TWAMP/htdocs/wakaba/wakaba.pl is right there, and is in fact the file I'm entering in the address bar of my browser with localhost/wakaba/wakaba.pl
- I'm really at a loss what to do. The server runs php scrips just fine in exactly the same directory. I've installed ActivePerl and everything
No worries everyone, I found out what the problem was I had the incorrect hash bang in the .pl file. Thanks everyone!
How to find out duplicate lines?
There is a plain text file and contains thousands of lines in it. It looks like:
frkookoww fdewkoofow koroorg fwkoofw gktoot gogoldds fdewkoofow koroorg kofroroooooa . . .
Some lines are the same. I want to find duplicate lines out and delete them. Do you know any softwares for this job? By the way, supporting Unicode is better. --百楽兎 (talk) 13:36, 24 July 2009 (UTC)
- I'd use sort and uniq. Assume my file is called "lines.txt", I would run: "sort lines.txt | uniq > newlines.txt". If you don't have Linux/Unix, you can get Windows versions of sort and uniq. -- kainaw™ 13:39, 24 July 2009 (UTC)
- If it's not acceptable to re-order the file, the following Perl command will do the job:
perl -ne 'print unless $seen{$_}++' lines.txt > newlines.txt
- Thank you. I think sort and uniq for windows seems easier to me. But I just want to uniq it without sorting, what should I do? --百楽兎 (talk) 15:14, 24 July 2009 (UTC)
- The uniq function requires a sorted list. It simply will not work on an unsorted list. If you want to get real technical, uniq requires duplicate lines to be grouped together - and sort groups them. The other option is to write a script (like the perl script above). Some are one-liners (like perl) and some will be multiple lines. If you are looking for efficiency, this is a semi-common computer science homework problem. It has a recursive solution. Cut the file in half. Remove duplicates in each half. Compare both halves to see of they have any lines in common and remove them from one half or the other. The first step (remove duplicates in each half) is the recursion. You cut that half in half and remove duplicates in each half... On a single computer it isn't very efficient. If you are running on a parallel system, you can farm out the work to many other computers. -- kainaw™ 15:33, 24 July 2009 (UTC)
- You could load the file in your browser, paste the following:
javascript:c=s=""; h={}; a=document.firstChild.innerHTML.split(/\n/g); for (v in a) if (!h[a[v]]){h[a[v]]=true; s += a[v] + "\n"}; s
- into the location bar, and then save the file as text. It worked for me in Firefox, but your mileage will certainly vary. --Sean 16:32, 24 July 2009 (UTC)
- It's not as nifty as the other options given above, but you could also do this in Excel fairly easily. Copy and paste the list into Sheet1 and again into Sheet2. Assuming your lists start in cell A1, type the following in cell B1 of Sheet1: =countif(Sheet2!a:a,a1) and then double click the box in the bottom right corner of the cell to auto-fill in the formula - the results will be the number of iterations of each term in the list. In column C, put a 1 in cell C1 and a 2 in cell C2 and use the same double-click trick to auto-fill column C with numbers (to preserve the original order). Sort by column B to find and delete the duplicates, then sort by column C to restore the original order. Matt Deres (talk) 19:48, 24 July 2009 (UTC)
- Thanks all friends! I learned very much from your wise solutions. All are cool. --百楽兎 (talk) 23:44, 24 July 2009 (UTC)
A PROGRAM NEEDED
hello, give me a good C program to print the following pattern using both (i) arrays and structures (ii) array pointers and structure pointers note: the * symbol must be printed using a function and not directly using printf statement PATTERN:
*************************************************** ANNA UNIVERSITY, TRICHY *************************************************** Roll.No: Name: *************************************************** Subject Subject Maximum Minimum Marks Code Name Marks Marks Obtained ***************************************************
thank u —Preceding unsigned comment added by Srividhyaathreya (talk • contribs) 13:44, 24 July 2009 (UTC)
- We're not going to do your homework for you. If you write a program and it doesn't work, or if you have some specific questions, then someone might answer them. But we don't do all the work for you. 87.114.144.52 (talk) 13:51, 24 July 2009 (UTC)
- You might also spend some time rereading the instructions, as printf() is a function, not a statement. --Sean 14:08, 24 July 2009 (UTC)
// ...
int meaningOfLife() {
int whatIsIt;
whatIsIt = 6*9;
return whatIsIt;
}
int main() {
int i;
for (i=0;i<80;i++) {
putchar(meaningOfLife() - 12);
}
putchar('\n');
}
- This is dramatically unnecessary, but it will get the
pointasterisk across. Nimur (talk) 15:48, 25 July 2009 (UTC)
- This is dramatically unnecessary, but it will get the
Linux chmod, chown, chgrp
I need to do the following, recursively in a directory tree:
- chmod 755 for all subdirectories
- chmod 644 for all files
- chown www-data both for files and directories
- chgrp www-data both for files and directories
Could someone please suggest how to to this from the command line, in an easy-to-remember way? Thanks, --NorwegianBlue talk 14:27, 24 July 2009 (UTC)
- find -type d -exec chmod 755 {} \;
- find -type f -exec chmod 644 {} \;
- chown -R norwegianblue www-data
- chgrp -R somegroup www-data
- 87.114.144.52 (talk) 14:34, 24 July 2009 (UTC)
- Thanks! find was what I was looking for. The chown and chgrp syntax doesn't seem to be right, though. Didn't work, and the manpage says nothing about specifying the original owner/group name. But
find -exec chown www-data:www-data {} \;
- appears to work, and changes both user and group. Btw, why the need for a backslash before the semicolon? --NorwegianBlue talk 18:25, 24 July 2009 (UTC)
- sh uses semicolon for syntactic purposes, so it needs to be escaped to make it unsyntactic or whatever. Unescaped it separates commands without a linebreak, eg 'rm ~/.bash_history; history -c; exit'. --91.145.89.22 (talk) 19:06, 24 July 2009 (UTC)
- Thanks. --NorwegianBlue talk 19:07, 24 July 2009 (UTC)
- sh uses semicolon for syntactic purposes, so it needs to be escaped to make it unsyntactic or whatever. Unescaped it separates commands without a linebreak, eg 'rm ~/.bash_history; history -c; exit'. --91.145.89.22 (talk) 19:06, 24 July 2009 (UTC)
- I usually just use chown -R username:groupname directory. Never needed chgrp. Indeterminate (talk) 00:09, 25 July 2009 (UTC)
- Missing from all these answers is the elegant answer chmod -R a+rX. This is not the same as a+rx which would add x permission for everybody on everything. The capital X adds x permission for everybody on those things that are already executable for somebody. In other words it's probably exactly what you're looking for. The creators of unix knew you'd want it so they added it for you, around 25 years ago. 69.245.227.37 (talk) 11:43, 25 July 2009 (UTC)
- Brilliant! Thank you. --NorwegianBlue talk 15:58, 25 July 2009 (UTC)
Extending wireless range
At my sister's house they have a single wireless modem/router. The signal is pretty good downstairs and in the garden, but the signal is pretty weak everywhere upstairs; and in a couple of bedrooms the signal is so weak that a reliable connection cannot be maintained. The wirless point is located in a single storey extension towards the rear of the house, and I believe the quantity of pipes, wires and other stuff in the space between the ceiling and the floor upstairs is partially shielding the upstairs. We have already tried a wireless range extender but it wouldn't communicate with the modem/router - according to Linksys technical support, the range extender is only compatible with a limited number of their products and my sister's modem/router is not one of them. We could run wires to the upstairs, but doing so would require extensive drilling, disturbing newly laid hard floors, and the kids would all have to connect to the wired connection.
In a couple of weeks (while they are all away on holiday and I'm looking after their large number of pets), I will be doing some experiments, placing the wireless/modem in various locations to see if I can improve the situation upstairs. One alternative though is to replace the current wireless-G modem/router with a newer wireless-N product. My question is: if the receiving equipment (ie. laptops and various wireless cards) is still only compatible with the wireless-G standard, will we actually get any increase in the effective signal strength upstairs? In other words, would I be better off saving my sister the £80 that it would cost to get a new modem/router, and instead get a long drill to pass the cables upstairs? Astronaut (talk) 18:21, 24 July 2009 (UTC)
- I wouldn't put to much into upgrading to an N standard only, partly as it requires any visitors to be bang up to date with technology. Do they really need the reception in the garden? One solution (which has worked for me) is just to put the whole router into a metal saucepan (literally), which would point the beam to the front and upstairs of the house, away from the garden. It may not penetrate whatever is blocking it already. Like pipes, as you suggest.
- The Linksys WRT54G series is famous for being one of the most hacked devices of all time, and is popular as a repeater. As the firmware is GPL replaceable, you can strengthen the signal, and repeat things which Linksys really would rather you didn't. US$26.00 (including shipping) gets you a used one in the USA [6]. The Apple Airport Express is an expensive, although no-nonsense solution. Which unfortunately only works with its own stuff.
- You are absolutely right not to start making any modifications to the house - which may well be redundant in five years' time anyway, as 3G and WiMax take over.78.149.86.100 (talk) 11:23, 25 July 2009 (UTC)
- Get yourself some cardboard and some tinfoil, then try this.F (talk) 09:31, 26 July 2009 (UTC)
Internet on two computers
I have two computers, both with ethernet ports. My internet connection comes directly from the router via an ethernet cable, but there is only one port on the router so only one cable can be connected to it. How can I get internet on both computers? —Preceding unsigned comment added by 82.43.91.128 (talk) 18:40, 24 July 2009 (UTC)
- I am not sure, but maybe something like this? Reading the product description I wonder if it is not more complicated than that though. Mike R (talk) 18:52, 24 July 2009 (UTC)
- You need an Ethernet hub, or (better) a network switch. You plug the cable from the router into the hub/switch, and connect your PCs to the hub/switch. --NorwegianBlue talk 19:06, 24 July 2009 (UTC)
- If what you have is really a router, and since a router creates a local network and gives out many IPs on the local network, then all you need is an Ethernet switch on your local network, that connects the router and the computers. However, it is highly unusual for a gateway router that is produced in the last 10/20 years to not have multiple ports on the local side (i.e. a built-in switch). It is also possible that what you actually have is a DSL modem or cable modem that does not include a router or includes a "fake" router (some DSL/cable modems do include a real router, but I would imagine that those would usually include multiple ports on the local side), which only gives you 1 IP. In that case, you would need to put get an actual router and put it between the modem and your computers. --Spoon! (talk) 19:08, 24 July 2009 (UTC)
- Spoon! is correct. Another solution might be to turn on "network sharing" if the PC plugged into the router is a Windows PC, but you would need a second Ethernet port on that PC (perhaps via a PCI Ethernet card) in order to connect your 2nd PC to the first PC. I'd recommend a router with 4 ports on it, myself. Tempshill (talk) 23:58, 24 July 2009 (UTC)
- The best way is to get yourself a new modem/router, making sure it is compatible with your connection to the internet (ie. phone or cable) and has sufficient ethernet ports for your needs. Stores like PC World have a selection from £30+. Astronaut (talk) 05:13, 25 July 2009 (UTC)
The idea about connecting the second computer to the first sounds good! Both computers have two ethernet ports themselves. How would I go about sharing the connection between them? And would the second computer act as if it was connected to the internet directly (ie would incoming connections like for gaming and stuff go to the second computer, or the first computer only?) —Preceding unsigned comment added by 82.43.91.128 (talk) 06:59, 25 July 2009 (UTC)
- Are you running windows, if so this is easy - the first step is to connect the two computers using an ethernet cable plugged into the ethernet ports.
- Instead of telling you myself try this link http://support.microsoft.com/kb/306126
- Additionally you might want to set up a 'home network' which allows you to share files (and printers and stuff) between the two computers using the "shared documents" folders. If you want to try that search for "microsoft support home network"
- If you are running vista the instructions may be slightly different - http://windowshelp.microsoft.com/Windows/en-US/Help/0c0f5981-6e3e-4912-a8d2-afc462b83d8c1033.mspx
- It does work, though if you have any problems such as "limited or no connectivity" or "cannot obtain IP address" ask again.
- If you don't have a windows OS then please say which type you are using.83.100.250.79 (talk) 11:29, 25 July 2009 (UTC)
Ok thanks I'll give it a go. Will the second computer be able to receive incoming connections (like a game or web server)? Or will those connections only go to the first computer (the one directly connected to the internet)?
- Yes is should/will do all that. (Each computer gets a different address - like a telephone number and the signals always go to the computer that sent it)
- Though if it doesn't work straight away you might need to adjust the settings -- specifically when you activate the "share this internet connection" there's a button "settings" on the same form. Once you've set sharing to on, you might (or probably will need to go to that box - usually the DHCP box needs to be ticked. It's simple to do. But see how you get on first. It may work straight away.83.100.250.79 (talk) 14:03, 25 July 2009 (UTC)
My question wasn't answered
[7]Vchimpanzee · talk · contributions · 20:06, 24 July 2009 (UTC)
- If the back button is grey and not blue that means that there is nothing to go back to - ie no previous pages etc. This should only happen when the window has been opened for a new page, and the page has not been navigated away from eg no clicks on hyperlinks etc.
- If you are getting a grey button, when their should be a blue one, then this is obviously a bug. If so can you replicate when the bug happens (technically you should probably contact MS support about this) - but first - can you describe how (exactly) you get to this situation - if you can I will try it, and see if the same thing happens.83.100.250.79 (talk) 21:38, 24 July 2009 (UTC)
- Also can you link to a long file that this has happened in when editing.83.100.250.79 (talk) 22:44, 24 July 2009 (UTC)
- I don't know. The library computers had this problem too. Then again, the gigantic emails sometimes wouldn't show up. That was on computers that I believe have been replaced. Let me try right now to duplicate what I did.Vchimpanzee · talk · contributions · 15:28, 25 July 2009 (UTC)
- I did it. I should mention that my computer recently told me to get Internet Explorer 8, so I did.
- I don't know. The library computers had this problem too. Then again, the gigantic emails sometimes wouldn't show up. That was on computers that I believe have been replaced. Let me try right now to duplicate what I did.Vchimpanzee · talk · contributions · 15:28, 25 July 2009 (UTC)
- The sequence was originally to go to [8] because I had seen his name somewhere in an article related to 9-11. I just wanted to see if he had a separate article, and boy, did he. I noticed his name had a hyphen in one place but not in another, so I decided both of those should match. Today I edited to suggest a split, because when I edited, it said the page was 159 KB at the top. I had read 35 KB was the recommended maximum. Today, I previewed, the template looked right, and I submitted. Then I tried to go back and this [9] was as far as I got. It said at the top of the page "Remember that this is only a preview; your changes have not yet been saved!"
- If I can remember I'll try to document the sequence of actions with email. I'm very reluctant to do anything like that while I'm on my own computer.Vchimpanzee · talk · contributions · 15:43, 25 July 2009 (UTC)
- As I sat and waited and waited, I remembered I'm using the second slowest speed available. The only speed slower is dial-up, and no one wants that because it ties up the phone and has other problems besides just being slow. The web sites show up faster on screen once I've gone to each one for the first time.Vchimpanzee · talk · contributions · 15:51, 25 July 2009 (UTC)
- That effect is called caching - the pages show up faster because you are not downloading them; instead, your browser is showing you the copy you downloaded last time. Nimur (talk) 16:00, 25 July 2009 (UTC)
- Actually, they're new pages from the same sites, but they do show up faster later.Vchimpanzee · talk · contributions · 16:37, 25 July 2009 (UTC)
- That effect is called caching - the pages show up faster because you are not downloading them; instead, your browser is showing you the copy you downloaded last time. Nimur (talk) 16:00, 25 July 2009 (UTC)
- As I sat and waited and waited, I remembered I'm using the second slowest speed available. The only speed slower is dial-up, and no one wants that because it ties up the phone and has other problems besides just being slow. The web sites show up faster on screen once I've gone to each one for the first time.Vchimpanzee · talk · contributions · 15:51, 25 July 2009 (UTC)
Computer sputters and dies
My brother's computer, which generally has an issue with accumulating malware, is deciding to be a pillock. He can boot it up and log in A-OK, but the computer suddenly restarts within three minutes after doing so, regardless of the account he logs onto. He's certain there's no bugs on the rig because he ran MalwareBytes last night before he went to bed. He is running Windows XP. -Jeremy (v^_^v Tear him for his bad verses!) 21:43, 24 July 2009 (UTC)
- Sudden restarts suck. Does this occur when you boot Windows XP up in safe mode? If so, and if I were in this situation, my next exercise to try to narrow down the problem would be to make a memtest86 startup disc, boot from it and run memtest86, eject the disc, and let it run its memory tests overnight. (Eject the disc so that if there's a restart, you'll know in the morning.) If it restarts during this overnight session, then you know that it's probably a hardware problem and not a software issue. Tempshill (talk) 23:56, 24 July 2009 (UTC)
- He hasn't used safe mode yet, to my knowledge. -Jeremy (v^_^v Tear him for his bad verses!) 00:38, 25 July 2009 (UTC)
- The computer's not rebooting in safe mode; just outside of it. He's told me he believes the problem stems from his McAfee install (courtesy of our Comcast internet setup), but that theory got killed when it rebooted again - and now it's being stubborn about the boot menu! SysRestore's also borked. -Jeremy (v^_^v Tear him for his bad verses!) 06:37, 25 July 2009 (UTC)
- For a hoarder of malware, running just one scanner is nowhere near enough. He'd need to run at least Spybot and Ad-Aware as well, and any one of numerous good free anti-virus programs that are available. These between them will cover most of the spectrum of possible nasties. Then run RootRepeal to get any root kit virus, which is the second likeliest to cause unwanted restarting (after dial-home trojans which can't find their home planet).
- Meanwhile, go to Control Panel > System > Advanced > Startup and Recovery, and turn off System Failure > automatic restart. This will let you see an error message, if any, about what is causing the restarts. - KoolerStill (talk) 13:12, 25 July 2009 (UTC)
- Here's the error message: DRIVER_IRQL_NOT_LESS_OR_EQUAL. Also, he has three new desktop shortcuts to porn sites on his rig, ones that I'm pretty certain he didn't put on there. Safe Mode is also borking now, throwing up "PAGE_FAULT_IN_NONPAGED_AREA" errors. -Jeremy (v^_^v Tear him for his bad verses!) 04:02, 27 July 2009 (UTC)
- The computer's not rebooting in safe mode; just outside of it. He's told me he believes the problem stems from his McAfee install (courtesy of our Comcast internet setup), but that theory got killed when it rebooted again - and now it's being stubborn about the boot menu! SysRestore's also borked. -Jeremy (v^_^v Tear him for his bad verses!) 06:37, 25 July 2009 (UTC)
- He hasn't used safe mode yet, to my knowledge. -Jeremy (v^_^v Tear him for his bad verses!) 00:38, 25 July 2009 (UTC)
- You might also want to try running msconfig or Sysinternals Autoruns to disable the programs that automatically start up with your computer. If the rebooting stops after disabling those programs, you can try running them one at a time until the rebooting starts up again. Indeterminate (talk) 00:14, 27 July 2009 (UTC)
July 25
Internet causing computer crashes 2
Posted this earlier (just search for a question without the 2 at the end of title--) and someone suggested using Malware Anti-Malware so I finally got around to doing that (the computer I'm trying to fix isn't mine...) and it hasn't resolved my problem. Here's the original problem:
My computer crashes sometimes when I use the internet- completly crashes. Whatever site I'm on is open, nothing looks different, except everything is frozen and must turn off power using power button. It happens when I use Firefox, IE, on different websites (some don't even have flash or anything- last time I used the computer it crashed on espn.go.com)
I've ran Malware and it found a RougeDriveCleaner which I doubt caused the problem. Before Malware I ran I ran A-2 (free) squared and it found 2 viruses (Riskware.gen.Nero!IK, Trojan.BAT.Delfiles). After running A-squared I could use explorer.exe; before it would give me DEP and explorer would die everytime I tried to open it (even to view a folder.) Not sure if any of those are really problems but I deleted them anyway since they were in files and programs I didn't need. Ran some others-Avira(free), SuperAnti-Spyware (free) (it found 2 virus and about 300 tracing cookies also but unfortunatly its log somehow got erased..) I could post the HijackThis! log but I'm not so sure it would help. Given that it's sporadic I'm guessing that the actually virus (assuming its a virus) isn't always running. When it does run my computer crashes so I need to restart. Could there be a reason outside a virus? Computeridiot34 (talk) 00:22, 25 July 2009 (UTC)
- I would run MalwareBytes AntiMalware and Spybot Search and Destroy (both free) and a free online antivirus scan such as Trend Micro HouseCall. This will least rule out the possibility of a virus or malware problem. Next I would then look at what programs are set to run on start-up using msconfig and services.msc (just use start --> run to execute these) as you may find there are some junk applications such as free screensavers etc that are causing the crash. Also, use Crap cleaner (free) to clear out all temporary files too. Rjwilmsi 09:56, 25 July 2009 (UTC)
- It has 8 gb of temp. internet files but I'm not sure what that means. It has alot of work files downloaded as PDFs from online journals, etc. Things I can't delete. So are these 8 gb of temp. files causing the crashes? Computeridiot34 (talk) 23:35, 25 July 2009 (UTC)
transferring files - tricky
What would be the easiest way to transfer a ~7 GB dmg file from a PC (Windows XP, desktop) to a Macbook (Tiger)? I have a 4 GB flash drive and a 2 GB SD card (which fits in a camera, conveniently).
I am assuming that splitting the file using 7-Zip and then transferring it would be the straight-forward solution. However, I was wondering if there is an "easier" way out. Is it possible to "open" the dmg on a PC as on a mac? I mean reveal the contents of the package so that I know what I need and what I don't ... thanks. Kushal (talk) 02:25, 25 July 2009 (UTC)
- How about connecting them to the same network, and then transferring the files over AIM or something like that? Our Apple Disk Image article talks about the .dmg file format; in particular, you might be interested in the Apple Disk Image#Non-Macintosh section. --Spoon! (talk) 04:13, 25 July 2009 (UTC)
Thanks for the ideas. I got the ISO using the article you showed me (the Java program is awesome). I was wondering if I could change contents of the package and repackage it so I can run the dmg off of a 4 GB flash drive. Any ideas? Kushal (talk) 19:23, 25 July 2009 (UTC)
- Archivers (7zip, WinRAR, etc.) can split archives into user-defined sized chunks which can then fit on your flash drive. --antilivedT | C | G 00:26, 26 July 2009 (UTC)
Antilived, thank you for the reply. I used 7 zip to create zip files and I used split and concat to join them but the resulting zip file was unusable. I am trying to do the split and join process again to see if it was some error on my part. I wish 7 zip was available on the Mac OS. Well, I will be back to report on the progress. Kushal (talk) 16:07, 26 July 2009 (UTC)
Jobs-for-life in the computer industry
Let's say you are a top-dog 3D CG programmer. To keep you from getting a pink slip, you have to learn lots of things during your career (i.e., new hardware, new instructions, advanced algorithms, improved software languages/architecture ...). Most abilities in the computer industry are becoming obsolete or inadequate in a few years thanks to the progress. What are the kinds of knowledge/expertise that have withstood the changes for the longest period of time?
I went to a public library last night. I noticed that some Z-80/8080 books published in the late 1970s and early 1980s are still being borrowed by people (due dates!). I think they are useful because many 8-bit processors are used in today's embedded systems. People are making honest money coding these 30-, 40-year-old things for a very large number of diversified employees.
Let's say you're a computer technician driving a time-machine to 2009 from the 1960s or 1970s. If you rule out those single-employee, limited-demand repairing jobs, are there any today's hard- software jobs that may demand your input? -- Toytoy (talk) 05:33, 25 July 2009 (UTC)
- Many major organisations still use legacy systems developed in the late 1970s. They might have been ported to newer equipment or even newer operating systems, but if the program code is stable and it still does what is required then it could easily still be in operation. Those organisation are reluctant to lose their investment in years of development, for something new which might be years before it is as stable. Therefore you will still find organisations using a program written in COBOL and running on IBM mainframe systems; and they will have one or two people already on staff who are probably the only ones who know anything about how it works. Astronaut (talk) 09:26, 25 July 2009 (UTC)
- Another thing to consider is to position yourself as the only one who knows how a particularly critical system works. For example, I used to know the guy who developed part of the communications system that is used in around 60% of the world's lotteries. It is a small role, but he is needed whenever a new lottery system is setup or an existing system undergoes a major upgrade. Astronaut (talk) 09:35, 25 July 2009 (UTC)
- I think Z-80 programming is unlike COBOL. Being a COBOL programmer today is like working for a museum -- generally you don't make new things. In contrast, a new model of microwave oven may require new functions written in Z-80 assembly language from scratch. You probably can change your job because many industries still use these 8-bit chips. You job is not repairing a particular legacy system. -- Toytoy (talk) 15:25, 25 July 2009 (UTC)
- You should think about computer theory (properly, "computer science", but that has become a loaded term). Programming has changed very significantly, and will continue to do so, but the structure and methodology of computer system design has actually not changed very much since its first incarnations. From the standpoint of hardware, the things which used to be reserved for very expensive mainframe computers are now available on every desktop, so this has enabled designers to rearrange the way they do computing; but overall, the same basic concepts of system analysis are the same. Being a critical thinker is more important than knowing the ins and outs of this week's latest fad scripting language. Nimur (talk) 16:07, 25 July 2009 (UTC)
Tracing of an email address
In the recent case of Darryn Walker, who was unsuccessfully prosecuted in the UK for writing an "obscene" story on a text-based story website, how was the author traced? The article says that he was "reportedly traced" through his email address, but I believe this was an anonymous Yahoo or Hotmail address. There was no IP address visible on the site. So how is it possible to trace an individual through their use of an anonymous email address? --Richardrj talk email 08:06, 25 July 2009 (UTC)
- Even if the user has an anonymous e-mail address in which they provide no personal details when they sign up, if they access that e-mail address from their home computer the e-mail provider can log the IP address of their home computer, and the ISP that provides their Internet service can link that IP back to the bank account that pays for their Internet connection. In that way the user could be traced. Rjwilmsi 09:50, 25 July 2009 (UTC)
- Thanks for that. So what are the privacy policies of email providers and ISPs in this regard? Do email providers log the IP addresses of their users, and if so, do they pass on those details to ISPs? And, to add the final link in the chain, do ISPs pass on those details to the police when they are asked to do so? --Richardrj talk email 13:52, 25 July 2009 (UTC)
- They all do log the IPs and they pass them on to law enforcement agencies with subpoenas, usually. --98.217.14.211 (talk) 14:07, 25 July 2009 (UTC)
- Depends on the country you are querying about, and our answer depends on whether the police/government behave according to law or not. Tempshill (talk) 05:41, 26 July 2009 (UTC)
Man day in software
If a software project is said to be completed in 20 man days, does it mean the entire project was completed by 1 person in 20 days? Or is it that x number of people worked on this project for 20 days? I would appreciate a quick reply. Thanks!--117.196.133.19 (talk) 09:21, 25 July 2009 (UTC)
- It means the equivalent 20 days of work, if carried out by one person. Whether it was in fact 1 person for 20 days, 2 for 10, or 40 people for half a day is not specified. See man-hour for more. Rjwilmsi 09:44, 25 July 2009 (UTC)
- In project planning, a man-day is the amount of work done by one person in one day (I'm surprised we don't have an article about that). The day is usually defined as 6 - 7.5 man-hours depending on the hours of work and the length of the lunch break. A man-year is typically 240 man-days (ie. it excludes weekends, vacations, sickday). In your example above, it means 1 person worked alone for 20 days, or 2 people worked together for 10 days, or 4 people worked together for 5 days, or 20 people worked together for 1 day. Astronaut (talk) 09:46, 25 July 2009 (UTC)
- We have man-hour, and man-week and man-month redirects to it (it's more generally written). So I've redirected man-day to man-hour; that article could do with a more generic name, but hypothetical worker abstract work units doesn't trip off the tongue. -- Finlay McWalter Talk 13:52, 25 July 2009 (UTC)
- I vote for hypothetical worker abstract work units to be made an article, or at least redirect to the other one.
- We have man-hour, and man-week and man-month redirects to it (it's more generally written). So I've redirected man-day to man-hour; that article could do with a more generic name, but hypothetical worker abstract work units doesn't trip off the tongue. -- Finlay McWalter Talk 13:52, 25 July 2009 (UTC)
- Nobody has linked to the Mythical Man-Month yet? This famous book, written by an IBM software project manager, blasted the idea that (1 person x 20 days) = (20 people x 1 day), or that software projects can even be measured in these terms at all. Nimur (talk) 16:09, 25 July 2009 (UTC)
- The classic rebuttal is the case of pregnancy. Technically it might be ~9 man-months of effort, but 10 men (or even 10 women ;-) are not going to be able to produce a baby in under a month, no matter how hard they try. -- 128.104.112.87 (talk) 18:28, 25 July 2009 (UTC)
Hooking speakers up to laptop
I just got a set of 5.1 speakers, because I had "points" to redeem through Westlaw and it seemed like the best thing of all the crap in their little online store. I don't particularly need 5.1 sound, just basic stereo with the sub would be fine with me. The speakers have three different colored male cords to hook into your computer/TV, but my laptop has only one output thing for speakers/headset. Can I just plug the black cord into my laptop or could that cause problems somehow? I don't want to buy an external sound card or anything fancy. If these speakers won't work I'll just sell them or give them away. Calliopejen1 (talk) 14:16, 25 July 2009 (UTC)
- The "Green" is color code for primary (stereo) speaker. Plug that into the "headphone jack" for the standard sound experience. You can also buy external stuff (for example, a USB attachment) which will have a breakout for each speaker. Remember always, though - the sound quality is dictated by the weakest link on your audio chain - your source material, your laptop's audio card, your cable, your speakers, etc. If you're watching web TV, there's only stereo sound anyway, so you aren't missing anything. Nimur (talk) 16:13, 25 July 2009 (UTC)
- None of those plugs should cause problems, but you probably want to plug in the primary speakers, not the side-speakers. Nimur (talk) 16:15, 25 July 2009 (UTC)
- Ok thanks! 209.6.22.105 (talk) 18:29, 25 July 2009 (UTC)
- None of those plugs should cause problems, but you probably want to plug in the primary speakers, not the side-speakers. Nimur (talk) 16:15, 25 July 2009 (UTC)
- The "Green" is color code for primary (stereo) speaker. Plug that into the "headphone jack" for the standard sound experience. You can also buy external stuff (for example, a USB attachment) which will have a breakout for each speaker. Remember always, though - the sound quality is dictated by the weakest link on your audio chain - your source material, your laptop's audio card, your cable, your speakers, etc. If you're watching web TV, there's only stereo sound anyway, so you aren't missing anything. Nimur (talk) 16:13, 25 July 2009 (UTC)
server blocked by nat
How can I access a web server on a computer which is connected to my local network via NAT? Is there like a free program which you could run on both computers to let them speak to each other?
- Do you have administrative access on the NAT? It sounds like you need port forwarding. Otherwise, you could try setting up a VPN and tunneling connections, but this is not easy. (My lousy experience with OpenVPN last summer led me to conclude that commercial VPN software is worth the exorbitant costs that they charge large organizations). Nimur (talk) 16:17, 25 July 2009 (UTC)
- Wait, now I'm confused - you are already on your local network? Is the computer already running web server software, like Apache (server)? Then, you should be able to use the local IP address or DNS name of that computer directly. The NAT should only matter if your client is outside the local network. Nimur (talk) 16:19, 25 July 2009 (UTC)
- I tried entering "localhost" into the browser on the computer without the server but it didn't work. The other computer with the server has the same ip address as this one, I checked on http://showip.net Reg556 (talk) 16:46, 25 July 2009 (UTC)
- You should read Network address translation. Because of the NAT, your computers appear to have the same IP address, but they actually have two separate, local addresses. If you are using a home router, these will usually be something like "192.168.1.100" (but it depends on your DHCP settings and the type of NAT/router/DHCP server you have). You need to find the actual, local IP addresses. If the systems are running windows, you can check your ip settings from the command line: Start Menu > Run > cmd, and type ipconfig /all, which will list your local IPs. On Linux/Unix, you can type ifconfig in a terminal. "localhost" will not work - it always refers to the current machine, and does not perform any transactions over the network. Nimur (talk) 17:04, 25 July 2009 (UTC)
- What kind of "access" do you require? Can't you just point your browser to the address you get from your showip.net or whatever? --Spoon! (talk) 18:09, 25 July 2009 (UTC)
- No because I get the same ip address from showip.net for both computers. I've tried all these suggestions. Is there not a simple program I could install on both computers that would talk to each other and make the link for me?
- I tried entering "localhost" into the browser on the computer without the server but it didn't work. The other computer with the server has the same ip address as this one, I checked on http://showip.net Reg556 (talk) 16:46, 25 July 2009 (UTC)
- I think your problem is still that you have not found the local ip address. Any "what-is-my-ip" website will be totally unable to find this for you. You need to check the machines or the router to see how the NAT is mapping individual computers to local IP addresses - note that this is not the same IP you see on the IP look-up website. That is the external IP address, assigned to your cable-modem or DSL modem. The NAT maps that back to different, unique local IP addresses for each computer on your network. You must use this local IP address to connect; or you can set up port-forwarding on the router to do the mapping. I described a method above for finding the local IP - do you need more help with that? Nimur (talk) 22:19, 25 July 2009 (UTC)
- I think I do need more help, I tried entering ipconfig /all and it returned a list of ip address for things like gateway and stuff. I tried entering each ip address into the browser but none of them connected to the server on the other computer Reg556 (talk) 05:22, 26 July 2009 (UTC)
- We have an article on ipconfig. Take a look at this screenshot. You want to find your IP address (located directly above the Subnet). (There is a lot of other information you do not need). The IP listed here is the local IP address of the machine. While on the local network, this is the best way to access the machine. Find the IP address of the server; try connecting to that address using the browser on the other (client) machine. If it is still not working, verify that the server is actually on (both the server hardware and the server software). Also check if there is a software firewall on the server, which might be blocking access. Check if you can access the server while you are sitting at the server's terminal. Sometimes a network ping is the best way to check connectivity; that lets you isolate networking trouble from server-software trouble. Note that software firewalls can also interfere with Ping. Nimur (talk) 16:31, 26 July 2009 (UTC)
- I think I do need more help, I tried entering ipconfig /all and it returned a list of ip address for things like gateway and stuff. I tried entering each ip address into the browser but none of them connected to the server on the other computer Reg556 (talk) 05:22, 26 July 2009 (UTC)
- I think your problem is still that you have not found the local ip address. Any "what-is-my-ip" website will be totally unable to find this for you. You need to check the machines or the router to see how the NAT is mapping individual computers to local IP addresses - note that this is not the same IP you see on the IP look-up website. That is the external IP address, assigned to your cable-modem or DSL modem. The NAT maps that back to different, unique local IP addresses for each computer on your network. You must use this local IP address to connect; or you can set up port-forwarding on the router to do the mapping. I described a method above for finding the local IP - do you need more help with that? Nimur (talk) 22:19, 25 July 2009 (UTC)
What is this system called?
[10] Under "Customize results". In Firefox 3, you can adjust the properties of the address bar in an about:config setting. It is only one value but that one value can be used to make many different combinations of properties. The system (the blog author calls it a bitmap, but I can't find any other references to it) uses numbers which are powers of 2 to represent the options. Once you choose which options you want, you add up the values to get your combination. 24.6.46.177 (talk) 16:42, 25 July 2009 (UTC)
- Or, even better, you "or" them together (so that noting bad happens if you "add" an option already "on"). This technique is very common in programming. But I do not know of any name for it... --Andreas Rejbrand (talk) 17:01, 25 July 2009 (UTC)
- Yeah, it's either called a bitmap or a bit field. It's an extremely common pattern in systems programming and computer-hardware, where one bit (or several adjacent bits) represents a single value, and so a given byte or word compactly stores a bunch of values. -- Finlay McWalter Talk 17:03, 25 July 2009 (UTC)
- Yes also see Flag word - "word" here means a collection of bits (0 or 1), and flag - see Flag (computing) - presumably from the ability of a flag (realworld) to be either up or down. (Potentially "flag word" and "bit field" should be merged - if anyone want to tag them?)83.100.250.79 (talk) 17:22, 25 July 2009 (UTC)
- Yes, flag word is better, although it seems to talk only about cases where each logical unit is a single bit. It's common to find cases like:
bit0 - output enable/disable bit1-3 - output gain (0..7) bit4 - output buffer interrupt enable bit5-6 - output buffer interrupt threshold (0..3) bit7 - reserved
- ... and we don't really have an article that matches this (very common) pattern. I don't think bitfield and flag word should me merged. Flag word is the hardware thing, bitfield a software construct. While you'd often use a bitfield to address a flag word, you could also do it just with masks and shifts, and equally a bitfield can be used as a purely software construct (as in the case the OP is talking about). -- Finlay McWalter Talk 17:39, 25 July 2009 (UTC)
- I can't find the article either, I've added each to the 'see also' section of the other and left it at that.83.100.250.79 (talk) 18:39, 25 July 2009 (UTC)
- While we're naming alternative terminology, these are sometimes called bit vectors or registers, especially in hardware description languages like verilog and VHDL that support nonuniform word lengths. Nimur (talk) 03:22, 26 July 2009 (UTC)
- I can't find the article either, I've added each to the 'see also' section of the other and left it at that.83.100.250.79 (talk) 18:39, 25 July 2009 (UTC)
- ... and we don't really have an article that matches this (very common) pattern. I don't think bitfield and flag word should me merged. Flag word is the hardware thing, bitfield a software construct. While you'd often use a bitfield to address a flag word, you could also do it just with masks and shifts, and equally a bitfield can be used as a purely software construct (as in the case the OP is talking about). -- Finlay McWalter Talk 17:39, 25 July 2009 (UTC)
Subscriptions to a blog
Is there a way to set up a Blogger blog so that people can just click a link to be notified of new posts to the blog via email? I see that a reader/subscriber can do this if they use Google Reader but that may not be what everyone uses for their email. And it means that everyone has to go through the trouble of signing up with a special service just to find out about updates to the blog when they could just visit the blog and find out. Alternatively, is there a blogging service that does allow users to subscribe in a way like what I want? Dismas|(talk) 17:43, 25 July 2009 (UTC)
- It's hard to imagine a practical implementation of that that wouldn't require a bunch of steps from the user, which would amount to a signup. First they have to type in their email address, then probably fill out a CAPTCHA (to avoid the system from being used to mailbomb people), and then reply to a confirmatory email (again to avoid the system from being abused to sign up unwitting third parties to huge lists of unwanted chatter). That's pretty much the same sign-up process for a regular RSS aggregator like Bloglines or Google Reader, so they might as well just use one of those and get all the associated flexibility. Now you could do this as a client side feature (with an RSS reader program or a firefox plugin), but that's obviously not a zero-install-zero-setup option either. -- Finlay McWalter Talk 18:02, 25 July 2009 (UTC)
- Okay, so submitting, going through CAPTCHA, and confirming is fine. If the instructions included going through a signup or download of an aggregator, then I see that as too much complication that people may not be willing to go through for a single blog. Dismas|(talk) 20:09, 25 July 2009 (UTC)
- Doesn't Google Reader allow you to configure an RSS aggregator to send email updates? This only requires that the blog supplies RSS, and that you are willing to use Google's service. Nimur (talk) 03:29, 26 July 2009 (UTC)
converting raw fils
So I've got a dslr and am shooting in RAW (good), and am taking pictures of steam engines. I'm having a problem with the exposure - or rather converting the RAW file to jpeg. The problem is that the subject is pretty dark, but the sky is full of nice fluffy clouds. By moving the exposure slider up and down I can either get picture of black engine with completely washed out sky, or a nice picture of the clouds but an underexposed subject. I can try hdr, but that seems to produce dramatic images rather than realistic looking images. Ideally I want to open the raw file, select different areas of the and apply different exposure values to those areas only but ensure that the joins between areas are smooth. I only have ZoomBrowser EX and Digital Photo Professional. But do I need Photoshop Elements to do this? —Preceding unsigned comment added by 86.144.124.80 (talk) 19:51, 25 July 2009 (UTC)
- The HDR images you see online are mostly gaudy examples where they've taken things to an extreme - it is possible to use the technique with a degree if subtlety (e.g. some of the photos in this set - http://www.flickr.com/photos/phototoasty/sets/72157594225970774/) and it seems almost everyone oversaturates their HDR photos (all the better to emphasise their bad trip appearance). Anyway, if you want to be editing the files yourself, you'll find that The Gimp and dcraw will read the various RAW formats for many popular cameras (RAW isn't a format per se, just whatever data comes out of a particular camera's sensor, so you need software that knows about your camera). More stuff is listed at raw image format#Software support; with those you should be able to convert your camera's RAW (assuming it's supported) into TIFF or PNG and you can edit that in whatever you're comfortable with. -- Finlay McWalter Talk 20:50, 25 July 2009 (UTC)
- Another good software to do this is hugin (software). Export your RAW file to different exposures (eg. +1, 0, -1), and follow this tutorial (ignore the stitching part, you don't need it). It creates some quite subtle HDR images but tends to require some contrast enhancement. --antilivedT | C | G 00:21, 26 July 2009 (UTC)
Can GIMP open RAW files? GIMP is a free, free alternative to Photoshop. Nimur (talk) 03:33, 26 July 2009 (UTC)
- The OP needs a program which can process the colour depth present in the RAW files, which is more than 8 bits per channel. The GIMP is limited to 8 bits per colour channel, whereas Photoshop can process 16 bits per channel. I don't think the SE version of Phohotoshop does 16-bit per channel color, though. An option would be to convert the RAW files to high-color-depth TIFF files with dcraw, and read these with Photoshop. There is a GIMP fork called CinePaint which can handle high colour depths, but it's only available for Linux and Mac, not for Windows. I've tried it on a Debian machine (at SteveBaker's recommendation), but found it rather unstable, and it was later removed from the repositories because of its bugginess. The dcraw page has a link that might be of interest, I followed it, ended up here, and read about the programs Zero Noise and Perfect Raw. I haven't tried them, but intend to when I get the time. Unfortunately, some of the info appears to be in Spanish only. --NorwegianBlue talk 07:55, 26 July 2009 (UTC)
- This article http://www.wikihow.com/Take-High-Dynamic-Range-Photographs and this http://qtpfsgui.sourceforge.net/about.php program may also be of interest. --NorwegianBlue talk 21:43, 26 July 2009 (UTC)
Broken link
http://en.wikipedia.org/wiki/Sonoran_Desert - this page was accessible up until about a week ago. Now it just generates page load errors. —Preceding unsigned comment added by Clhowson (talk • contribs) 20:14, 25 July 2009 (UTC)
- Works for me. Try clearing your browser cache. -- Finlay McWalter Talk 20:52, 25 July 2009 (UTC)
Core 2 Quade 9400 and Vista 64 SP 1
Recently, I have upgraded my hardware. My new processor Core 2 Quad 9400 requires Vista 64 bit SP1. I found this info from its official. Right now I'm using XP SP 2. Should I install Vista 64 bit SP1 for better CPU Performance or stick with current XP SP 2. I have not used Vista before. My motherboard is 750i SLI Nvidia Geforce and Graphics card is Sapphire ATI 4890. Any suggestion? —Preceding unsigned comment added by 119.30.36.44 (talk) 21:05, 25 July 2009 (UTC)
- Surely it doesn't require vista; IA64 will run 32bit OSes perfectly fine. For an ordinary user, the most obvious advantage of switching to a 64 bit OS is that it allows you to address more than 4GB of RAM; while some operations are certainly faster, some others are (in practice) slower, as the wide IA64 instructions are larger, making for poorer use of cpu cache. Assuming everything is working for you now, and there's nothing that you need Vista for, personally I'd stick with XP until Windows 7 comes out (it seems to have all of Vista's improvements and few if any of its demerits). -- Finlay McWalter Talk 21:24, 25 July 2009 (UTC)
- If you have something that requires Vista, get something else. HalfShadow 21:28, 25 July 2009 (UTC)
- To the best of my knowledge, Intel Core 2 CPUs implement x86-64 rather than IA-64. -- Meni Rosenfeld (talk) 21:04, 26 July 2009 (UTC)
- Your CPU does not require Vista. You can run XP, Windows 2000, or Windows 1.0 if you feel like it. Tempshill (talk) 05:38, 26 July 2009 (UTC)
- It's possible that the Core 2 Quad 9400 "requires Vista 64-bit SP1" in the sense that it will not work properly in the original 64-bit Vista because of some compatibility bug that was fixed in the service pack (SP1). In principle you might have hardware (not the CPU) that only has drivers for Vista 64-bit, but almost certainly you will be able to find 32-bit XP drivers for everything. -- BenRG (talk) 13:16, 26 July 2009 (UTC)
any way to delete iPod content from WITHIN iPhone?
So my iPhone is full but I wanna download some apps. Is there any way I can DELETE some of my music from WITHIN iPhone (ie without connecting it to anything).
Thanks!!!
ps. the reason i'm asking is that i just have an old computer with usb 1, all this content is from someone else's computer but I don't want to lose it. thanks. 82.234.207.120 (talk) 21:22, 25 July 2009 (UTC)
- Don't think so. The whole point of having to connect to a computer is so nothing gets deleted accidentally. HalfShadow 21:24, 25 July 2009 (UTC)
- Can you do it if you have a shell on the iPhone?F (talk) 09:35, 26 July 2009 (UTC)
Fixed /dev/ path for external USB drive
I'm using Kubuntu. Each time I plug in my external USB drive, it gets a new path in /dev (e.g. /dev/sda1 one time and /dev/sdb1 the next). How do I set it to always have the same path? NeonMerlin 21:34, 25 July 2009 (UTC)
- You can hack something in udev, but the easy way is not to refer to it by its /dev/sdXN name, but by its UUID, which is fixed. Try this - with the USB disk absent, ls -l /dev/disk/by-uuid > /tmp/foo. Then insert the disk, wait until it's recognised, then type ls -l /dev/disk/by-uuid | diff /tmp/foo - . This will show you the UUID of the disk and its dev-uuid. So now, rather than refer to it as /dev/sdc1, refer to it as /dev/disk/by-uuid/ABCD-1234 or whatever. You can also statically mount devices with mount or /etc/fstab by UUID (search their respective man pages for UUID for the syntax). I mount all my local hard disk partitions this way - this way I can rearrange the SATA cables or whatever and the disks all still mount correctly in the places I want. -- Finlay McWalter Talk 22:37, 25 July 2009 (UTC)
- Hey, I didn't know you could mount drives like that. Thank you, that's a great tip. APL (talk) 17:56, 26 July 2009 (UTC)
July 26
latest version of IE
Why does the lastest version of IE not support Unicode in the bottom at the status bar and in the address bar too? Firefox can display proper characters instead of escape codes! Is it because the folks at Microsoft just can't be bothered? I mean, how much effort could it possibly take to do that???
Duomillia (talk) 01:00, 26 July 2009 (UTC)
- No, you screwed something up on your system, not Microsoft. Unicode characters display great in my browser. For example, when I type this into the address bar, it loads fine: http://ουτοπία.δπθ.gr. But why are you asking us, anyway? Start a thread in a Microsoft Technet or Connect forum, if you're so sure that it's a bug. They're actually pretty good with fixing bugs if you make any kind of effort to contact them. By the way: In my experience, most people don't even know the status bar is there. The latest version of Internet Explorer is actually over-engineered in my opinion -- not the opposite.--WinRAR anodeeven (talk) 02:59, 26 July 2009 (UTC)
- This is a deliberate feature intended to prevent phishing attacks. See IDN homograph attack. Internationalized domain names were not designed very well. Firefox also displayed decoded names in the address and status bars for a while. According to the article they now use a top-level domain whitelist. There's an IE option "always show encoded addresses", but I recommend you leave it off unless you use IDNs a lot. -- BenRG (talk) 11:03, 26 July 2009 (UTC)
J2EE programing
please suggest me a wonderful book or a good tutorial or website or anything which can teach me J2EE programming and HTML thoroughly...assuming that I have a basic knowledge of C,C++,JAVA.I am in great need to learn it.pl help —Preceding unsigned comment added by 117.193.128.204 (talk) 04:26, 26 July 2009 (UTC)
- Java EE, like the rest of the Java technology platform, has no better resources than the Official Sun Java EE technology guide, including source code, example projects, tutorials, and all the software and tools you need to make a project. Download GlassFish and run the PetStore example application. You can find tutorials here: Java Pet Store. You can download all the tools here (check for your operating system and language version). Nimur (talk) 05:26, 26 July 2009 (UTC)
- Regarding HTML, I use the W3 official specification as my preferred reference. If I were just starting out, I would try reading the HTML article on Wikipedia, which is a little more user-friendly. In general, HTML is best learned by viewing examples; once you have the basic tags, simply start viewing source for web pages you are browsing to take a peek under their hood. A lot of modern web pages use very complicated HTML combined with scripting and embedded plugins, so they can be intimidating source to read; but it's a good idea to get a feel for how the pages are put together. Nimur (talk) 05:32, 26 July 2009 (UTC)
Annoying Freeze
Every now and then I get sudden freezes. The computer completely locks-up. I cant move the mouse or use keyboard everything is frozen, you know what I mean. ALL i can do is restart pc. Another problem is desktop icons, start menu, images (also in internet image) gets broken into pieces and I can't see image properly. It looks like image gets scratched.
First I thought this was a cpu problem, then motherboard, then graphics card, then ram, hard drive etc. I just cant figure it out. It happens when I am on minefield, IE (latest version) firefox 3.5, when I am logging in at facebook. Even this problem persist after closing browser ! This was an issue before as well I don't know what is causing this freezes. If I play any music when I'm on browser the sound also gets crashed (screaming like carrrrr...). These are happening after upgrading my hardware. I am using XP SP 2. My processor is Core 2 Quad 9400 (which requires Vista 64 bit SP 1 though) and motherboard 750i SLI Nvidia Geforce, RAM 2 GB (800MHz), Sapphire ATI 4890 1 GB, Full tower Chassis (Tharmaltake Xaser VI). I have several XP SP 2 OS. The Current XP SP2 that I'm using, bought it 4 years ago.
How can I rectify this problem?--119.30.36.47 (talk) 14:36, 26 July 2009 (UTC)
- The problem sounds like a hardware crash due to overheating. I would perform any available BIOS and/or graphics driver updates, then use a hardware monitoring tool like HWMonitor (there are various free ones) to track down the problem. Rjwilmsi 17:28, 26 July 2009 (UTC)
- But Sometimes I can move mouse for a while then it suddenly stopped again. You said"I would perform any available BIOS and/or graphics driver updates. My BIOS and graphics card are already updated (Correct me if I am mistaken). I have used HWMonitor. It shows only temperature after the crash. GPU Core is 61 *C to 63 *C. My full tower chassis has 5 collar fan (including two 140mm turbo fan) inside to provide sufficient airflow. What else I can do?--119.30.36.33 (talk) 18:17, 26 July 2009 (UTC)
- 63C is too hot. Try this - open your case and blow an ordinary room fan into the case to cool it down further. Your GPU should get below 50C... see if that helps. Either your case airflow is not optimal or helping the GPU, or there's something faulty with your graphics card. Sometimes these weird freezing/rebooting problems are due to the power supply which is faulty or dusty and your CPU is not receiving clean power from it. My last two PC problems were: playing video rebooting PC (replaced GPU) and random rebooting doing anything (replaced and upgraded power supply). Good luck. Sandman30s (talk) 09:55, 27 July 2009 (UTC)
- I forgot to mention that this freezing problem occurs only when I run my system for 8 to 12 hours or sometimes 5 hours.You said, "blow an ordinary room fan into the case to cool it down further". Are you suggesting me to add another GPU Cooling fan in additional slot (sorry for my English)? The chassis contains some extra slot for fans. One more thing is that my motherboard contains two GPU Slots. The First slot (where graphics card is attached) is located a bit above to turbo VGA cooling fan and does not get proper air. Second slot is closely located to the cooling fan and gets much air flow. I am thinking to remove Graphics card from first slot and attach it to second slot. I notified the hardware technicians (where I assembled my systems) about my intention but warned me not to do that as the second slot is for another graphics card and if the first slot does not work. They also suggested me to disable system restore point and schedule scanning of internet security to prevent this freezing state. Should I proceed to second slot? Suggestions ? --119.30.36.39 (talk) 13:32, 27 July 2009 (UTC)
Update: I have checked the BIOS. It shows CPU temperature is 30 to 31 *C and System temperature is 40 to 41*C.--119.30.36.42 (talk) 15:01, 27 July 2009 (UTC)
- No, I mean: open the case. Take an ordinary electric powered fan that plugs into the wall socket. Plug it in. Turn it on. Face it towards your open case and your computer will get the benefit of cool air blowing directly onto the GPU's and everything else. This is a TEST. If it works, it means you have a heating problem and then you either need to swap your card/s or get better cooling in your case. Sandman30s (talk) 15:41, 27 July 2009 (UTC)
Windows 7 Torrent
I've been having a discussion with some friends and they don't believe that Windows 7 is already up on torrent sites (a full version) and I'm sure it must be. Though at the moment we're unable to access those sites ourselves. I was curious if someone could confirm whether it appears that full versions of Windows 7 are available to torrent. Of course, I wouldn't ask someone to link to them, just a confirmation that they themselves have seen it (and if you have used it, if it was for real). Thanks! 71.75.71.102 (talk) 14:47, 26 July 2009 (UTC)
- Since even before the beta of Windows 7 became publicly available there have been versions of Windows 7 leaked to torrent sites. However, some of these leaked versions are known to have been tampered with or to contain malware and I would not recommend anyone try to download and use any of the leaked versions. Consider trying out the Release Candidate instead (Which expires June 1, 2010, with bi-hourly shutdowns beginning on March 1, 2010) or waiting for the final version of Windows 7 which you can pre-order now.--Xp54321 (Hello! • Contribs) 17:05, 26 July 2009 (UTC)
Is this the end of my Nintendo DS?
As the title suggests, I'm worried that my DS going to become unplayable and I need some links or advice if the thing is on it's last legs or not. My problem is that when turning the DS on, it will be okay for a bit, then have some odd display problems (I can see something that looks like a brownish circuit board through the screens) I took out both of the games I was playing to see if they were the problem, but they weren't, the problem persisted even with both slots empty. If I plug in the headphones, the top display stops being wonky, but the bottom screen remains odd.
Another thing about the DS is that it got fried once by getting drenched by an exploding pop bottle, but when it dried out it worked just fine for a few months. Suddenly the speakers stopped working. I didn't really care, it worked fine with headphones plugged in so I left it and enjoyed it for no problems . Two days ago, the speakers suddenly began working again. And now today I'm getting these display problems. I'm not sure if the display and speaker problems could be linked, but it might explain why the display is okay on the top screen with the headphones plugged in.
So really, all I want to know is if my DS is doomed to die and I need to start looking for a new one. The display doesn't bug me that much, so if it'll be okay how it is and not die, I won't bother replacing it. Also, I can't really send it in for repairs because I have a feeling the pop explosion a year ago is what caused it. Also this DS is an original one (Not a Lite nor a DSi) and is about 4-5 years old now, it's warranty is probably gone by now. Thank you for your time. 69.157.106.254 (talk) 14:54, 26 July 2009 (UTC)
- It is very likely that the circuits are corroding, and will die a slow death. Sorry. You could try cleaning its innards with distilled water or alcohol. (Do not use tap water.) That may help, but it would have helped more back when the accident first occured.
- It's also possible that there is still soda on the board and it's causing intermittent short circuits. Again, that might be helped by cleaning it.
- There is no way to know for sure, but either way I suspect that if you don't take it apart and clean it (No tap water!) it will slowly get worse. APL (talk) 17:54, 26 July 2009 (UTC)
- Oh well. I wished I'd known about cleaning it when the whole thing happened a year ago. Thanks for your help. I'll give cleaning it a shot and start looking around for discounts for when the poor thing kicks the bucket. I'm just glad it managed this long, now with the DSi out, getting a DS will be cheaper. Thanks again! 69.157.106.254 (talk) 18:10, 26 July 2009 (UTC)
Resources for a beginning teenage programmer
I'd like to get my Nephew into development, probably with an ultimate goal of working in a MS or web environment (.NET I suppose?). He's a beginner so I guess the question is what's a good starting point or general introduction. Are there any interactive tools you can buy that can take you through lessons/labs? I don't know much about development but I'd be interested in something that's more focused on doing rather than reading...he's 14 so I'm nor sure how much time he'd spend sitting around just reading. Thought? Thanks...RxS (talk) 15:09, 26 July 2009 (UTC)
- I'm 21, and I learned in Visual Basic around 14, but that's on the decline now. I'd recommend something like Java, and this is a tutorial I particularly enjoyed because it's more interactive. [11]. Hope that's useful. 71.75.71.102 (talk) 15:29, 26 July 2009 (UTC)
- I'd suggest one of the Game engines, such as Game Maker. I've used them with teenagers before, and they have the advantage of being interesting to program in quickly. While the language isn't much use itself, the principles are. Alice is a good beginner's language as well, with quick rewards, but I'm not sure if it has a clear path for where to go once you get the hang of it. It does have nice tutorials, though. For serious languages, I'd go straight to C# or Java. I'd add that the main aim is to keep it interesting from early on, and part of that is making the projects interesting. - Bilby (talk) 15:44, 26 July 2009 (UTC)
- That's what I'm mainly interested in, fairly quick engagement/visible results that provide a good foundation and path to more advanced concepts in current technology. Thanks! RxS (talk) 15:54, 26 July 2009 (UTC)
- I'd suggest one of the Game engines, such as Game Maker. I've used them with teenagers before, and they have the advantage of being interesting to program in quickly. While the language isn't much use itself, the principles are. Alice is a good beginner's language as well, with quick rewards, but I'm not sure if it has a clear path for where to go once you get the hang of it. It does have nice tutorials, though. For serious languages, I'd go straight to C# or Java. I'd add that the main aim is to keep it interesting from early on, and part of that is making the projects interesting. - Bilby (talk) 15:44, 26 July 2009 (UTC)
- It sounds like Java is a good starting point, are there any other resources available? The one linked above seems to give Vista/IE 7 fits. Thanks again...RxS (talk) 17:05, 26 July 2009 (UTC)
- http://math.hws.edu/javanotes/c3/index.html this link causing problems - I'm on IE7 and it seems to work perfectly.? Seems such an innocuous site.
- Resources for learning java? - sun has one - tutorials, plus lots of documentation - just search for "sun java", and you should find it. I believe they have a 'young programmers' section or program as well. Here's a start page http://java.sun.com/new2java/learning/young_developers.jsp Possibly the first few sections are aimed at younger children.83.100.250.79 (talk) 22:10, 26 July 2009 (UTC)
- If they have no programming experience before I would probably recommend something else - probably python (programming language) (since everyone else does) - it's pretty much the equivalent of what BASIC was 20 years ago - it's easier to get into for a first language (yet it's still a proper language - with real world uses). Though it might be just as good to start in a slightly harder language straight away - I certainly found it hard going from 'beginners or educational' languages to 'proper languages' - the easy ones can cause laziness.83.100.250.79 (talk) 21:25, 26 July 2009 (UTC)
- Most Universities (in US/Canada) seem to start off with Java, as did my high school; it really wasn't too bad as a starting language. As far as visible results go, Robocode is pretty fun. -- Consumed Crustacean (talk) 01:16, 27 July 2009 (UTC)
- I'd like to recommend Robocode as well - it's a good system for learning some prinicples fast. I recommend it to the first years as something for them to practice with. Just keep in mind that Java itself requires a fair bit of theory before you can code anything of value. The language is very nice, but unless you use something like NetBeans the GUI can be complex to learn, and the OO side of things is tricky. Which, of course, is part of why we teach it. :) I normally recommend BlueJ as a first IDE, but that's mostly because of its educational value, so it might not be useful at home. - Bilby (talk) 01:29, 27 July 2009 (UTC)
- Most Universities (in US/Canada) seem to start off with Java, as did my high school; it really wasn't too bad as a starting language. As far as visible results go, Robocode is pretty fun. -- Consumed Crustacean (talk) 01:16, 27 July 2009 (UTC)
- It sounds like Java is a good starting point, are there any other resources available? The one linked above seems to give Vista/IE 7 fits. Thanks again...RxS (talk) 17:05, 26 July 2009 (UTC)
Parallel Port Programming
I would like to know what a parallel port programming is and how to use it in programming of microcontrollers.i.e.in robotics.Pl suggest some good ebook or website where I can get all the info on this. —Preceding unsigned comment added by Gd iitm (talk • contribs) 16:43, 26 July 2009 (UTC)
- Perhaps this web site can help. 91.32.118.182 (talk) 18:13, 26 July 2009 (UTC)
- See the article Parallel port. But note that manufacturers have stopped providing parallel ports on their PCs. Cuddlyable3 (talk) 21:14, 27 July 2009 (UTC)
Equivalents of pointers and/or dereferencing in scheme ?
I'm doing things like this:
> (define a 10) :ok > a :10 > (define b '(1 a 2)) :ok > b :(1 a 2) > (cadr b) :a
Basically I can't work how to make the "a" in (1 a 2) act as a variable, and by extension how to control whether it's evaluated, or left as "a" e.g. Are there commands to do stuff like this in scheme? e.g.:
> (define a 10) > (pointer a) ie the command I'm looking for :a > (dereference (cadr '(1 a 2))) the other command I'm looking for :10
?I must be conceptualising the whole language wrong I suspect?83.100.250.79 (talk) 19:31, 26 July 2009 (UTC)
- I think what you're looking for is quasiquote and unquote:
1:=> (define a 10) a 1:=> (define b `(1 ,a 2)) ; equivalent to (define b (quasiquote (1 (unquote a) 2))) b 1:=> b (1 10 2) 1:=> (cadr b) 10
- 24.76.174.152 (talk) 20:10, 26 July 2009 (UTC)
- Nearly (or possibly) - however if I do
> (define a 99) > (define b `a) > b a
- Which is better than before (ie not 99)
- But how do I get
> (func b) 99 and not a
- That step eludes me (I was trying force and delay before as well - with not total success).83.100.250.79 (talk) 20:52, 26 July 2009 (UTC)
- If you write (quote a) then you get a quoted symbol a, which has nothing to do with any variable named a in the environment—it's like the string "a" in other languages. (Modern Scheme also has strings, but earlier versions just had symbols doing double duty.) If you write (quasiquote a) then you get the same thing because quasiquote quotes everything that isn't wrapped in unquote. You could write (quasiquote (unquote a)), but that's the same as just a.
- If you want to update a and have b reflect those changes "on the fly" then that can't be done directly—there's no way to make a data structure incorporate the current contents of a variable by reference. Variables (like a and b) point to objects (like numbers and pairs), and some objects (like pairs) can point to other objects, but objects can't point to variables. This is similar to Java, where you can only have references to heap objects, but different from C++, where you can also have pointers to variables and object fields. But you could write a function that makes the appropriate change to both a and the corresponding part of b explicitly:
(define (change-a! new-value) (set! a new-value) (set-car! (cdr b) new-value))
- -- BenRG (talk) 20:59, 26 July 2009 (UTC)
- Thanks, Yes it's exactly the type of thing you describe in the second paragraph that I'm trying to do (though I read that set-car! is to be 'banished' in v.6 scheme)
- Maybe I'm using the wrong tool - I'm looking for a language with strong support for nested lists (ie like lisp or scheme), but with pointers to objects as well (the easy way) - does such a thing exist?83.100.250.79 (talk) 21:10, 26 July 2009 (UTC)
- But every value in Scheme is already a pointer. (It's like Python.) That's why you can do stuff like this
- -- BenRG (talk) 20:59, 26 July 2009 (UTC)
(define a (car 1 2)) (define b a) (set-car! a 3) (car b) ; evaluates to 3
- --Spoon! (talk) 07:15, 27 July 2009 (UTC)
- As Spoon said, if a refers to a pair and you incorporate a into b, then change the members of the pair, that change will show up in b. But you can't do that with numbers like 10 (they are immutable) and you can't replace the whole pair "in place" with a number or vice versa—you have to do two assignments to the two pointers that reference the pair in that case. People often solve this kind of indirection problem with extra levels of indirection. A common trick in Scheme is to create a pair with a dummy symbol in the car (like '*my-mutable-thing*) and the payload in the cdr. That does require extra indirection when reading, though. Even in C++ you can't indirect via a variable without an extra * when reading.
- ML is a Scheme-like language (it shares the emphasis on lists and recursion) that handles mutation in a cleaner way than most other languages. It avoids all these funny rules about variables versus objects versus parts of objects, but it may not be more convenient in practice if you already understand those rules. You could also look at dataflow programming. In dataflow languages, when a changes, not only does b automatically change but also any other computation whose value depended on a. For example if you had written (define c (+ a 10)) then incrementing a would also increment c. The DrScheme system includes a dataflow extension called FrTime. But hardly anybody uses dataflow languages, so if you need the support and future-proofing that you would get from a mainstream language then you probably can't use dataflow. If you give details on what you're trying to do we could probably give better suggestions. -- BenRG (talk) 09:06, 27 July 2009 (UTC)
- (edit) I'm going to have a look a FrTime, and see what it does83.100.250.79 (talk) 12:03, 27 July 2009 (UTC)
- (edit) It sounds like FrTime does too much - it sounds like it re-evaluates the whole data structure when a field changes - I just want it to evaluate what is necessary for an imperative instruction.83.100.250.79 (talk) 12:08, 27 July 2009 (UTC)
- (edit) I'm going to have a look a FrTime, and see what it does83.100.250.79 (talk) 12:03, 27 July 2009 (UTC)
- Thanks, your description of dataflow programming sounds like what I was thinking about.
- Basically I was just exploring the features of programming languages without any particular application in mind.
- Specifically if a is a variable I would have been incorporating it into many different lists - so the scheme method listed above by BenRG wouldn't really be suitable. - I wouldn't be able to (or expect to) keep track of all the instances of a. So the equivalent of a pointer data type would have been the way to go - However I only needed the data to update on imperative resolution eg not sure if this is the same as 'dataflow'.
- I was also hoping to mix functions and data in a list in a similar fashion - but noticed that if a function returns differently sized or structured lists then this could really mess up the whole thing - requiring functions to be run (with the wrong state information) just to attempt to get the size of the list. eg if a=(0 fn(x) a ) and fn(x) can return 0 or 1 or (0 1 2) or even +{0 1 2}+ ie inserted flat into the list, not nested then I can't find/think of a solution for that as yet. I could probably implement the list with pointers myself though.83.100.250.79 (talk) 11:21, 27 July 2009 (UTC)
- --Spoon! (talk) 07:15, 27 July 2009 (UTC)
- I was just reading what Spoon! said - it looks like I didn't understand the data structure - I was expecting everything to be a pointer (as they say)- the language has to be intrinsically 'pointy' for those lists.
- What I don't get is why Spoon!s example works, but when I just do (define a 10) , (define b a) , (define a 20) ; b gives 10 ie it immediately dereferences b and a, but when using a pair it does something different. Is there an exaplanation for this apart from 'that's the way it was designed' (Isn't 10 a list too, with the second field null?) 83.100.250.79 (talk) 11:31, 27 July 2009 (UTC)
- 10 is not a list. In C++ terms, all variables have type Object*, numbers look like
struct Number : Object { const int value; // or double or complex or ... full numeric tower };
- pairs look like
struct Pair : Object { Object* car; Object* cdr; };
- and the empty list is like the null pointer. So when you write (define a 1) (define b a) (set! a 2) it's like
Object* a = ONE; // where ONE is a global that points to a Number with value 1 Object* b = a; a = TWO;
- which doesn't change b. But when you write (define a '(1 2)) (define b a) (set-car! (cdr a) 3) it's like
Object* a = new Pair(ONE, new Pair(TWO, NULL)); Object* b = a; a->cdr->car = THREE;
- which leaves b->cdr->car also equal to 3. (Note that you shouldn't use define to change the value of an already-defined variable, though it's supported. You should use set! for that.) If I understand you correctly, the problem you're having would also exist in C++. If a is a pointer and you incorporate that pointer into a bunch of data structures, changing a won't change the data structures—you would have to track them all down and update them individually. -- BenRG (talk) 15:53, 27 July 2009 (UTC)
- (First Note: you shouldn't use define on a variable twice in the same scope. Use set! to assign to a defined variable.) set! only changes where a pointer is pointing to. It does not affect the thing that is pointed to. So when you do
(set! a 20)
, it just redirects the pointer to point to another number object. Whether you can modify an object pointed depends on the type of object. There is no mechanism to modify a number object (i.e. they say it is immutable). However, there is a way to modify pair objects, with set-car! and set-cdr!. That's why you can modify a pair object and be able to see the changes through another pointer that points to the same pair object. --Spoon! (talk) 19:49, 27 July 2009 (UTC)
- (First Note: you shouldn't use define on a variable twice in the same scope. Use set! to assign to a defined variable.) set! only changes where a pointer is pointing to. It does not affect the thing that is pointed to. So when you do
Thanks for your responses - I've found something that almost does what I want :
(define a 200) (define b (lambda() a)) (b) result 200 (define a 300) (b) result 300
this always evaluates to the current value of a, which is good, but I have to bracket b to get the number, if anyone can suggest a better way, please, as I'm still working out if I can utilise this method easily.83.100.250.79 (talk) 15:15, 27 July 2009 (UTC)
- I was going to suggest that, but I'm not sure it's really what you want. -- BenRG (talk) 15:53, 27 July 2009 (UTC)
- You shouldn't define something twice. Use
(set! a 300)
. --Spoon! (talk) 19:44, 27 July 2009 (UTC)
Another mystyfying thing about scheme
As mentioned above I was trying things like (define a 10) , (define b a) , and (cadr (1 a 3)) - now in the first two examples it treats a as a variable, whereas in the third it seems to just think a is "a" ie text. How does it decide? And does ML (mentioned above) or another language (in the family) support a more explicit of distinguishing variables and text?
I know this is very similar to sticking beans up my nose as a hobby , but if anyone end my curiousity I would thank them. :) 83.100.250.79 (talk) 11:47, 27 July 2009 (UTC)
- (cadr (1 a 3)) is an error—it attempts to call the number 1 as a function. You mean (cadr '(1 a 3)). That gives you a quoted a because quote (') quotes everything underneath it in the expression tree. define is a so-called special form (as is quote). It's magical and can't be implemented as a Scheme function. You should read a Scheme tutorial, which will explain all of these things better.
- In ML everything is read-only except for refs. A ref lives on the heap and holds a value that you can get or set. Instead of a mutable variable you use a constant variable that refers to a ref on the heap. This means that every mention of a variable is a mention of its value, not a reference to its location, so you don't need a special form like set!. If you incorporate the variable's value into a data structure then the data structure refers to the same ref and setting it will affect the data structure too. You could get the same effect in Scheme by defining
(define (make-ref val) (cons '*ref* val)) (define ref-get cdr) (define ref-set! set-cdr!)
- and then never using any mutation functions other than ref-set!. -- BenRG (talk) 15:53, 27 July 2009 (UTC)
- Thanks, (yes I missed the ' ) - I think my exectations may have been wrong - I read that scheme/lisp stores program/data in the same form and that a program was a list too - from this I inferred (wrongly) that lists created by the program could contain executable programs as well ('out of the box' so to speak).
- I have been reading scheme tutorials (possibly not very good ones - they didn't explain that '(+ 1 2) destroys all type formatting and renders function names as text)- I suppose the reason they didn't have the answer was that what I was looking for didn't exist - oh well!. So there's not a way to force an evaluation on a list eg
(try-this-list-as-a-program '(+ 1 2) )
83.100.250.79 (talk) 16:29, 27 July 2009 (UTC)
- because + has been convereted forever to a char, and can't be got back into a proceedure type. —Preceding unsigned comment added by 83.100.250.79 (talk) 17:16, 27 July 2009 (UTC)
- There is eval in R5RS Scheme:
(eval '(+ 1 2))
- :-) --Spoon! (talk) 19:37, 27 July 2009 (UTC)
- Cool. (I did try eval on the off chance - but it didn't quite work..)
- I'm using "DrScheme" R5RS and eval doesn't work - gives the curious error message "procedure meval: expects 2 arguments, given 1: (+ 1 2)" (yes it spells eval wrong as well), must be a bug. Curiously in MrEd (same distribution) eval works as planned. Anyone familiar with PLT Scheme and know what's going on? 83.100.250.79 (talk) 20:21, 27 July 2009 (UTC)
- :-) --Spoon! (talk) 19:37, 27 July 2009 (UTC)
How can I extract individual images from video-slideshow?
I have a video-slideshow created by Photo Story 3 using the Windows Media Video 9.1 Image v2 codec. How can I extract the static images from this file? --Me (talk) 20:01, 26 July 2009 (UTC)
Elevator logic control
Hi there, I'm in the process of creating an app/game/sim/whatever you want to call it that emulates a lift (elevator). I've got the thing working pretty well but am stumped at getting the logic right for handling calls. (Originally asked this on the science desk but this is probably a better place to ask it.)
At the moment, there are two objects: DRUp and DRDown that both contain a variable which can be set to 0 or 1 (0=off, 1=on), this simulates a pair of switches that control the direction. The lift operates a 'mechanical' floor selector (a moving object that triggers events when it touches other objects) that makes contact with various switches to tell the lift where abouts in the shaft it is. When the top floor and bottom floor switches are triggered, it toggles the direction switches so if it's at the top floor then DRUp=0 and DRDown=1, because the lift cannot go up from the top floor! The ground floor switch does the opposite.
This works fine for going in the same direction, however if the lift car is on the ground floor and I am on the second floor and want to go to the ground floor, the lift goes all the way to the top, reverses direction and then stops at the second floor. I need a way of resetting the direction switches from other floors but ONLY if there are no further calls in the original direction.
Example: Lift on ground floor Call from 2nd floor Lift goes UP to second floor Are there any more calls going UP? If yes, continue up, if no, reverse direction.
I can probably do it a long-winded way by setting up a long and protracted if statement along the lines of:
If Floor=1 and LR2Up and LR3Up and CR2 and CR3 and CR4 = 0 then DRUp=0 and DRDown=1 (LR being landing call switches and CR being lift car call switches)
However I'm sure there must be a simpler way of doing it (probably something to do with the floor selector). I can't see how old-fashioned lifts with relay logic could evaluate complex if statements. I think from looking at old and very complex documents about electromechanical lift controllers, the floor selector has three parts on top of each other that tell it which way to go but not sure).
Anyway, if you're interested, I've put the project so far online: http://www.arthurflowers.co.uk/games/Lift2_1.exe , any comments would be good.
Thanks in advance for any information. GaryReggae (talk) 21:44, 26 July 2009 (UTC) —Preceding unsigned comment added by GaryReggae (talk • contribs)
- May I suggest that you re-ask this question on the computing ref desk - you'll get a much better answer there. SteveBaker (talk) 21:55, 26 July 2009 (UTC)
- It was not clear to me whether your lift has a single call button at each floor, or two buttons for a user to call to go up or down. There may be security problems about your link to an executable. Consider showing pseudocode instead. Cuddlyable3 (talk) 22:20, 26 July 2009 (UTC)
- Thanks - I have posted this on the Computing desk too. I only posted it here in the hope that somebody that knows about electronics and engineering might know how these things work in the real world. I have been looking on Google patents about old lift controllers and it seems that the floor selector has three parts that control the direction but it's all incredibly technical and goes into too much detail.
- The lift has two buttons on each floor, each one activates either an up call request switch (LRUp or a down call request switch (LRDown). Buttons pressed in the lift car itself activate a third switch for each floor (CR). At the moment, the lift will answer all the calls going down then all the calls going up but as I said, the lift currently travels to the top and bottom floors to change direction, so if I were to only want to go between two of the middle floors, I would have to go all the way and then back.
- I don't know how to do pseudocode but I will try blockquoting the link:
http://www.arthurflowers.co.uk/games/Lift2_1.exe
- There are many articles that contain examples of pseudocode. Loading executables from the Internet is forbidden in many computer environments e.g. school networks, because of the potential for virus attack. Cuddlyable3 (talk) 22:58, 26 July 2009 (UTC)
- --- end of answers from Science Desk ---
- minor point (Did you realise that by directly linking to the file you have allowed users to circumvent your draconian user aggreement? eg http://www.arthurflowers.co.uk/ ?) —Preceding unsigned comment added by 83.100.250.79 (talk) 22:55, 26 July 2009 (UTC)
- What language? (may help in the answers)
- Another thing I have to ask is "can there be multiple people requesting the lift" - it's a lot simple if only one person uses the lift at once.
- Basically don't you need two variables "LiftFloorRequest" and "LiftFloorRequestDestination" - first the lift goes to "LiftFloorRequest", then it can contine (or change direction) to go to "LiftFloorRequestDestination". You could add an additional flag for "LiftMode" - which would be either "seeking customer" or "delivering customer" which might help keep things clear.
- (If more than one person is using the lift then I think real world practice is for the lift to go up to the highest request, and down to the lowest request - ie when more than one button is pressed the lift reverts to the mode you already have - ie straight up and then down.)
- Also it's probably more use if you can link to the program code, rather than the program - otherwise we won't really know how you are doing it.)83.100.250.79 (talk) 22:36, 26 July 2009 (UTC)
- In terms of the actual electrics, rather than a simulation - I'd guess that there would have to be a wire for each level if you want to go to the highest selected level rather than the top - though it's possible to do it with only a couple of wires. I'm no lift expert - it's not clear if you're trying to simulated the original mechanism or just making an lift program that works.
- (Actually I think I can describe a very simple relay circuit for what you are describing - which would convert into two program variables - the self explanatory "HighestButtonPressed", and "LowestButtonPressed" - it's probably clear from those words that all you need to do is work out the two values, and let the lift oscillate between the two. (I imagine there are many implementations)83.100.250.79 (talk) 22:42, 26 July 2009 (UTC)
- Yeah, I'm trying to simulate the original mechanism as far as is possible. There is only one person calling the lift at any time. I can't put the code in as I have built this thing using 'GameMaker', a GUI that allows you to create games. You can use variables, as indeed I have but each 'object' has its own set of 'events', such as MouseClick and Step (runs the same procedure constantly). I have an object that controls the motion of the lift car - if there are no calls then it exits the event, if there are calls then it moves the lift car in whichever direction is specified by the direction switches DRUp and DRDown. The DR switches are toggled when the 'mechanical' floor selector touches the ground or top floor switches.
- Here is a screenshot: http://img188.imageshack.us/i/atflift2.jpg/
- With regard to the draconian user agreement, yeah, I put it there out of sarcasm after I got in trouble at work for posting technical stuff on that website but it was nothing to do with them really.
GaryReggae (talk) 22:56, 26 July 2009 (UTC)
- This doesn't address your specific issue, but you might be interested in looking at SimTower. This game evolved from an earlier elevator simulator and ended up being fairly commercially successful. Nimur (talk) 23:04, 26 July 2009 (UTC)
- I'm not sure that I can help you much more, but I think I can explain how the relays simulate the logic if you need that (you mentioned above that you didn't see the connection) - if there are two wires coming from the top, one 'power', and one 'signal' - then pressing the button on a floor will connect power to signal by activating a relay. By doing this power is routed to the signal wire (going down) - thus the power wire below this floor is now not connected... The relays on each floor have to be set up so that the signal cannot go upwards at the point were power is routed to signal. (probably a double throw relay) this has 3 effects:
- thus the signal wire is only live below the highest floor on which a button has been pressed.
- power wire is disconnected on floors below. (therefor pressing the button does nothing)
- pressing a button higher up still works
- I'm not sure that I can help you much more, but I think I can explain how the relays simulate the logic if you need that (you mentioned above that you didn't see the connection) - if there are two wires coming from the top, one 'power', and one 'signal' - then pressing the button on a floor will connect power to signal by activating a relay. By doing this power is routed to the signal wire (going down) - thus the power wire below this floor is now not connected... The relays on each floor have to be set up so that the signal cannot go upwards at the point were power is routed to signal. (probably a double throw relay) this has 3 effects:
(If the power is off then the switching relays need to reset themselves.)
- Combine this with the same mechanism going upwards instead of downwards (another 2 wires plus 'ground')
- The lift only runs where both the signal wires are live - additionally losing one of the signal wire connection means the lift needs to change direction - this can be acchieved with relays too. ie connect the two signal wire feeds to another relay - if one is absent the relay will switch (in one of 2 directiosn)- which in turn can be used to switch the motor power.
- Obviously getting the lift to stop exactly at the floor makes this more difficult.
- I think it would be quite possible to emulated this in your program if you haven't already - ie you could have close up images of the relays switching, or mabybe even colour the wires where they are live.83.100.250.79 (talk) 23:21, 26 July 2009 (UTC)
- By the way I think the technical term is Interlocking - but all that article is about trains and not lifts - though a lot of the principles are the same.83.100.250.79 (talk) 23:24, 26 July 2009 (UTC)
Elevator Logic The number of floors in the building is Nf. The following are independent on/off states. Each could be a latching relay (relay controller), a set/reset latch (logic controller with MSI chips or FPGA), or one-bit flags in memory (µP controller). - For each floor i = [1...Nf] there are 3 state bits: Cdi = Call to descend Cai = Call to ascend Di = Directed to floor Cdi and Cai are set by pushbutton call switches at each floor. Cdi and Cai illuminate their respective call button so the caller gets immediate confirmation. Di are set by pushbuttons inside the elevator and illuminate their respective buttons so riders get immediate confirmation. - For the elevator there are state bits: Kdi = Commit to descend from floor #i Kai = Commit to ascend from floor #i (Kdi AND Cdi) and (Kai AND Cai) are AND functions that illuminate arrows at the respective elevator doors. These give further confirmation to a caller that s/he will soon be served, and they show which of Cdi/Cai will be answered first when both call buttons have been pressed. A "ping" sound is given at the floor when either arrow lights. The elevator logic monitors the location of the elevator f = [1...Nf]. This can be done in various ways such as by a rotary optical encoder in the lifting gear, or interlocking microswitches at each floor. It could be done using a momentary contact switch at each floor thus: as the elevator touches each switch the controller increments or decrements a floor counter, depending on whether the elevator is ascending or descending. Floor #1 has an extra contact switch that keeps the floor counter synchronised to the actual floor numbers. Number f is displayed to riders inside the elevator. Initialisation at switch on and after a power break: All (5 x Nf) - 2* state bits reset. Bring elevator to f = 1 (ground floor) to synchronise floor counter. Self test routine (in µP) may include testing all lamps. The elevator logic executes the following. ----------------------------------------- SCAN UP CALLS Pa = 0 pending ascend flag for i = f to Nf Kai = Cai OR Di if Kai=1 and Pa=0 then fd = i destination floor Pa = 1 next i if Pa=0 goto SCAN DOWN CALLS while f<fd raise elevator (At floor fd) Open doors, Caf = 0, Kaf = 0, Df = 0 (After delay 5 seconds) Close doors. If door is blocked, open and repeat. goto SCAN UP CALLS SCAN DOWN CALLS Pd = 0 pending descend flag for i = f to 1 step -1 Kdi = Cdi OR Di if Kdi=1 and Pd=0 then fd = i destination floor Pd = 1 next i if Pd=0 goto SCAN UP CALLS while f>fd raise elevator (At floor fd) Open doors, Caf = 0, Kaf = 0, Df = 0 (After delay 5 seconds) Close doors. If door is blocked, open and repeat. goto SCAN DOWN CALLS ----------------------------------------- Notes on this simple elevator implementation: 1. When no one uses the elevator the controller alternates between SCAN UP CALLS and SCAN DOWN CALLS. That is innocous for a µP controller but would be unwelcome activity in a relay controller. 2. Calls are not served well while the elevator is in motion. It is possible for the elevator to proceed past a floor if a call to that floor was made after the elevator starts. That will distress a rider who changes their mind during travel. 3. No provision was made for soft acceleration/deceleration so the elevator speed is limited. Possible improvements which are more suitable for tall buildings: Re. 1. When Pa = Pd = 0 the elevator could be sent to an optimum rest floor, such as ground floor or a mid floor. Re. 2. Response to rider controls could be improved by scanning Di's more often than only when the elevator stops. Re. 3. Higher speed without abrupt starts/stops is possible if full speed/stop is reached only after travelling one floor. However for that strategy one cannot respond while the elevator is in motion to a new Di (in 2. above) nor commit to a new Cdi/Cai where i is closer than f +/- 1. Travel from a floor to an adjacent floor can only reach half the maximum speed. Overload, Fast Mode The elevator car should have a load sensor. - EXCESS load causes the doors to stay open, prevents elevator movement and (preferably) shows a warning to occupants. The following improvements to load sensing are possible. - FULL load corresponds to maximum number of adult occupants. Ignore floor calls and obey only occupant directions Di. This avoids serving floor calls with a full elevator that the caller cannot enter. - EMPTY load corresponds to less than the weight of a child. Move elevator at maximum speed with abrupt start and stop. *On floor #1 there is no Cd1 button nor down arrow. On floor Nf there is no CaNf button nor up arrow.
Cuddlyable3 (talk) 21:04, 27 July 2009 (UTC)
July 27
AI database
10 or 15 years ago (I think), there was a project to get volunteers to input common knowledge into a database for an AI program to use (things like apple ISA edible fruit). Does anybody know what happened to it? Clarityfiend (talk) 04:12, 27 July 2009 (UTC)
- It sounds like you're talking about a Commonsense knowledge base. There's several famous ones listed on that page. The one closest to your description is Open Mind Common Sense, I think. Indeterminate (talk) 05:07, 27 July 2009 (UTC)
- I think it was Cyc; the name rings a bell. Thanks. Clarityfiend (talk) 06:11, 27 July 2009 (UTC)
Python "for x in y" operator overload
When I use if x in y: (expecting a boolean to be returned), the real operator being called is __contains__ (so that x.__contains__(y) is the same as y in x). But apparently, when I use for x in y: it's something different. It's not even mentioned in help(list). Here's some sample code I wrought up:
class x:
def __init__(self):
self.data = [1,2,3,4,6,5,7]
def __contains__(self,con):
return con in self.data
## Now, testing it:
if 4 in d:
print(4) ## good - it returns 4
if 26 in d:
print(4) ## good - it doesn't return 4
for x in d:
print(x) ## bad - it gives "TypeError: 'x' object is not iterable"
Anybody know what the underlying operator is? Thanks, [flaminglawyer] 04:24, 27 July 2009 (UTC)
- You're looking for the iterator protocol. For example:
class Uppercaser(object):
def __init__(self, strings):
self._strings = strings
def __iter__(self):
for string in self._strings:
yield string.upper()
- In usage:
>>> for s in Uppercaser(['Foo', 'bAr', 'baZ']):
... print(s)
...
FOO
BAR
BAZ
- You can easily implement __iter__ using a generator. You can also implement __getitem__ and __len__ instead, but iterators are generally a nicer solution. 24.76.174.152 (talk) 05:18, 27 July 2009 (UTC)
- Wow. Your explanation is really straigtforward... But the docs page... I'll have to look into this new "iterator" thing. Thanks :) [flaminglawyer] 05:46, 27 July 2009 (UTC)
Download albums from Shutterfly?
Hi. My friend has several albums on Shutterfly of an activity that I was in too, and I want to download the pictures onto my computer (hi resolution if possible). I know Shutterfly probably doesn't want you to do this (as they won't make ad money if you don't use their site to access the pictures), but I was wondering if someone has made a free tool to do it. I clicked on one image and it gave me an option to download that image after I sign in (I don't know if this is a limited thing or if it will work for every picture). However, there doesn't seem to be a way to download the entire album. The albums have like 700 pictures in them so manually going through each picture is not feasible. Thanks, --76.91.63.71 (talk) 10:25, 27 July 2009 (UTC)
Bellinis Bikini
I can't get any further, please help me complete the fucking game .. It's soo hard!! (: I can't find any light, so I can go into the cave, and how do we move on? Please help we are desperate!!!!
- 0*
- Please do not use any slang word ! I suggest you to go to games forum for further assistance for this game.--NAHID 13:42, 27 July 2009 (UTC)
- ... or you could try posting this on the entertainment desk. They're generally better with video games. [flaminglawyer] 22:44, 27 July 2009 (UTC)
What is window vista ultimate??
can anyone give me a description and the general purpose of the window vista ultimate?? i will wait for your reply.... wish to see your reply soon... thank you ^^ —Preceding unsigned comment added by Bebezaii (talk • contribs) 13:49, 27 July 2009 (UTC)
- See Windows Vista editions#Windows Vista Ultimate. PrimeHunter (talk) 13:53, 27 July 2009 (UTC)
- (e/c) See our article on Windows Vista editions. Basically it's Home Premium (the best version for regular home users) and Enterprise (for large businesses) combined with a few extra features added on. It requires a really really high-end computer if I remember correctly. If you're thinking of buying it, then you should probably wait for Windows 7 Ultimate to be released this October. Xenon54 (talk) 13:55, 27 July 2009 (UTC)
- No, I can't think of any features in Ultimate that require "a really really high-end computer". Windows Aero is the Vista component (optional to use) which has the highest system requirements, and it isn't specific to Ultimate. Tempshill (talk) 14:53, 27 July 2009 (UTC)
- The answers can be got 'from the horses mouth' as well - http://www.microsoft.com/windows/windows-vista/compare-editions/default.aspx - to summarise 'ultimate' is the business ready version of vista with the media features of the home premium version.83.100.250.79 (talk) 15:19, 27 July 2009 (UTC)
Bitdefender Rescue cd
How do I use this file BitDefenderRescueCD_v2.0.0_27_07_2009.iso.md5, MD5 check program accept it. Also how should I verify the checksum of BitDefenderRescueCD_v2.0.0_27_07_2009.iso. yousaf465'
- I got the checksum of download file as "1813A52837CC06E7C2EB25A416FBE84E". yousaf465'
- The purpose of the checksum is to make sure that the large .iso file downloaded with no errors. You should take the md5 of the ISO file. Then, compare it to the expected MD5 in the the small text-file. If the computed hash matches the pre-computed hash, then we can say with a high degree of certainty that you have the correct .iso file. This is an effective way to assuage paranoia about download errors or intentionally modified binary files, but it is not a required part of the process to burn a CD. Nimur (talk) 15:33, 27 July 2009 (UTC)
seeking identification of an icon
Does anyone know what program this icon is from?—msh210℠ 17:03, 27 July 2009 (UTC)
- I don't know but maybe if you crop it you can run it through tineye-- penubag (talk) 18:31, 27 July 2009 (UTC)
Windows/Mac comparison
Are there any advantages of Macs over Windows and vice versa (From a general perspective)? Chevymontecarlo (talk) 17:24, 27 July 2009 (UTC)
- It depends entirely on the user. They are nothing more than different operating systems. It is like asking if a motorcycle is better than a van. Both are transportation vehicles, but they meet different needs for the user. If you can state what you plan to do with your computer, there is a possibility that one may meet your needs better than the other. -- kainaw™ 17:59, 27 July 2009 (UTC)
Game bot/ai
My school will have a programming competition. The idea is to make an algorithm to control pieces of a board game. The game takes place on a MxN grid. It starts by placing K black and white pieces on random positions on the board. On every turn a piece is randomly selected and the algorithm gets to move it. The piece can move one step to one of the 4 major directions, possibly eating an enemy piece, but not off the grid or onto a friend piece. The data the algorithm gets for deciding where to move the piece is what the piece "sees" in the four major directions and the distance to it. If the piece sees a friend piece (instead of the grid edge or an enemy piece), it also sees the "color" of that piece, a 4 byte number (pieces can't see their own color and there's no other memory that lasts longer than a turn). The piece can also set its own color when it gets a turn. A player wins the game if all of his pieces are "connected visually", ie any piece can see all other pieces directly or through other piece that sees other piece ... that sees the piece. (Please forgive my English).
I'm a bit stuck with this. The only thing I can think of is trying to command the pieces towards the center of the board. I don't know any other similar games either. All kinds of help are welcome. --91.145.73.220 (talk) 22:19, 27 July 2009 (UTC)
- I'm a bit confused about "The piece can also set its own color when it gets a turn" - does this mean a piece can turn into an enemy piece after it moves?
- Also does the algothym get the absolute position of friendly pieces each turn eg (x,y) position
- Also a bit confused about "if a piece sees a friend piece" - but then you say "pieces can't see their own colour": Are friend pieces not all either black or white?
- Also does player A get the 'views' of player B's pieces, or just their own?
- Also what does the "4 byte number" you mention contain? (It sounds like a difficult puzzle by the way - you might want to alert the maths desk to this question)83.100.250.79 (talk) 22:39, 27 July 2009 (UTC)
- On the "4 byte number" thing, that means a number (in binary) that has 4 digits (bytes), meaning any number between 0 and 15 (0000 being 0 and 1111 being 15). [flaminglawyer] 22:52, 27 July 2009 (UTC)
- ... and I don't think the maths desk would help on this one, it's purely programming. [flaminglawyer] 22:54, 27 July 2009 (UTC)
Sorry about the confusion.
- It cannot turn into an enemy piece. Every turn one (random) piece can move and (must) set its color. Only friend pieces see the color, enemies are seen just as "enemies".
- The algorithm gets no info but what it sees.
- Oops, no wonder if you are a bit confused. I meant to say player A's pieces are white and player B's black. Then pieces have a color that is the 4 byte number and only visible to friend pieces. It makes sense if you want to believe into it.
- I assume you mean the "visual connection" thing, no, enemy pieces cut the connection.
- The 4 byte number contains the color, the algorithm must set it every times it moves the piece. Initially the color is 0.
--91.145.73.220 (talk) 23:03, 27 July 2009 (UTC)
Colour schemes in GUIs
I thought this would be easy to find, but no! it's not. Could anyone point me in the direction of research papers/articles on good (and perhaps not-so-good) colour schemes in GUIs or similar? There are a couple of names in my head who did research in this area but their actual names escape me now. Thanks in advance. x42bn6 Talk Mess 22:37, 27 July 2009 (UTC)
- I don't know of anything specifically (or at all), but I can point you to Google Scholar, which (basically) searches a bunch of papers/articles to find what you want. [flaminglawyer] 22:48, 27 July 2009 (UTC)
- This page mentions "Murchs Rules" [12]
- Does that ring a bell? There are some other references on the page too.83.100.250.79 (talk) 22:52, 27 July 2009 (UTC)