Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Tag: macos
Java executable jar cannot be executed as ./program.jar on OS X
Using Linux, I run some programs I’ve written in Java by compressing them in a jar with a manifest file and then placing them in a personal directory that has been added to my $PATH as follows: program.jar file2 file2. It works well in any directory I point my console to, I can even do program.jar file1 | less or
Child forms groups on taskbar
I got an application, which has a main window, and then it open new forms. Whole application is like a document reader with many types of sub-forms. For example, I have Main window opened, 3 documet detail forms and 4 editors of other content. Now. As all sub-forms are childrens of the main form, they are all grouped under one
All bash commands lost after sourcing bash_profile after osx upgrade
I recently upgraded my osx to os x el capitan. I noticed that subl command was missing so I tried adding the path to my bash_profile. It didn’t work out so I removed it and then do a source ~/.bash_profile and now all of my bash commands are gone. Here is my bash_profile file and when I do export $PATH
Golang Mac OSX build for Docker machine
I need to run Golang application on Docker machine. I’m working on Mac OSX and Docker is working on top of Linux virtual machine, so binaries builded on Mac are not runnable on Docker. I see two ways here: cross-compile binaries on Mac for linux OS copy project sources to docker, run ‘go get’ and ‘go build’ on it First
Add cut/crop marks to pdf with imagemagick
I have a pdf file which is getting generated with Inkscape from SVG and processed with ImageMagick. Now the PDF is a perfect DINA4 @300 DPI How can I add some marks around it? My marks should look like this: http://cl.ly/033g3t2h0U0f/A4_crop.png And I need to place this over the pdf with 3mm to overlap so it’s could be correctly cut.
AWK script: Finding number of matches that each element in Col2 has in Col1
I want to compare two columns in a file as below using AWK, can someone gives a help please? e.g. Now I want to use AWK to implement the following algorithm to find matches between those columns: Expected result: So I want to write the above code in AWK script and I find it too complicated for me as I
sh file can’t work well but commands in sh can
I’m using a bash shell to export some path,like this: env.sh: after call sh env.sh,I call echo $GOPATH ,but nothing output,and I call export again to check the variables exported,but GOPATH isn’t included.But when I copy these commands in the shell file,and execute them directly in command line,it can work!why this happens?I’m using mac. Answer You need to use source
Understanding the behavior of grep [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Correct “nice” POSIX scheduling priority for batch processing program
I am working on a bulk image processing program which does not require user attention and need to choose a priority level for this process. The superuser is able to set values from PRI_MIN (-20) to PRI_MAX (+20) and normal users can set from 0 to PRI_MAX. The default level is zero. On Mac OS X 10.11, the man nice(1)