command

How do I create a directory from within Emacs?

喜你入骨 提交于 2019-12-02 15:45:08
How exactly can I create a new directory using Emacs? What commands do I use? (If possible, please provide an example) jfs to create the directory dir/to/create , type: M-x make-directory RET dir/to/create RET to create directories dir/parent1/node and dir/parent2/node , type: M-! mkdir -p dir/parent{1,2}/node RET It assumes that Emacs's inferior shell is bash / zsh or other compatible shell. or in a Dired mode + It doesn't create nonexistent parent directories. Example: C-x d *.py RET ; shows python source files in the CWD in `Dired` mode + test RET ; create `test` directory in the CWD CWD

CQRS - The query side

不羁岁月 提交于 2019-12-02 15:33:00
A lot of the blogsphere articles related to CQRS (command query repsonsibility) seperation seem to imply that all screens/viewmodels are flat. e.g. Name, Age, Location Of Birth etc.. and thus the suggestion that implementation wise we stick them into fast read source etc.. single table per view mySQL etc.. and pull them out with something like primitive SqlDataReader, kick that nasty nhibernate ORM etc.. However, whilst I agree that domain models dont mapped well to most screens, many of the screens that I work with are more dimensional, and Im sure this is pretty common in LOB apps. So my

How to debug “exit status 1” error when running exec.Command in Golang

余生颓废 提交于 2019-12-02 15:31:11
When I run the code below: cmd := exec.Command("find", "/", "-maxdepth", "1", "-exec", "wc", "-c", "{}", "\\") var out bytes.Buffer cmd.Stdout = &out err := cmd.Run() if err != nil { fmt.Println(err) return } fmt.Println("Result: " + out.String()) I am getting this error: exit status 1 However this is not helpful to debug the exact cause of the error. How to get more detailed information? The solution is to use the Stderr property of the Command object. This can be done like this: cmd := exec.Command("find", "/", "-maxdepth", "1", "-exec", "wc", "-c", "{}", "\\") var out bytes.Buffer var

Kill python interpeter in linux from the terminal

ε祈祈猫儿з 提交于 2019-12-02 15:28:29
I want to kill python interpeter - The intention is that all the python files that are running in this moment will stop (without any informantion about this files). obviously the processes should be closed. Any idea as delete files in python or destroy the interpeter is ok :D (I am working with virtual machine). I need it from the terminal because i write c code and i use linux commands... Hope for help pkill -9 python should kill any running python process. There's a rather crude way of doing this, but be careful because first, this relies on python interpreter process identifying themselves

Are there shortcut keys for ReSharper's Unit Test Runner?

梦想的初衷 提交于 2019-12-02 15:20:41
For obvious productivity reasons, I make an effort of learning and using as many of the keyboard shortcuts for the various Re# commands. However, it seems that the unit test runner does not have any associated shortcut keys. I want to be able to select certain tests and be able to run or debug them without resorting to grabbing the mouse each time. Is using the mouse my only option? Ben Scheirman ReSharper adds items to Visual Studio's keyboard settings dialog box. Go to: Tools -> Options, Environment -> Keyboard In the search bar, type "resharper" and see the vast options that you can control

FSUTIL in GB space left

僤鯓⒐⒋嵵緔 提交于 2019-12-02 15:15:11
问题 I got a batch file that does the following. echo Server 1 C:\>>output.txt fsutil volume diskfree \\IPISHERE\d$>>output.txt echo ---------------------------------------------------------- >>output.txt This then displays data as Total # of free bytes : 71942455296 Total # of bytes : 131623546880 Total # of avail free bytes : 71942455296 Please can some one help so I can convert it in to GBs? 回答1: @echo off setlocal EnableDelayedExpansion for /F "tokens=1* delims=:" %%a in ('fsutil volume

Java jar-Archive tool - Set path for folder with content

夙愿已清 提交于 2019-12-02 14:41:31
问题 When I use this command: echo C:\Program Files\Java\jdk1.7.0_07\bin jar -cf C:\file\file.jar C:\data\ in the CMD for the jar-Archive tool, it creates the .jar called "file.jar" in C:\file\ , but it doesn't add the files from the folder C:\data , it creates an archive with the folder C: -> data -> files (in this case text.txt). How can I set the path for the folder with the content in it? I only want the files in the folder C:\data\ in my archive. How can I do this? Thanks, DigitalClark . btw.

How do i send DOS commands to my Receipt printer via COM1? [closed]

与世无争的帅哥 提交于 2019-12-02 14:29:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . How do i send DOS commands to my Receipt printer via COM1? Im currently devoloping a Cash register software, and i ran into an issue using the receipt printer. i need to be able to send hexidecimal commands to the printer via DOS. so far i've tried to do the following. Open CMD input Copy con: com1 input a

Why number 9 in kill -9 command in unix? [closed]

心已入冬 提交于 2019-12-02 14:20:41
I understand it's off topic, I couldn't find anywhere online and I was thinking maybe programming gurus in the community might know this. I usually use kill -9 pid to kill the job. I always wondered the origin of 9. I looked it up online, and it says "9 Means KILL signal that is not catchable or ignorable. In other words it would signal process (some running application) to quit immediately" (source: http://wiki.answers.com/Q/What_does_kill_-9_do_in_unix_in_its_entirety ) But, why 9? and what about the other numbers? is there any historical significance or because of the architecture of Unix?

How to get all Windows service names starting with a common word?

会有一股神秘感。 提交于 2019-12-02 14:16:40
There are some windows services hosted whose display name starts with a common name (here NATION). For example: NATION-CITY NATION-STATE NATION-Village Is there some command to get all the services like 'NATION-'. Finally I need to stop, start and restart such services using the command promt. Chandan Kumar sc queryex type= service state= all | find /i "NATION" use /i for case insensitive search the white space after type= is deliberate and required wimh Using PowerShell , you can use the following Get-Service | Where-Object {$_.displayName.StartsWith("NATION-")} | Select name This will show a