| ||||||||
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions at one of the pages linked to above. | ||||||||
|
I just got a new computer. I'd put avg on my old one because someone had suggested it, and I didn't get any viruses or anything. the new computer comes with a trial version, 6 months, i believe, of mcafee. it's bugging the hell out of me, (constant security pop-ups im having trouble turning off, prohibitively large cpu usage at computer startup, causing a long, long, startup) and im considering deleting it before the trial expires. is this a bad idea if i have avg? does avg work fine? should I renew my mcafee or can i just delete it and be perfectly safe. thanks sasha
Thanks
pls tell me how to control teh key board using java script
...well I need to learn how to do something. It says I have not installed the help program so if anyone can tell me how to do that, it would probably clear it up for me. Anyway, my question is how do I get a transparent background. --WillMak050389 20:53, 21 July 2006 (UTC)
In 10 steps or less, open the image you want. Find the layers toolbar and right click on the "Background" layer. Select "Add Alpha Channel" This adds the "Transparent" color to the image. Find the Tools box and pick a selection tool. The Lasso lets you select an irregular shaped area by hand. The box lets you select a rectangle. The magic wand lets you select an area based on GIMP's guess of where the area starts and ends. (It's pretty cool.) Once you've selected the area you want to make transparent press Ctrl-K to clear the area and let the transparency show through. You can also use the eraser tool to erase as well. When you save your image, make sure you pick a format that supports transparencies like GIF, PNG, and Gimp's format XCF.
One more thing. When you select an area in GIMP, it becomes the "working" area. This means you can't use tools like the eraser and paintbrush outside of a selected area. When your tools aren't working, try going up to the edit menu and clicking Edit->Select->None EjayHire 02:42, 28 July 2006 (UTC)
is there some command line tool that would allow conversion from Microsoft Word format to .odt? Along the lines of $doc2odt file.doc > file.odt? Does OpenOffice have some sort of script language (analogous to Script-Fu for the GIMP)? dab (ᛏ) 16:47, 22 July 2006 (UTC)
$ abiword --to=file.odt file.doc
). I'm sure OOo does as well. Googling "openoffice automate" brings up a few likely pages. EdC 02:40, 24 July 2006 (UTC)(new fangled computing desk, eh?) After reading Neuromancer, I'm interested to see if anyone's ever made a 3D representation of the internet (i.e. Cyberspace) which actually works, in that you can go from site to site, sites are represented geographically, etc. It might be a little complicated but I'd be surprised if no one's actually tried. Know ye of any software like that? Sum0 18:16, 22 July 2006 (UTC)
I have this video, but I just need the audio part of it,is there any way to seperate it? Ziyi_cai841117
mplayer video.whatever -dumpaudio -dumpfile audio.whatever
will supposedly extract the audio track from any media file. (Though it seems to die with my current build on Ubuntu Dapper. Time to file another bug report...) grendel|khan 14:15, 23 July 2006 (UTC)
Thank you!- Ziyi_cai841117
Good old Windows Movie Maker should work, I think.--epf 21:57, 26 July 2006 (UTC)
Hi all, I have been playing with migration schemes for the articles listed in User:Hillman/Archive. I have already succesfully used to a simple shell script to download the raw wiki code using the utility wget
#!/bin/sh # grab raw wiki code for given version of given Wikipedia article # syntax getrawver ARTICLENAME version # This saves raw wikicode in file ARTICLENAME in this directory wget -O $1 "http://en.wikipedia.org/w/index.php?title=$1&oldid=$2&action=raw"
I used another simple shell script to massage User:Hillman/Archive into a file called "runme" which looks like
getrawver Constraint_counting 39565830 getrawver Tidal_tensor 28781955 ...
Then I ran another small script
#!/bin/sh # Syntax # getmyn LIST # Here LIST is ASCII file whose lines each have a unix command with appropriate arguments # We run each command and quit exec < $1 while read line do $line done
I am sure this could be further improved, but it worked fine for the small number of articles I wanted to grab, and that task is now done.
I am now working on the hard part, a wiki2tex utility and hope to semiautomagically latexify these for use on my local machine. For debugging, it would be useful to also have printed versions of the "printable versions" of these articles. To see what I want, go to Constraint counting, look in the history file for the last version edited by User:Hillman, go to that, click on "printable version" and then (if you are using Firefox) click on File -> Save Page As and use the "Web page, complete" option. When you navigate on your local machine to the directory where you saved the file, you should see index.php.html plus a directory called index.php_files which contains all the .png files containing images of in-line mathematical equations from the original, any figures, etc.
The point is that you should now be able to view and/or print this locally even if you are not connected to the internet. (Links to other Wikipedia articles may be represented by internal links which might be broken, but I am not worrying about that right now since I only want to print the article.) If you didn't choose "Web page, complete", you'd just get one html file with external links to all the various .png images.
It must be possible to write a simple script getprintablearts using something like
wget -nc -S -P./Wikipedia/HTML/$1 "http://en.wikipedia.org/w/index.php?title=$1&oldid=$2&printable=yes"
Unfortunately, this seems to save the nonprintable web page with links to the original URLs with the .png files. I tried adding the -r option but this also doesn't seem to give the desired result. Any suggestions? ---CH 22:02, 22 July 2006 (UTC)
-p
(to download the images, stylesheets and scripts used by the page) and -k
(to rewrite the downloaded page to point to the objects downloaded by -p
). You probably will also need a combination of -H
and -D
to allow it to get the images from the image server, and possibly other switches; see the wget manual for more information. I would also recomment the use of -w
(to add a delay) and a explicit delay between each download, to avoid hammering the Wikimedia servers. --cesarb 16:59, 23 July 2006 (UTC)Hi, CesarB, thanks, but if you mean that I should run
wget -nc -p -k "http://en.wikipedia.org/w/index.php?title=$1&oldid=$2&printable=yes"
or
wget -nc -p -k "http://en.wikipedia.org/w/index.php?title=$1&oldid=$2
this don't behave anything like what you said. ---CH 23:36, 23 July 2006 (UTC)
wget -nc -p -k -H -D wikipedia.org,wikimedia.org "http://en.wikipedia.org/w/index.php?title=$1&oldid=$2"
. Unfortunately, at least the version of wget
I have here does not understand the @import
used to load the CSS files; you will have to edit each downloaded file yourself to point it to the correct places, and download the CSS files by hand. --cesarb 02:23, 24 July 2006 (UTC)Hi again, thanks, I think you are right, the problem is that wget doesn't play nicely with CSS. Regarding the claim that downloading the "nonprintable" html version and choosing "Print Preview" in my browser being equivalent to downloading printable version, at least on my system these are definitely not equivalent at all! Oh well, fortunately I don't really have so very many files to download so I'll do it "by hand" after all. ---CH 02:43, 24 July 2006 (UTC)
In python, you can make a string "raw" by putting an r in front of it. e.g. r"this string is now raw"
If I have a variable, x, which is a string, how do I make it raw?
r
does is alter the escaping. In a normal string, the backslash has all kinds of magical connotations for the parser, but (nearly) all of these vanish for raw strings. Eg:>>> "foo\x61bar" "fooabar" >>> r"foo\x61bar" "foo\\x61bar" #note the escaping here.
repr
, which escapes all the backslashes and weird characters in a string, but I'm not too sure. If you'd explain your motivation a little, a better/more fitting solution could be offered. --Sam Pointon 23:07, 22 July 2006 (UTC)
- loc = raw_input("Filename: ")
- f = file(loc, "r")