Wikipedia:Reference desk/Archives/Computing/2012 May 16
Computing desk | ||
---|---|---|
< May 15 | << Apr | May | Jun >> | May 17 > |
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. |
May 16
editld can't find QtSql_debug
editWhat library normally includes this? I already have qt4-mac +quartz +sqlite2 installed via MacPorts, and ld seems to have no trouble finding the rest of the Qt libraries. Horselover Frost (talk · edits) 00:44, 16 May 2012 (UTC)
- Reinstalling qt4-mac using the +debug +quartz +mysql variant flags fixed this. Horselover Frost (talk · edits) 18:01, 19 May 2012 (UTC)
Scripting SVG animation
editWhat do I need to add to the script below to make the animation start or stop if you click on the document? The script animates .SVGs but I don't really understand how it works.
<script type="text/ecmascript"><![CDATA[
var svgNS = "http://www.w3.org/2000/svg";
function init(evt)
{
if ( window.svgDocument == null )
{
svgDocument = evt.target.ownerDocument;
}
addRotateTransform('cog1');
}
function addRotateTransform(target_id)
{
var element_to_rotate = svgDocument.getElementById(target_id);
var my_transform = svgDocument.createElementNS(svgNS, "animateTransform");
var bb = element_to_rotate.getBBox();
var cx = bb.x + bb.width/2;
var cy = bb.y + bb.height/2;
my_transform.setAttributeNS(null, "attributeName", "transform");
my_transform.setAttributeNS(null, "attributeType", "XML");
my_transform.setAttributeNS(null, "type", "rotate");
my_transform.setAttributeNS(null, "dur", "400s");
my_transform.setAttributeNS(null, "repeatCount", "indefinite");
my_transform.setAttributeNS(null, "from", "0 "+cx+" "+cy);
my_transform.setAttributeNS(null, "to", "360 "+cx+" "+cy);
element_to_rotate.appendChild(my_transform);
my_transform.beginElement();
}
]]></script>
Thanks SmartSE (talk) 01:26, 16 May 2012 (UTC)
- I don't really understand it either — I don't see any timer function being called, which makes it a lot harder to intervene with. Is there a reason you're using that script and not another? The setTimeout or setInterval (Javascript) options on this page would be much more straightforward to modify in the way you desire. --Mr.98 (talk) 23:25, 16 May 2012 (UTC)
- Presumably if you made a mouse click event and had it call the .pauseAnimations() method, it might work, but cross-browser compatibility doesn't seem too high (that page doesn't work for me, anyway). --Mr.98 (talk) 23:28, 16 May 2012 (UTC)
Program to read info in digital photo
editI need a simple, free Windows program to display information about a digital photo - the resolution and the camera exposure info (focal length, shutter speed, etc.)
(I asked this several months ago and got a good recommendation, that I downloaded and used. However, I've forgotten the name of the program.) Bubba73 You talkin' to me? 06:10, 16 May 2012 (UTC)
- Doesn't Windows Explorer do all this? Right click on file > Properties > Details.--Shantavira|feed me 07:18, 16 May 2012 (UTC)
- Works for me on Windows 7. All the exif data is there. Dismas|(talk) 07:59, 16 May 2012 (UTC)
[1] AvrillirvA (talk) 15:19, 16 May 2012 (UTC)
Yes, it is in W7 (I didn't know that) and also thanks for the link to the program. Bubba73 You talkin' to me? 16:54, 16 May 2012 (UTC)
- Right-clicking on the image is good, but the program is nicer - it shows all of the files with Exif info in the folder, etc. Bubba73 You talkin' to me? 00:23, 17 May 2012 (UTC)
- You don't need to right click anything. Just set explorer to display whatever EXIF data you want for the relevant folders. (This obviously only works in list details mode.) I'm not sure you can display everything but I'm pretty sure you can display everything you specified. Nil Einne (talk) 05:06, 17 May 2012 (UTC)
- See [2] for an example of what I'm referring to. (Some of the details at the beginning and end are obviously not EXIF, I just included them for completeness. Some of the titles are too long to be read, I shrunk each pane to the minimum possible so that maximum possible could be shown in the screen shot.) I noticed 'flash energy' can't be displayed for whatever reason despite the Explorer properties option considering it core 'camera' details and even though some 'advanced photo' details can be displayed. Other EXIF properties which Explorer considers 'advanced photo' which can't be displayed are 'flash maker', 'flash model', 'cameral serial number', 'contrast', 'brightness', 'sharpness', 'photometric interpretation' and 'digital zoom'. Nil Einne (talk) 06:07, 17 May 2012 (UTC)
- You don't need to right click anything. Just set explorer to display whatever EXIF data you want for the relevant folders. (This obviously only works in list details mode.) I'm not sure you can display everything but I'm pretty sure you can display everything you specified. Nil Einne (talk) 05:06, 17 May 2012 (UTC)
Free download wanted
editLink checker which follows through. ie not one where I have to type in seperately the url of each page I am checking, but one which takes the home page and tunnels on, looking for errors. Kittybrewster ☎ 07:20, 16 May 2012 (UTC)
- linklint -- Finlay McWalterჷTalk 08:20, 16 May 2012 (UTC)
- Thank you. That looks perfect for me (windows vista 32-bit & firefox). how do I install and run it please? Kittybrewster ☎ 08:37, 16 May 2012 (UTC)
- Install Perl, if you don't have it already, and follow the instructions at http://www.linklint.org/doc/index.html -- Finlay McWalterჷTalk 09:07, 16 May 2012 (UTC)
- how do I do that? I don't have a C compiler/implementer? Kittybrewster ☎ 09:11, 16 May 2012 (UTC)
- Install Perl, if you don't have it already, and follow the instructions at http://www.linklint.org/doc/index.html -- Finlay McWalterჷTalk 09:07, 16 May 2012 (UTC)
- Thank you. That looks perfect for me (windows vista 32-bit & firefox). how do I install and run it please? Kittybrewster ☎ 08:37, 16 May 2012 (UTC)
There is an online tool here which seems to do what you want AvrillirvA (talk) 15:10, 16 May 2012 (UTC)
- Brilliant. Many thanks. Kittybrewster ☎ 22:28, 16 May 2012 (UTC)
rotating video
editI accidentally recorded a video with my camera sideways is there any easy way to rotate the video so it I can play it normally--Wrk678 (talk) 23:03, 16 May 2012 (UTC)
- Yes, but one issue that will come up is what to do about the dimensions of each frame. That is, if the aspect ratio is now 2:3 instead of 3:2, do you intend to stretch it, clip it, or leave it as is (making for a rather tall, thin video). This assumes your frames aren't square. StuRat (talk) 23:19, 16 May 2012 (UTC)
so how would I go about actually rotating the video?--Wrk678 (talk) 06:34, 17 May 2012 (UTC)
- One free program that can do it is VirtualDub - assuming you can get the video to a computer in a format that VirtualDub understands. Very briefly: drop video into VirtualDub. Select a compression method in Video->Compression. Add a rotate filter in Video->filters->add->rotate. File->save as avi. Use google and how-to's on www.videohelp.com for help. It's not exactly trivial but it's not impossible either. Of course there are other video editing programs too. 88.114.124.228 (talk) 14:11, 17 May 2012 (UTC)
Any decent playback software can rotate it without modifying the file. ¦ Reisio (talk) 19:16, 17 May 2012 (UTC)