I am creating a dvd slide show using iDVD and I see how to add transtions manually but what I would like to do is have iDVD insert random transitions for me. Is this possible?
I need to install a package. For that I need root access. However they system says that I am no in sudoers file. When trying to edit one, it says the same? How I am supposed to add myself to the sudoers file if I don't have the right to edit one?
What can I do?
I'm trying to insert a different picture for every created letter.
I can only use text mail merge fields, images aren't really supported as far as I can see. Now I'm trying to add this functionality using a macro.
Is there an event that is triggered each time before the page is frozen and the next record gets processed?
What are the steps to make a schema change to a SQL Server 2005 database using transactional replication?
I'm trying to add a database column. I thought if I removed the article for the table, made the schema change, and then added the article for the table back that the schema change would replicate. I am now getting the following error every minute or so:
SQL Server errors
Replication-Replication Distribution
Subsystem: agent [jobname] failed.
Invalid column name 'NewColumn'.
In cooperation with my IT teacher we want to boot all PC's in IT class with Lubuntu. I've successfully set up PXE server, but there is one thing that worries us. Harddrives shouldn't be accessible from booted Lubuntu(normal user only). Would adding to fstab something like:
/dev/sda1 /Idk/What auto noauto
work? I'd like to add that I can uncompress squashfs livecd filesystem. If no, what other solution is there, to block auto-mounting /dev/sda drive?
For example I have TightVNC Viewer pinned to taskbar, it does not allow a jumplist (pinning multiple items or storing recent items). However I have a couple of shortcuts to vncviewer.exe that take arguments. Is there a way to get these in a jumplist for the vncviewer taskbar icon anyway?
Found jumplist launcher already, but it's not exactly what I'm after + it's buggy (cannot add arguments to the exe)
Hi All,
Iam newbi to SUSE, I installed java in my SUSE linux Server edition, So i want to set the path in linux,So i created .bash_profile in in /root path using touch and added the path as "JAVA_PATH". When restart my linux the above command is not working and it show unknown command "JAVA_PATH", I can't able to boot in GUI mode, I can boot only in terminal mode, How to delete the file (.bash_profile in /root) ? And how to add java path in SUSE
Note: Before all the commands are working fine
Thanks in Advance,
Jak...
I know you can add custom Document Properties in Excel 2007.
see: http://office.microsoft.com/en-us/excel/HA100475241033.aspx#5
But I thought there was a way to pull a value from a cell as a custom metadata property
without code. Maybe I'm searching for it with the wrong terminology. Maybe it has to be done as a Named Range. I know this can be done. Anyone know how?
I am trying to setup Wordpress Multisite, using subdirectories, with Nginx, php5-fpm, APC, and Batcache.
As many other people, I am getting stuck in the rewrite rules for permalinks.
I have followed these two guides, which seem to be as official as you can get:
http://evansolomon.me/notes/faster-wordpress-multisite-nginx-batcache/
http://codex.wordpress.org/Nginx#WordPress_Multisite_Subdirectory_rules
It is partially working:
http://blog.ssis.edu.vn works.
http://blog.ssis.edu.vn/umasse/ works.
But other permalinks, like these two to a post or to a static page, don't work:
http://blog.ssis.edu.vn/umasse/2008/12/12/hello-world-2/
http://blog.ssis.edu.vn/umasse/sample-page/
They either take you to a 404 error, or to some other blog!
Here is my configuration:
server {
listen 80 default_server;
server_name blog.ssis.edu.vn;
root /var/www;
access_log /var/log/nginx/blog-access.log;
error_log /var/log/nginx/blog-error.log;
location / {
index index.php;
try_files $uri $uri/ /index.php?$args;
}
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
# Add trailing slash to */username requests
rewrite ^/[_0-9a-zA-Z-]+$ $scheme://$host$uri/ permanent;
# Directives to send expires headers and turn off 404 error logging.
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 24h;
log_not_found off;
}
# this prevents hidden files (beginning with a period) from being served
location ~ /\. { access_log off; log_not_found off; deny all; }
# Pass uploaded files to wp-includes/ms-files.php.
rewrite /files/$ /index.php last;
if ($uri !~ wp-content/plugins) {
rewrite /files/(.+)$ /wp-includes/ms-files.php?file=$1 last;
}
# Rewrite multisite '.../wp-.*' and '.../*.php'.
if (!-e $request_filename) {
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
rewrite ^/[_0-9a-zA-Z-]+.*(/wp-admin/.*\.php)$ $1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
}
location ~ \.php$ {
# Forbid PHP on upload dirs
if ($uri ~ "uploads") {
return 403;
}
client_max_body_size 25M;
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
Any ideas are welcome! Have I done something wrong?
I have disabled Batcache to see if it makes any difference, but still no go.
At present, Opsview reports recoveries in the following format:
RECOVERY: Internal Alarm is OK on host Ellie: SNMP OK - 0
Service: Internal Alarm
Host: Ellie
Alias: Ellie
Address: 1.2.3.4
State: OK
Comment: ()
Date/Time: Mon Oct 5 14:57:53 BST 2009
Additional Info:
SNMP OK - 0
What I would ideally like to do is add a "duration" field, so that you can tell without scrolling back on a Blackberry how long the event has been at fault for.
Is there an easy solution to this?
I am trying to configure VPN Client access with ForeFront TMG. When I try to add domain groups to allow access to them, under Group column I can only see the SID of the domain group. And the Domain column ends up empty. ForeFront TMG is joined to the domain.
Can you think of a reason?
I am currently running 4 cassandra nodes with the following hardware in a Apache Cassandra cluster:
AMD Athlon 64 X2 6000+
8G RAM
750G hard disk
It shows not such a good writing performance and a really bad read
performance with sometimes also timeouts. I was wondering if it makes
sense to add 2 nodes with a different hardware (8 CPUs and more RAM)
to improve this. Or does a cassandra cluster works best with the same
hardware in every node?
Thanks & best regards
Hi
I would like to use powershell to add a spesific user to the local administrator group on a machine. I would be running the powershell script in the context of a user that has Administration rights on the local machine.
Thanks
Rihan
I would like to write things like this in /etc/apt/sources.list:
deb sftp://[email protected]/path other stuff
When I try this, apt-get complains that there is no sftp method for apt:
# apt-get update
E: The method driver /usr/lib/apt/methods/sftp could not be found.
Has anyone written a patch to add the sftp method for apt? All I could find in Google was this spec for Ubuntu.
Thanks for your help.
I want to it to assume that text may be in mixture of languages and words should be looked up in multiple dictionaries. (E.g. everything in en-GB, en-US, ru, be and be-classic should be consider as good, everything else should be underlined and corrections from all dictionaries should be offered). Is there an add-on for "multi-language spell-check"?
Alternatively, can I merge all dictionaries into one big combined dictionary?
Please see the following command and with Trusted Hosts enabled, this does not work:
Invoke-Command -ComputerName <IP address> -port 5985 -Credential (New-Object System.Management.Automation.PSCredential ('Domain\User', (ConvertTo-SecureString 'passwd' -AsPlainText -Force))) -Authentication CredSSP -ScriptBlock {Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010;Get-Mailbox}
This works well when Computername is a hostname. The IP address does not works at all
I need a service which allows me to edit a hosted text file by email.
For example: I write an email to [email protected] with subject "ADD LINE 10" and sending it the mail body is inserted into myfile which is hosted on a server of someservice.ext. Same for "DELETE LINE 12" or "SUBSTITUTE LINE 15". If I write "ECHO FILE" or something similar, the service should send me an email with the updated content of the text file.
Does it exist?
I use a Stinkyboard Footboard to enter shortcuts with my feet on my mac.
This works fine, the Footboard is recognized as another USB keyboard and the shortcuts are working. One thing that is not working is to assign two Keys like ALT + SHIFT to the foot pedal and then add another key like 1 with the keyboard I use with my hands.
Is there a way to make this two keyboards combine its input into one shortcut?
Hello, guys,
I need to get and filter the linux users list like:
username1 username1_group
username2 username2_group
...
usernameN usernameN_group
I've tried, but only that I've found is:
cat /etc/passwd | grep /home | cut -d: -f1
It gives me the list of users in /home folder. But how can I add the group name to each of them?
Thanks in advance!
Is there a software that can detect and list previously installed programs on a computer?
Or any method you know which I can use so that I could see what programs were previously installed assuming that those programs were only uninstalled using the add/remove programs in control panel.
Or if you know a method which will also detect and list previously installed programs which are uninstalled using advanced uninstaller like revo.
Hi,
I have followed http://blog.bitfluent.com/page/3 to
add git-completion.bash to my /opt/local/etc/bash_completion.d/git-completion
and I put PS1='\h:\W$(__git_ps1 "(%s)") \u\$ ' in my .bashrc_profile
But now I am getting this -bash: __git_ps1: command not found everything I do a cd.
Can you please tell me what am I missing?
I have a Kubuntu system which I stream amateur radio sound to via a flash interface. I want to be able to record the sound that the flash player is making at the press of a button. I also need the capability to do (hopefully real-time) spectrum analysis on the sound. I need a program (a firefox add-on would be ideal) that can do this for me.
I have been given the below .NET question in an interview. I don’t know why I got low marks. Unfortunately I did not get a feedback.
Question:
The file hockey.csv contains the results from the Hockey Premier League. The columns ‘For’ and ‘Against’ contain the total number of goals scored for and against each team in that season (so Alabama scored 79 goals against opponents, and had 36 goals scored against them).
Write a program to print the name of the team with the smallest difference in ‘for’ and ‘against’ goals.
the structure of the hockey.csv looks like this (it is a valid csv file, but I just copied the values here to get an idea)
Team - For - Against
Alabama 79 36
Washinton 67 30
Indiana 87 45
Newcastle 74 52
Florida 53 37
New York 46 47
Sunderland 29 51
Lova 41 64
Nevada 33 63
Boston 30 64
Nevada 33 63
Boston 30 64
Solution:
class Program
{
static void Main(string[] args)
{
string path = @"C:\Users\<valid csv path>";
var resultEvaluator = new ResultEvaluator(string.Format(@"{0}\{1}",path, "hockey.csv"));
var team = resultEvaluator.GetTeamSmallestDifferenceForAgainst();
Console.WriteLine(
string.Format("Smallest difference in ‘For’ and ‘Against’ goals > TEAM: {0}, GOALS DIF: {1}",
team.Name, team.Difference ));
Console.ReadLine();
}
}
public interface IResultEvaluator
{
Team GetTeamSmallestDifferenceForAgainst();
}
public class ResultEvaluator : IResultEvaluator
{
private static DataTable leagueDataTable;
private readonly string filePath;
private readonly ICsvExtractor csvExtractor;
public ResultEvaluator(string filePath){
this.filePath = filePath;
csvExtractor = new CsvExtractor();
}
private DataTable LeagueDataTable{
get
{
if (leagueDataTable == null)
{
leagueDataTable = csvExtractor.GetDataTable(filePath);
}
return leagueDataTable;
}
}
public Team GetTeamSmallestDifferenceForAgainst() {
var teams = GetTeams();
var lowestTeam = teams.OrderBy(p => p.Difference).First();
return lowestTeam;
}
private IEnumerable<Team> GetTeams() {
IList<Team> list = new List<Team>();
foreach (DataRow row in LeagueDataTable.Rows)
{
var name = row["Team"].ToString();
var @for = int.Parse(row["For"].ToString());
var against = int.Parse(row["Against"].ToString());
var team = new Team(name, against, @for);
list.Add(team);
}
return list;
}
}
public interface ICsvExtractor
{
DataTable GetDataTable(string csvFilePath);
}
public class CsvExtractor : ICsvExtractor
{
public DataTable GetDataTable(string csvFilePath)
{
var lines = File.ReadAllLines(csvFilePath);
string[] fields;
fields = lines[0].Split(new[] { ',' });
int columns = fields.GetLength(0);
var dt = new DataTable();
//always assume 1st row is the column name.
for (int i = 0; i < columns; i++)
{
dt.Columns.Add(fields[i].ToLower(), typeof(string));
}
DataRow row;
for (int i = 1; i < lines.GetLength(0); i++)
{
fields = lines[i].Split(new char[] { ',' });
row = dt.NewRow();
for (int f = 0; f < columns; f++)
row[f] = fields[f];
dt.Rows.Add(row);
}
return dt;
}
}
public class Team
{
public Team(string name, int against, int @for)
{
Name = name;
Against = against;
For = @for;
}
public string Name { get; private set; }
public int Against { get; private set; }
public int For { get; private set; }
public int Difference
{
get { return (For - Against); }
}
}
Output:
Smallest difference in for' andagainst' goals TEAM: Boston, GOALS DIF: -34
Can someone please review my code and see anything obviously wrong here? They were only interested in the structure/design of the code and whether the program produces the correct result (i.e lowest difference). Much appreciated.
"P.S - Please correct me if the ".net-interview" tag is not the right tag to use"
I'm using Ubuntu 9.04 and the kernel 2.6 build-in NETEM tool to delay traffic.
After I apply:
tc qdisc add dev eth0 root netem delay 100ms
The upload bandwidth can't go further than 330KB/s and I have a 100Mbit connection.
How can I fix this so that my upload bandwidth is still full.
Thanks!
I have a bunch of media files which I want to record to DVD, but since each DVD only fits 4.5GB, I have to find the optimal way to organize the files to use the minimum number of DVDs (otherwise the empty space left in each DVD can easily add up). Are there any tools to help with this?
Many years ago there was a DOS utility to do this with floppy disks.