Computing desk | ||
---|---|---|
< April 9 | << Mar | April | May >> | April 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. |
Is there a way to get XP itunes to automagically run fullscreen / coverflow view when launched ? Boomshanka (talk) 01:48, 10 April 2008 (UTC)
I know this can be done many ways, but I'm wondering if there's some "proper" method that I've just never noticed... I hope I can explain this well. I have a project (libPurple). I am working on a plugin for it. In order to make my plugin, I had to alter the auto-generated Makefile to include source directories that aren't normally used by libPurple. It works fine for me, but it would be a pain to tell anyone else who wants to use this plugin that they have ./configure and then alter the Makefile before running make. I know that I could alter the configure script, but I don't want to alter libPurple. I want this plugin to be a single source file you can plop in your libpurple trunk and run make on. So, I wondered if I could pass extra -I options on the command line, but I know that -I for make is where the included Makefile(s) are located, not where the .h files are found. I am beginning to think that the proper method is to have a second Makefile for the plugin that adds the extra directories and then calls the main Makefile - but I'm not sure. So, that is why I'm asking here. -- kainaw™ 01:49, 10 April 2008 (UTC)
(grr, firefox crashes) Well, since I don't want to retype what I wrote before, when I tried to upload some rather large pngs (think >100 megs), MediaWiki wouldn't let me, even though it's supposed to be able to resize them itself. I want to resize them myself, then, preferably by some sort of filesize goal, rather than dimensions, like this. If I have to do that, I'll play around with getting something that'll work, but I'd like to know if there's a better option. Xiong Chiamiov ::contact:: help! 04:09, 10 April 2008 (UTC)
#!/usr/bin/perl -w
use Search::Binary;
use strict;
use Data::Dumper;
sub resize_file
{
my ($fname, $dimension) = @_;
my $resized = "resized-$fname";
system("convert", "-resize", $dimension, $fname, $resized) == 0 or die $!;
my $new_size = -s $resized;
return $new_size;
}
sub get_max_dimension
{
my $fname = shift;
my $img_info = `identify '$fname'`;
die $! if $?;
my ($width, $height) = $img_info =~ / (\d+)x(\d+) /
or die "Can't parse: $img_info";
return $width > $height ? $width : $height;
}
my $biggest_for_fsize = 0;
my $prev_dim = 0;
sub compare_fsize
{
my $fname = shift;
my $max_fsize = shift;
my $this_dim = shift;
if (defined $this_dim)
{
$prev_dim = $this_dim;
}
else
{
$this_dim = ++$prev_dim;
}
my $this_fsize = resize_file($fname, $this_dim);
my $comp = $max_fsize <=> $this_fsize;
if ($comp >= 0 && $this_dim >= $biggest_for_fsize)
{
$biggest_for_fsize = $this_dim;
}
return $comp, $this_dim;
}
@ARGV == 2 or die "usage: $0 filename max_file_size";
my $fname = shift;
my $max_file_size = shift;
my $min_file_dimension = 1;
my $max_file_dimension = get_max_dimension($fname);
binary_search($min_file_dimension, $max_file_dimension,
$max_file_size, \&compare_fsize, $fname, 1);
die "Can't get it that small" unless $biggest_for_fsize;
resize_file($fname, $biggest_for_fsize);
I accidently deleted 2 email files. I have windows vista. Is there any software out there that is effective in restoring deleted or lost emails with windows vista. —Preceding unsigned comment added by Gitule (talk • contribs) 04:33, 10 April 2008 (UTC)
Hi, anyone know of a basic command line utility to replace text in text files? A Win32 port of some "basic" GNU utility would be super. I'll use it in a batch file to import a text file from a website using WGET, to replace the garbled versions I get for Norwegian characters (which are poorly handled by the site making the text file (Citeulike, to be specific), not by Wget) with proper characters. Thanks a lot! Jørgen (talk) 07:45, 10 April 2008 (UTC)
Hello,
I recently, transitioned from using an excel sheet to trying to use sql (specifically, sqlite) and python to manage some resources.
It used to be, each day was a row, the first column was which date it was and the next five columns would be the five resources, and I would change the color of the rows that were reserved for a given column, for example when I got an e-mail reserving resource 2, from 4/12 to 4/14 I would change those three cells and add the name of the person doing the reserving to the first cell.
WELL....
I've decided to transition to a real database, so I've made a sql layout, and now have to contend with "bookings" so the layout looks like this:
booking_id start-date end-date which_resource other_information
my problem is...how do I get back to the view I had before? I'd like to do a view by date, as below, even though this is only "derived" from the booking start and end times...
How would I go about doing this? Thank you!
date | resource 1 | resource 2 | resource 3 | resource 4 | resource 5 |
---|---|---|---|---|---|
2008-04-10 | (available) | (available) | (available) | Sales conference | (available) |
2008-04-11 | John | (available) | (available) | Sales conference | (available) |
2008-04-12 | John | (available) | (available) | Sales conference | (available) |
2008-04-13 | John | (available) | (available) | Sales conference | (available) |
2008-04-14 | Patrick | (available) | (available) | Sales conference | (available) |
I'm sorry, I'm very very new to SQL and what you said is gobledegook to me :(. It doesn't sound like what I'm trying to do.
I want to go from (simplified example)
Booking_ID / is_for_date: / is_for_resource_number:
1 / June11 / #1
2 / June11 / #2
3 / June12 / #1
4 / June12 / #2
, which is the structure of my database.
to:
Date / state of resource #1 / state of resource #2
June10 / free* / free*
June11 / Taken (by booking with ID 1) / Taken (by booking with ID 2)
June12 / Taken (by booking with ID 3) / Taken (by booking with ID 4)
June13 / free* / free*
June14 / free* / free*
June15 / free* / free*
* Free because in the table above, no booking has this date and resource combination!
, which is just a presentation based on the database.
(This presentation is useful to me because then, if I get an e-mail "are either resources available on June 13th?" I can tell at a glance whether either is, but if none are, I can look at the date above and below to suggest something better, since they are just rows).
Remember, I'm really dealing with 5 resources. So if someone says "is anything available May 17", I should be able to just jump to the row beginning May 17 in the visual layout and see all the bookings...
So...how do I do the inversion? Is my question clear now? —Preceding unsigned comment added by 79.122.13.205 (talk) 13:35, 10 April 2008 (UTC)
RSV Table ----------------------------- DATE \ HOUR > Unique primary key RESOURCE/ LAST_NAME FIRST_NAME INFO BOOKING_ID
Yeh, I check for conflicts before adding the booking. I think your thing is much more complicated than necessary, because it's not even by hour, it's only on a daily basis. given my current config (which has successfully avoided conflicts) is there a way for me to make the presentation I wanted to? —Preceding unsigned comment added by 79.122.13.205 (talk) 14:49, 10 April 2008 (UTC)
I own a PC and run WindowsXP, and I need to keep certain files under lock and key from my children in case I leave my PC on. They are clever little buggers and can find things I've tried to hide in folder after folder. Nusaince (talk) 12:30, 10 April 2008 (UTC)
You could always try putting the files in a passworded Winrar file. I think there is even an option to scramble the file names till the password is put in, if needs be. TheGreatZorko (talk) 10:05, 11 April 2008 (UTC)
For your purpose use of Truecrypt is perfect. Unmount the Truecrypt Volume (you'll see what I mean when you try it) when your away and "good bye" little buggers. - 70.50.182.33 (talk) 15:46, 11 April 2008 (UTC)
Why is it that I need a Flash player on YouTube.com, now? I mean I never needed one, then. Ericthebrainiac (talk) 13:06, 10 April 2008 (UTC)
am trying to find a Zoom UIB02 USB Interface Board for a zoom mrs 1608 multitrack recorder, does any one know where i can get one, how much they cost, and what program is used on ones computer. Thanks —Preceding unsigned comment added by 86.18.34.51 (talk) 20:27, 8 April 2008 (UTC)
I'd like to download all files (including CSS, JS, images, etc. along with HTML) associated with a given website of the format http://www.thiswebsite.com/subdirectory/. I want to restrict it to all files either in the subdirectory or the files in directories held by the subdirectory (that is, even if a file in the subdirectory links to a file outside of it, it should ignore this). I want it to drill down as far as it can go. And I want it to save these files in the exact same relative paths as they were originally.
I know this must be possible with wget and curl but lord help me I can't figure it out. If there's a way to do this with curl that would be most helpful since I already have curl on my machine (it is shipped with OS X), where as wget would require me to locate it, install it, etc. which can be a pain.
If there's a Firefox extension that would be fine too. I tried using Scrapbook but while it saved everything just fine it didn't maintain the relative paths, it just dumped it into one big directory. That won't work for me. I've tried DownloadThemAll and FlashGot but neither of these seemed to drill down correctly. Bah.
Thoughts, recommendations? I did this once before with wget, I think, but that was on a different computer, and I don't really remember how I finally got it working. The site itself has some 1,700 total files on it so I can't do it by hand. Thanks a bunch. --140.247.133.130 (talk) 18:05, 10 April 2008 (UTC)
wget -r http://www.gnu.org/ -o gnulog
APL (talk) 19:21, 10 April 2008 (UTC)
Is Canada going to digital TV/HDTV/ATSC from analog/NTSC anytime soon ? Since the US is in the process of switching over (to be completed by February, 2009), won't US/Canadian border cities get cross interference if the two countries are using the same frequencies for different purposes ? StuRat (talk) 18:24, 10 April 2008 (UTC)
OK, that says Canada switches over by August, 2011. That still leaves part 2 of my question: during the 2.5 year period between the US switchover and the Canadian switchover, won't there by cross interference in border cities ? StuRat (talk) 20:03, 10 April 2008 (UTC)
I know the US frequencies used for analog TV will get some other use in 2009. I'm not sure what, though, is it cell phones ? So, will they interfere with Canadian TV and vice-versa ? StuRat (talk) 23:44, 10 April 2008 (UTC)