I am trying to find documentation to use the ffmpeg C API. It seems that only command line documentation is available.
Is there any good documentation/tutorials/links available?
I am trying to write a script to list out all members of a "Universal Distribution List" using Powershell. However I keep getting an empty result set back.
When I run the following command against a "Global Distribution List" it works fine and I can see who belongs to it.
dsquery group -name "SomeGroup" | dsget group -members -expand
However as I mentioned when I run this against a "Universal Distribution List" I get no results. Can anyone help?
I have a script where I need to take a user's password and then run a command line using it. I need to backslash all (could be more then one) non-alphanumeric characters in the password. I have tried several things at this point including the below but getting no where. This has to be easy, just missing it.
Tried these and several others:
password = password.gsub(/(\W)/, '\\1')
password = password.gsub(/(\W)/, '\\\1')
password = password.gsub(/(\W)/, '\\\\1')
The echo area is the line at the bottom of Emacs below the mode line:
~ ~
| |
+-----------------------+
|-U:--- mode-line |
+-----------------------+
| M-x echo-area |
+-----------------------+
Now the mode line is highly customizable while the echo area is more rigid (and unused a lot of the time). The question is pretty simple: is it possible to hide the echo area during inactivity and redisplay it once it needs your attention:
~ ~ ~ ~
| | | |
| | +-----------------------+
| | |-U:--- mode-line |
+-----------------------+ +-----------------------+
|-U:--- mode-line | | M-x echo-area |
+-----------------------+ +-----------------------+
Inactive Active
This is similar to the way Google Chrome displays URLs when you hover your mose over a link and the Firefox addon Pentadactyl where the command-line is hidden by default.
I wonder how to specify to the command "find" for searching files under current directory but skipping some specific sub-directories.
For example, I would like to skip sub-directories that match "./dir1/*.1/"
Thanks and regards!
example:
buil.bat script
start /B webdev.webserver.exe /port:3234 /path:C:\projects\src\XYZWeb /VPATH:/XYZWeb
when program run this script also execution stop. How to continue execution after running this script. Problem is that build.bat never end and you must manually close it.
i look here http://ss64.com/nt/start.html but no command to conitinue executing while webdev.webserver is running.
I created a VB.NET Windows Forms Application in Visual Studio 2008. When I run my program from the command-line, I get no output (only the next prompt).
Why?
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Debug.Write("Foo")
Debug.Flush()
Console.WriteLine("foo")
Console.Beep(800, 100) 'confirm this function is called'
Me.Close()
End Sub
I'm using Netbeans 6.9 RC2 and Maven OSGi Bundle project template. Actually i dont want to test my bundles in Netbeans environment so i copy the jar file to the OSGi container directory and install it from command line. But when i want to see its headers from OSGi console, i see a lot of Netbeans related unnecessary stuff. Is it possible to edit the contents of the manifest file in Netbeans?
How to download and install GDB(GNU Debugger) on Fedora Linux Machine.. I have tried downloading from gnu website 7.1 package, but then it fails during
./configure and then make command...
Please share the source from where i can get information on the same.
Thanks..
I have this insert command where iam trying to insert a number to be taken from loop
i=0
for line in column:
myStmt.executeQuery("INSERT INTO REVERSE_COL
( TABLE_NAME,COL_NAME,POS) values
(,'test','"+column[i]+"','"+i+"'")
i=i+1
POS IS NUMBER DATATYPE
but it works if i hard code as 1
i=0
for line in column:
myStmt.executeQuery("INSERT INTO REVERSE_COL
( TABLE_NAME,COL_NAME,POS) values
(,'test','"+column[i]+"',1")
I have tried only i , +i+ and other method but its not working any suggestion how to solve this .
Thanks everyone .
Is it possible that the iPhone can somehow send data or some control command to the computer's com ports via USB cable? Maybe use inline assembly language for instance? Thanks!
in http://blog.eleutian.com/2007/03/01/AsyncExecMsBuildTask.aspx i found AsyncExec task for MsBuild
<Target Name="RunCassini">
<AsyncExec Command="StartCassini.bat" WorkingDirectory="D:\PROJEKTI\_PROGRAMI" />
</Target>
but i get error MSB4036: The "AsyncExec" task was not found. I run msbuild from cruisecontrol.net
Does anyone know where is the problem?
I would like it to display non-flickery animation like this awesome Linux command; sl
http://www.youtube.com/watch?v=9GyMZKWjcYU
I would appreciate a small & stupid example of say ... a fly.
Thanks!
I'm using a form with an IdTCPServer on it managing strings from the client with a AThread.connection.readln/writeln system. The string handling works and that isn't the problem.
The thing is, the form with the server on it hangs and will not load, but it still managed all the clients connected to it so it IS running but it just doesn't work as a form.
I'll make a guess that its sitting on a readline or something... but I have NO idea how i can fix this at this moment in time.
Please help.
procedure TMonitorFrm.ServerExecute(AThread: TIdPeerThread);
procedure post(PostMessage:string);
begin
try
AThread.Connection.WriteLn(PostMessage);
except
showmessage('Cannot post');
end;
end;
var
ActClient : PClient;
sTemp,
CommBlock,
NewCommBlock,
ReceiverName,
sContent,
sSQL,
sCommand : String;
iCount2,
iCount : Integer;
sldb : TSQLiteDatabase;
sltb : TSQLiteTable;
begin
if not AThread.Terminated and AThread.Connection.Connected then
begin
CommBlock := AThread.Connection.ReadLn();
ActClient := PClient(AThread.Data);
ActClient.LastAction := Now;
sCommand := copy(CommBlock,0,pos(',',CommBlock)-1); {seperate command}
sContent := copy(CommBlock,pos(',',CommBlock)+1,length(CommBlock)-(pos(',',CommBlock)+1)); {seperate data block}
iCount:= 0 ;
if sCommand = 'Announce' then //SPECIAL
begin
{ Do stuff for this command...}
end
else if sCommand = 'CheckSect' then
{Etcetera...}
procedure TMonitorFrm.FormCreate(Sender: TObject);
var
sCompetitionID : string;
sldb : TSQLiteDatabase;
sltb : TSQLiteTable;
begin
Clients := TThreadList.Create;
Server.Active := True;
AreaPnlList := TComponentList.Create;
SectionPnlList := TComponentList.Create;
Repeat until InputQuery('Competition Select', 'Please type the ID of the competition', sCompetitionID);
iCompetitionID:=StrToInt(sCompetitionID);
OpenDatabase(slDb);
sltb:=slDb.GetTable('SELECT * FROM SectionTable WHERE CompetitionID='+sCompetitionID);
Frame31.CreateSections(sltb,Frame31);
sltb.Free;
CloseDatabase(slDb);
{
This section needs to check the SQLite databases for sections and list them in the display window and makes a drag n drop profile...
}
end;
Hey all,
I'm trying to make a system call in Python and store the output to a string that I can manipulate in the Python program.
#!/usr/bin/python
import subprocess
p = subprocess.Popen("pwd")
# edit - actual command I want to store output of
p2 = subprocess.Popen("ntpq -p")
I've tried a few things including some of the suggestions here:
http://stackoverflow.com/questions/1996518/retrieving-the-output-of-subprocess-call
but without any luck.
Many thanks!
I have a large mysql table that I think might be using the wrong character set. If so I'll need to change it using
ALTER TABLE mytable CONVERT TO CHARACTER SET utf8
But since this is a very large table, I'd rather not run this command unless I have to. So my question is, how can I ask mysql what the character set is on a particular table?
I can call status in mysql to see the database's character set, but that doesn't necessarily mean all the tables have the same character set, right?
How to find the local version of an installed node.js/npm package?
This prints the version of npm itself:
npm -v <package-name>
This prints a cryptic error:
npm version <package-name>
For some reason, probably because of the weird arguments ordering, or because of the false positives mentioned above, I just can't remember the proper command. So this question is a note for self that might help others.
I'm doing a batch script to connect to a tcp server and then exiting.
My problem is that I can't stop the reactor, for example:
cmd = raw_input("Command: ")
# custom factory, the protocol just send a line
reactor.connectTCP(HOST,PORT, CommandClientFactory(cmd)
d = defer.Deferred()
d.addCallback(lambda x: reactor.stop())
reactor.callWhenRunning(d.callback,None)
reactor.run()
In this code the reactor stops before that the tcp connection is done and the cmd is passed.
How can I stop the reactor after that all the operation are finished?
hi
i am trying to set up a home page with an email form, where i can fill out email address and subject and comments and the php page will run
mail -s [email protected] $comments
how can I do this via php to call the linux command?
thanks in advance
Is there any command either in debugger or ruby-debug to get a list of all gems and/or plugins loaded in memory for a Rails process? I understand only the 'require' gems are loaded but I would like to quickly see what got loaded during runtime.
I have a small script, which is called daily by crontab using the following command:
/homedir/MyScript &> some_log.log
The problem with this method is that some_log.log is only created after MyScript finishes. I would like to flush the output of the program into the file while it's running so I could do things like
tail -f some_log.log
and keep track of the progress, etc.
I am using the following command to grep stuff in subdirs
find . | xargs grep -s 's:text'
However, this also finds stuff like <s:textfield name="sdfsf"...../>
What can I do to avoid that so it just finds stuff like <s:text name="sdfsdf"/>
OR for that matter....also finds <s:text somethingElse="lkjkj" name="lkkj"
basically s:text and name should be on same line....
I'm rendering a template with a management command (something I need
for producing documentation in my native language). So I've no request
object, so no RequestContext. Is there a way I can force the template
rendering process to lookup translation strings from a particular
language other than English?
Ant has a -e option for outputting error messages that can be parsed by emacs' compile command. For example, it is possible to do M-x compile, ant -e, then nagivate to any errors with C-x `.
Is it possible to make grails output its compilation errors in this format? Alternatively, is there an emacs variable that can be customized to handle error messages in the format that grails uses?
If the 'for' is used both as a command and as "the English word":
for_statement: 'for' ...
id: 'for'
| ID
;
ID: ...
right?
My problem is how to differentiate the two cases.
For example for_statement is only possible beginning of a line (only if preceded by ' ' or '\t').
Thanks.