I'd like to produce a list of users and their total commits to a subversion repository. Is it possible to generate this information from the command line?
In my bash script I have two variables 'CONFIG_OPTION' and 'CONFIG_VALUE' which contain string VENDOR_NAME and Default_Vendor respectively.
I need to create a variable with name '$CONFIG_OPTION' ie VENDOR_NAME and assign the value in CONFIG_VALUE to newly created variable.
How I can do this?
I tried
$CONFIG_OPTION=$CONFIG_VALUE
But I am getting an error on this line as
'./Build.bash: line 137: VENDOR_NAME="Default_Vendor": command not found'
Thanks.
Using the command line, I'd like to see all changesets made by a particular user. Is this possible? I've looked at the documentation for svn log but can't see how to do this.
Anytime I use 'script table as' - 'Insert To' (or other command), the script generated automatically places the database name in the script. Such as:
INSERT INTO [DatabaseName].[dbo].[tblToBeInserted] ...
While not a huge problem to just delete it, it has slipped by a few times and the script breaks if run on a different server with a different database name but has the same schema. (Such as running on [DatabaseName.Test])
Is there an option I can change, or can I modify the output in any way to remove this?
I'm witting an application based on a server and various client but I'm having a problem with the send command.
Whenever I do ctrl+c on the client side the send operation kills the thread which is in and the process running (in order to have multiple clients I set a thread to which one).
If the client ends (doing the close socket) properly the server doesn't die, but when I use the ctrl+c combination on the client both exit.
What can I do to prevent send commando to have this behavior?
Thx in advance
Is there a git command to add differences within a range of line-numbers to the index?
I want to be able to select lines in my editor and run a macro to add any changes in the selection to the index.
Hello, In MS SQL Server is there a way to detect whether a database has had its isolation level set via the T-SQL command ALTER DATABASE <database> SET READ_COMMITTED_SNAPSHOT ON;
I cannot find a simple way to detect this in either T-SQL or via the Management Studio's GUI.
TIA
I'm using Visual Studio 2008, and it doesn't seem like once I have collapsed all the regions, I can expand ALL levels of a certain region with one click/command. Notepad++ has this functionality when you ctrl + click on a collapsed region, it recursively expands all regions within it. It's awesome.
Anyone know of a plugin or macro that has this functionality?
I'm using a custom language, aka not C++/C# btw
thanks!
I'm looking for an example of a good update trigger to update the ModifyDate field of a table.
It would be nice to handle the case where an update command updated more than one record in the table.
Is there a good template or tutorial for this?
Thanks
Hello,
I am after an SQL command to find units with no categories. Here are the tables:
Unit
id name
UnitCategory
id name
UnitCategoryIndex
id categoryid unitid
Thanks!
Hey,
I'm trying to get this function to get the following output with the listed input, the "..." is where I'm not sure what to write:
void Question8(void)
{
char sentence[100];
int grade;
scanf(….);
printf("%s %d", sentence, grade);
}
Input:
My CS Grade is 1000
Output:
My CS Grade is 100
However, the kicker is that I need the scanf to read a c-string and then an int with a single scanf command, is this even possible?
Hello,
I'm currently trying to make an AppleScript which should recognize the selected file in Finder and do the relative command in Terminal.
Everything was going fine since I reached the part where it should define the language of the selected file: it just doesn't check the ifs.
I checked if it writes fileExtension correctly (via return) and it does.
Here is the
Gist with the code, any help would be appreciated.
Thanks
EDIT
i have something like this in a file:
imagecolor=0
arrayimagecolorcopy=0
arrayimagecolorcopy3d=0
when i use sed -i -e 's/imagecolor=0/imagecolor=1/' it will change 1 and 2 line. But i only want it to replace first line.
i also tried sed with \< \ and \b \b, but no luck. Could it be the '=' sign? Do we have something like -w as in grep command?
Thank you.
Say our folder structure looks like this:
/app
/app/data
...
/app/secondary
/app/secondary/data
I want to recursively search /app/data but I do not want to search /app/secondary/data.
From within the app folder, what would my grep command look like?
Hi,
I am working on origin:abc remote repository . I want to update the origin:def repository in the remote repository in git. Can some please give me command for this?
So I'm not able to user enterprise manager to do this... If I was I wouldn't even be asking this question. So I'm wondering if there is a way through TSQL to execute a command that maps a User to a particular Database and grants them 'owner' permissions.
Thanks...
hey,
i'am trying to update a row in a table using :
command.ExecuteNoQuery()
it's not giving me an error but it's not updating the row
This is my code :
Dim req As String = "Update Table Set Id= 5"
Dim cmd As New OleDb.OleDbCommand(req, connect())
cmd.ExecuteNonQuery()
disconnect()
thanks
I have setup OpenVPN on my server, and I am able to connect to it just fine, and browse the web, etc, from the client box.
If I set the following option in the client config, I can no longer browse the web via domain name:
redirect-gateway def1
On the server, I have run the following command:
iptables -t nat -s 10.8.0.0/24 -A POSTROUTING -j SNAT --to myserver'sIP
but that hasn't changed anything.
Can anyone help suggest something?
Is there any way to run one last command before a running Python script is stopped by being killed by some other script, keyboard interrupt etc.
Thanks for your help!
I am looking at the man page for git ls-tree . It has an option for path.
I have a directory called db and in that directory I have a few .rb files.
Then why my command is failing
git ls-tree db/*.rb
How can I open a file browser and set selected a specified file in linux by using command line? In windows I am able to do it by writing:
explorer /select, c:\path\to\file
I'm writing an VS 2008 add-in to synchronize Setup project Version with startup project assembly version. It works fine.
But I was wondering if it was possible to call add-in from the Prebuild Event of my setup project.
It works fine by command line window, but I didn't find any syntax to make it work in prebuildEvent. Is Someone has an idea ?
Thanks
I know in F# you declare variables when you assign them. I'm sure you can declare vars in a C way but how might i write this
long id=0
using (SQLiteDataReader r = command.ExecuteReader())
{
while (r.Read())
{
id = r.GetInt64(0);
//...
break;
}
}
//use id in sqlite now that it isnt locked
What is the best way to refactor a method which has many steps in it? For example, a method which setups some objects, creates several objects (Eg a database table), and so on - basically, one method which does a set of related steps.
Would this be best suited to the command design pattern?
Thanks