knowing what PowerShell can do on a command line I have never learned how to write GUIs with it. Should I?
Or just go back to the good old HTA / VBScript?
In my remote bare repository the HEAD is pointing to "refs/heads/master" and I want it to point to "refs/heads/other".
I am not able to go to remote repository directory and run git symbolic-ref. Is there any git command to achieve it? Or any other way?
If there is no way, does Github allow to change the HEAD?
Thanks in advance.
I'm using Gnu Emacs on OSX, Windows, and Linux. Is there some command which can download and install packages (or .el files) automatically? I've seen there are some work-in-progress projects on the internet (after googling) but I was wondering if I was missing some awesome package manager out there that just works.
hi i have a weird problem and here we go:
i am redirecting using this command :
return RedirectToAction("ViewMessage", "Account", new {id = model.MessageId});
but in ViewMessage action when i try to get id, its null ?!?!?!?!??
string strMessageId = RouteData.Values["id"] as string;
i have done this code in lots of places and it works fine but i dont know what is going on here.... :(
i know i can use TempData but i dont want to :)
I have a GridView on my ASP.NET page. What I want is to execute a function when I click
on the row, and I also want to change the style of this row. I don't want to use the select button of type command field. Any help please?
I want a list of everything that's changed on my project's branch, since a specified revision, but with a specified cut-off date... So, this is the command I would like to be able to run:
cvs -q rdiff -s -r v2_release_3 -r myproj_v2_release -D 2010-04-10 myproj
...but, of course CVS only wants up to 2 revisions / dates and I just get an error "rdiff aborted".
I have a script written in node.js, it uses 'net' library and communicates with distant service over tcp. This script is started using 'node script.js log.txt' command and everything in that script that is logged using console.log() function gets written to log.txt but sometimes script dies and I cannot find a reason and nothing gets logged in log.txt around the time script crashed.
How can I capture crash reason?
Need a simple a way of rounding off an Image. I need the corners to be transparent. This link shows how to do it via command line:
http://www.imagemagick.org/Usage/thumbnails/#rounded
What I need is the corresponding RMagick\Ruby code... Thanks!
I am trying to do the equivalent of the following curl command :
curl -H "Accept: text/plain" http://127.0.0.1:8033/stats
I tried with an Inets simple http request. But, it isn't processed.
How can I specify in Inets (or some other Erlang http client for that matter) the accept header requirement?
I can access my linux box by ssh and by vnc. I want to run a GUI application, but directly from ssh, I don't want to access through VNC and click around. So, after logging in using ssh, I want to issue a magic command, so that when I log in through VNC I will see my GUI app running. How can I do this?
What actually happens to the .box file (which according to the docs is simply a vbox image in tar form, in a particular format) after the first command
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
is executed?
I can't seem to find the filesystem location of lucid32.box after the download has successfully completed...
I am aware it doesn't really matter as
vagrant init lucid32
vagrant up
vagrant ssh
will get me into the vm irregardless.
But I am curious where .box is located.
Given a PDF document, is it possible to generate a XSL-FO (FOP) template?
Obviously, this would be a one-time thing - the generated template would just be a starting point for creating a proper template that pulls in the appropriate data.
For me, the ideal tool for doing so would be a Java-based one and should be executable from the command line or through an ANT task. Failing that, it would be something that runs on Linux and MacOS X.
I have some text files previously formatted in vim using "gggqG". Now I need to convert them to one line per paragraph format. I saw a way(using :g command) to do that before, but I have forgot it. Anyone knows?
I've noticed a lot of examples for iPhone apps in the Application Delegate
- (void)applicationDidFinishLaunching:(UIApplication *)application
have
[window addSubview: someController.view]; (1)
as opposed to
self.window.rootViewController = self.someController; (2)
Is there any practical reason to use one over the other? Is one technically correct? Do controller's have the an equivalent command to number (2) like
self.someController.rootController = self.someOtherController; // pseudocode
I'm using ddkbuild for building my driver.
And I use prefast also.
Prefast has /StackHogThreshold option.
The default value is 1024 Bytes.
But I can't modify the value.
It's my input for 'Rebuild All Command Line'
C:\Windows\System32\cmd.exe /k "$(SolutionDir)....\ddkbuild.bat" -WIN7WLHA64 -prefast free $(ProjectDir) -cZ
Hello everyone,
I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I am developing C++ console/terminal applications (File-New project, then from the list on the left "Command line utility", and on the right "C++ tool".).
For C++ source code file, I want to print source file content with line number. Any ideas how to do this?
thanks in advance,
George
Hello
i have gui the i created in the designer , simple one .
QMainWIndow that contains stackedWidget , the application starts with
stackedWidget index 0 that contains qwebkit widget and after some user flow ,it changes to stackedWidget
index 1 that contains QTree widget , to center the first widget i use in the QMainWindow constractor this line of code
this-setCentralWidget(ui.webView); but when the application switching to index number 1 im getting exception that is
coming from the switching command .
why ?
I ran ldd command on an executable created by Open MPI. It shows a reference to libpthread.so
Using LD_PRELOAD variable I created my own implementation of pthread_create, but from the it output it seems that MPI implementation is not calling pthread_create as I had expected.
Why does ldd show pthread so file in output if it is not being used?
does Open MPI not use a separate MPI thread for every node to implement the functionality?
I'm using the Apache Commons CLI to handle command line arguments in Java. I've figured out my way around it to a decent extent but I need a little help. I've declared the a and b options and I'm able to access the value using CommandLine.getOptionValue.
Usage: myapp [OPTION] [DIRECTORY]
Options:
-a Option A
-b Option B
How do I declare and access the DIRECTORY variable?
Thank you.
how to manage a process php file??
i want every form which connected to database just use one php file..how to separate every command inside that php file??can i do that?
I mistyped a git command which resulted in the creation of a local branch called, '--track'.
I've tried the following:
git branch -m --track delme
(this renames the current branch to delme, not the branch called --track)
git checkout --track
> fatal: --track needs a branch name
git branch -d --track
(does nothing, reports nothing)
git branch -D --track
(also does nothing)
git branch -d "--track"
(also does nothing
How can I delete this branch?
hi,
i am working on iphone project, i like to create an svn folder and link that one to my server
I tried to run the below command
fsp3s-MacBook-Pro:~ fsp3$ svnadmin create /ram/Code/SVN
i got the below error
svnadmin: Repository creation failed
svnadmin: Could not create top-level directory
svnadmin: Can't create directory '/ram/Code/SVN': No such file or directory
How to create an SVN folder in mac os x?
thanks!
In my application, I need to convert PDF docs to PCL5 generic files to send to FTP PCL capable printers. Printing to file would be a last resort, I would prefer a small-footprint command line tool or API that will do the job.
I've seen some mention of doing this on Linux using Ghostscript, but I've got no idea how to replicate this on windows.
Many thanks
I want to SSH to a server and execute a simple command like "id" and get the output of it and store it to a file on my primary server. I do not privileges to install Net::SSH which would make my task very easy. Please provide me a solution for this. I tried using backticks but I am not able to store the output on the machine from which my script runs.
The question but in C#. So does Java have C#'s command? I need it for Matches-SearchTerm-Files-relationship.
foreach(var i in BunchOfItems.SelectMany(k => k.Items)) {}