Computing desk | ||
---|---|---|
< July 9 | << Jun | July | Aug >> | July 11 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Hey I'm a big fan of using Firefox on my flashdrive but I'm having trouble with extensions. Whenever I download a Firefox extension or skin onto my flashdrive it will only work when I'm using it on the computer I was using when I installed it. All of the files are still located on the flashdrive but for some reason Firefox can't use them on other computers. Does anyone know of a way to fix this? Thanks Mix Lord 01:16, 10 July 2007 (UTC)
I am looking for a way to put a simple watermark onto pictures. I tried using GIMP, but I couldn't figure out how to do it. The only other drawing program I have is regular Paint. Does anyone know an easy way to do this? 68.231.151.161 01:30, 10 July 2007 (UTC)
You can use
print self.__class__.__name__
to get the name of the current class when inside class foobar. Is there a way to get the name of all classes in a given source file when inside class foobar?
something like
for classname in self.__parent__.__classnames__: print classname
or whatever? NoClutter 03:25, 10 July 2007 (UTC)
__module__
attribute:import types #in some class... [obj.__name__ for obj in globals().itervalues() if isinstance(obj,(type,types.ClassType))]
type
, and old-style ones have type <type 'classobj'>
, which I reference with the types
module). --Tardis 15:15, 10 July 2007 (UTC)(EC) I don't really know Python, and Tardis' code didn't work for me, but I think this will do what you want. --TotoBaggins 15:43, 10 July 2007 (UTC)
def print_classes(module): import types for key, val in module.__dict__.iteritems(): if type(val) is types.ClassType: print "module '%s' defines old-style class '%s'" % (module.__name__, key) elif type(val) is types.TypeType: print "module '%s' defines new-style class '%s'" % (module.__name__, key) import foo print_classes(foo)
__module__
is a string (so I wanted sys.modules[self.__class__.__module__]
to get the object). There's a shorter way to say that, and I've modified my code above to use it. Thanks for pointing that out. --Tardis 22:37, 10 July 2007 (UTC)Hello, I have an IBM T40 laptop. When I start it up, the screen doesn't display anything. I know there is power because all of the lights on the laptop's side go on. Is there anything I can do myself to try and fix the display. I don't have a lot of cash right now to send it for repairs. Any suggestions would be greatly appreciated.
Thanks
actually, i tried that and here's what happened: the first time I connected it, the IBM logo came up and everything seemed to be going well. I thoght safe mode would be good so I pressed f8 and fn, then the screen(the external monitor) went blank. Since then, I have tried several times to get back, but each time the monitor says no signal.
I know very little about programming and I've already posted this idea at Wikipedia:Bot requests, but got no response. That page suggested that request for the creation of new bots could be placed here. I wouldn't be able to make such a bot myself, nor do I even know if this idea is feasible. Basically I would appreciate it if someone would have a look through and tell me if a bot could do this kind of work, and if yes, if there is anyone in the community that would be willing to create it.
Essentially I often add the conservation status for plant articles in North America, which involves using the same formula over and over again. It takes quite a bit of time to do myself, but I imagine its simple and mechanical enough for a bot to handle. It essentially works like this:
1)I insert a piece of copied text inside of an existing taxobox above the field for "| regnum =" like this:
| status = G5 | status_system = TNC | status_ref = <ref name=natureserve>{{Cite web | publisher =NatureServe | title = Eurybia divaricata | work = NatureServe Explorer | url = http://www.natureserve.org/explorer/servlet/NatureServe?searchName=Eurybia+divaricata | accessdate = 2007-06-13}}</ref>
such that the old taxobox looks like this with the new text:
{{Taxobox | color = lightgreen | name = White Wood Aster | image = Aster divaricatus R0019871.JPG | image_width = 250px | status = G5 | status_system = TNC | status_ref = <ref name=natureserve>{{Cite web | publisher =NatureServe | title = Eurybia divaricata | work = NatureServe Explorer | url = http://www.natureserve.org/explorer/servlet/NatureServe?searchName=Eurybia+divaricata+ | accessdate = 2007-06-13}}</ref> | regnum = [[Plant]]ae | divisio = [[Flowering plant|Magnoliophyta]] | classis = [[Magnoliopsida]] | ordo = [[Asterales]] | familia = [[Asteraceae]] | tribus = [[Astereae]] | genus = ''[[Eurybia (genus)|Eurybia]]'' | species = '''''E. divaricata''''' | binomial = ''Eurybia divaricata'' | binomial_authority = ([[L.]]) G.L.Nesom | synonyms = *''Aster divaricatus'' <small>L.</small> *''Aster corymbosum'' <small>[[William Aiton|Aiton]]</small> }}
2)I then change the text under "title" with the formula "| title =Genus species"
3)I change the part of the url such that "searchName=Genus+species"
4)I change the "accessdate" to today's
5)I change the field for "status" with the appropriate level listed on the NatureServe website, that being the url in the reference (can be G1, G2, G3, G4 or G5)
6)if there is no {{reflist}} tag, or a ==References== section, then I add one or both of those when needed
Problems might arise with the fact that some articles have taxoboxs and some don't,. I suppose the bot would have to have some mechanism for checking this. If anyone thinks this bot is a possibilty, it would save a lot of time and improve the Plants project significantly. If there are any more questions needed to be answered just let me know. Thanks! Djlayton4 | talk | contribs 11:42, 10 July 2007 (UTC)
{{{{Taxobox
is present and status_ref is empty, then add change status_ref=
to status_ref=[1]
I do not have AWB atm, so cant guide you through the exact steps. --soum talk 11:52, 10 July 2007 (UTC)I am not that familiar with the technical side of computers / hardware, etc. So please try to provide an answer at an elementary level, so that I can understand it. Thanks. I often hear that a person can be tracked down or identified by their IP address. I have heard this on Wikipedia (re: vandalism and anonymous accounts). And sometimes, even, you hear on TV that they catch a criminal this way (online sex predators and I believe that serial killer Dennis Rader in Kansas). First, what exactly is an IP address? Does my PC always have the same IP address or is it fluid/changing every time I log onto the Internet? Then, how do "they" link an IP address to a specific individual? Is it, for example, through the information that I gave (say) AOL when I registered with AOL to access the Internet? And, what exactly, can/does the IP address identify? A person's exact name, exact street address, etc.? Or just some generalized information, like "it was a computer located in the Houston, Texas area"? Or, more along the lines of "it was a computer registered to John Smith and the PC is located at 123 Main Street in Houston, Texas"? Thanks. (JosephASpadaro 17:17, 10 July 2007 (UTC))
So, would it be safe to say that ... while the police / law enforcement can find out my identity if they need to ... an average everyday person would not be able to do so? (i.e., say some one that you have communicated with through emails or the internet chats, etc.) Thanks. (JosephASpadaro 23:01, 10 July 2007 (UTC))
Also probably worth noting that, strictly, the IP address doesn't identify your computer - it identifies the network device. For many people that will be your modem or router. (We have four computers on a LAN using a router - as far as the Internet is concerned, they all have the same IP address - the one for the router) A computer can also have more than one IP address (if it has more than one network device) Worm 00:13, 11 July 2007 (UTC)
I created an article about George F. Heinrich M.D. but it does not reach quality measures. Could you please either make it quality or tell me how to? Thanks.